Files
lazarus-ccr/wst/trunk/tests/google_api/test_google_api.lpi
inoussa 2090bf84b2 ws_helper parses ( and records in procedure Register_%service%_ServiceMetadata() )
- service/port for <soap:address>
  - binding/operation for "soapAction"
  
ws_helper : better parsing of "function" operations

ws_helper supports a new switch :
  -u MODE Generate the pascal translation of the WSDL input file
       MODE value may be U for used types or A for all types


Complexe types extending with simpleContent support in the runtime and ws_helper :
   sample WSDL type
  	<xs:complexType name="MeasureType">
  		<xs:simpleContent>
  			<xs:extension base="xs:decimal">
  				<xs:attribute name="UnitSystem" type="xs:token" use="optional">
  				</xs:attribute>
  				<xs:attribute name="ZeroPoint" type="string" use="optional">
  				</xs:attribute>
  			</xs:extension>
  		</xs:simpleContent>
  	</xs:complexType> 


embedded array support :
   sample WSDL type
      <xsd:complexType name="EmbeddeArraySample">
        <xsd:sequence>
          <xsd:element name="Name" type="xsd:string"/>
          <xsd:element name="Count" type="xsd:int"/>
          <xsd:element name="ArrayItem" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
      </xsd:complexType>

   sample instance of "EmbeddeArraySample"
      <example>
        <Name>WST NAME</Name>
        <Count>3</Count>
        <ArrayItem>Item 0</ArrayItem>
        <ArrayItem>Item 1</ArrayItem>
        <ArrayItem>Item 2</ArrayItem>
      </example>

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@139 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-04-02 13:19:48 +00:00

459 lines
15 KiB
XML

<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
<PathDelim Value="\"/>
<Version Value="5"/>
<General>
<Flags>
<MainUnitHasUsesSectionForAllUnits Value="False"/>
<MainUnitHasCreateFormStatements Value="False"/>
<MainUnitHasTitleStatement Value="False"/>
</Flags>
<MainUnit Value="0"/>
<IconPath Value="./"/>
<TargetFileExt Value=""/>
<ActiveEditorIndexAtStart Value="1"/>
</General>
<PublishOptions>
<Version Value="2"/>
<DestinationDirectory Value="$(TestDir)\publishedproject\"/>
<IgnoreBinaries Value="False"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
</local>
</RunParams>
<RequiredPackages Count="1">
<Item1>
<PackageName Value="indylaz"/>
</Item1>
</RequiredPackages>
<Units Count="47">
<Unit0>
<Filename Value="test_google_api.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="test_google_api"/>
<CursorPos X="54" Y="12"/>
<TopLine Value="12"/>
<EditorIndex Value="0"/>
<UsageCount Value="154"/>
<Loaded Value="True"/>
</Unit0>
<Unit1>
<Filename Value="googlewebapi.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="googlewebapi"/>
<CursorPos X="47" Y="85"/>
<TopLine Value="73"/>
<UsageCount Value="154"/>
</Unit1>
<Unit2>
<Filename Value="googlewebapiimpunit.pas"/>
<UnitName Value="googlewebapiimpunit"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<UsageCount Value="98"/>
</Unit2>
<Unit3>
<Filename Value="home\inoussa\Projets\Laz\http_call_handler.pas"/>
<UnitName Value="http_call_handler"/>
<CursorPos X="22" Y="21"/>
<TopLine Value="75"/>
<UsageCount Value="18"/>
</Unit3>
<Unit4>
<Filename Value="home\inoussa\Projets\Laz\formaterintf.pas"/>
<UnitName Value="formaterintf"/>
<CursorPos X="69" Y="56"/>
<TopLine Value="44"/>
<UsageCount Value="18"/>
</Unit4>
<Unit5>
<Filename Value="home\inoussa\Projets\Laz\baseobject.pas"/>
<UnitName Value="baseobject"/>
<CursorPos X="37" Y="20"/>
<TopLine Value="1"/>
<UsageCount Value="8"/>
</Unit5>
<Unit6>
<Filename Value="home\inoussa\Projets\Laz\xml_formater.pas"/>
<UnitName Value="xml_formater"/>
<CursorPos X="53" Y="733"/>
<TopLine Value="719"/>
<UsageCount Value="8"/>
</Unit6>
<Unit7>
<Filename Value="home\inoussa\Projets\Laz\ws_helper\parserutils.pas"/>
<UsageCount Value="8"/>
<SyntaxHighlighter Value="Text"/>
</Unit7>
<Unit8>
<Filename Value="home\inoussa\Projets\Laz\type_registry.pas"/>
<UnitName Value="type_registry"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="45"/>
<UsageCount Value="8"/>
</Unit8>
<Unit9>
<Filename Value="home\inoussa\Projets\Laz\basestubimp.pas"/>
<UnitName Value="basestubimp"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="107"/>
<UsageCount Value="8"/>
</Unit9>
<Unit10>
<Filename Value="usr\share\fpcsrc\rtl\objpas\typinfo.pp"/>
<UnitName Value="typinfo"/>
<CursorPos X="11" Y="220"/>
<TopLine Value="201"/>
<UsageCount Value="9"/>
</Unit10>
<Unit11>
<Filename Value="home\inoussa\Projets\Laz\v0.2\service_intf.pas"/>
<UnitName Value="service_intf"/>
<CursorPos X="1" Y="579"/>
<TopLine Value="567"/>
<UsageCount Value="1"/>
</Unit11>
<Unit12>
<Filename Value="home\inoussa\Projets\Laz\v0.2\soap_imp.pas"/>
<UnitName Value="soap_imp"/>
<CursorPos X="1" Y="701"/>
<TopLine Value="689"/>
<UsageCount Value="1"/>
</Unit12>
<Unit13>
<Filename Value="home\inoussa\Projets\Laz\v0.2\imp_utils.pas"/>
<UnitName Value="imp_utils"/>
<CursorPos X="1" Y="83"/>
<TopLine Value="71"/>
<UsageCount Value="1"/>
</Unit13>
<Unit14>
<Filename Value="home\inoussa\Projets\Laz\v0.2\indy_http_protocol.pas"/>
<UnitName Value="indy_http_protocol"/>
<CursorPos X="1" Y="50"/>
<TopLine Value="38"/>
<UsageCount Value="1"/>
</Unit14>
<Unit15>
<Filename Value="home\inoussa\Progs\indy-10.2.0.1\fpc\Protocols\IdHTTP.pas"/>
<UnitName Value="IdHTTP"/>
<CursorPos X="45" Y="1517"/>
<TopLine Value="1509"/>
<UsageCount Value="10"/>
</Unit15>
<Unit16>
<Filename Value="..\..\indy_http_protocol.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="indy_http_protocol"/>
<CursorPos X="45" Y="166"/>
<TopLine Value="156"/>
<UsageCount Value="69"/>
</Unit16>
<Unit17>
<Filename Value="..\..\ics_http_protocol.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="ics_http_protocol"/>
<CursorPos X="3" Y="17"/>
<TopLine Value="1"/>
<UsageCount Value="131"/>
</Unit17>
<Unit18>
<Filename Value="D:\Lazarus\others_package\ics\latest_distr\Delphi\Vc32\HttpProt.pas"/>
<UnitName Value="HttpProt"/>
<CursorPos X="65" Y="468"/>
<TopLine Value="454"/>
<UsageCount Value="9"/>
</Unit18>
<Unit19>
<Filename Value="..\..\soap_imp.pas"/>
<UnitName Value="soap_imp"/>
<CursorPos X="46" Y="42"/>
<TopLine Value="27"/>
<UsageCount Value="30"/>
</Unit19>
<Unit20>
<Filename Value="..\..\service_intf.pas"/>
<UnitName Value="service_intf"/>
<CursorPos X="35" Y="37"/>
<TopLine Value="33"/>
<EditorIndex Value="2"/>
<UsageCount Value="55"/>
<Loaded Value="True"/>
</Unit20>
<Unit21>
<Filename Value="D:\Lazarus\fpcsrc\fcl\xml\dom.pp"/>
<UnitName Value="DOM"/>
<CursorPos X="14" Y="278"/>
<TopLine Value="261"/>
<UsageCount Value="6"/>
</Unit21>
<Unit22>
<Filename Value="D:\Lazarus\fpcsrc\fcl\inc\contnrs.pp"/>
<UnitName Value="contnrs"/>
<CursorPos X="3" Y="745"/>
<TopLine Value="743"/>
<UsageCount Value="3"/>
</Unit22>
<Unit23>
<Filename Value="D:\Lazarus\fpcsrc\rtl\objpas\typinfo.pp"/>
<UnitName Value="typinfo"/>
<CursorPos X="20" Y="40"/>
<TopLine Value="87"/>
<UsageCount Value="3"/>
</Unit23>
<Unit24>
<Filename Value="D:\Lazarus\fpcsrc\rtl\win32\system.pp"/>
<UnitName Value="System"/>
<CursorPos X="6" Y="16"/>
<TopLine Value="1"/>
<UsageCount Value="2"/>
</Unit24>
<Unit25>
<Filename Value="xml_serializer.pas"/>
<UnitName Value="xml_serializer"/>
<CursorPos X="1" Y="80"/>
<TopLine Value="36"/>
<UsageCount Value="31"/>
</Unit25>
<Unit26>
<Filename Value="D:\Lazarus\fpcsrc\rtl\inc\systemh.inc"/>
<CursorPos X="3" Y="215"/>
<TopLine Value="201"/>
<UsageCount Value="5"/>
</Unit26>
<Unit27>
<Filename Value="..\..\soap_formatter.pas"/>
<UnitName Value="soap_formatter"/>
<CursorPos X="36" Y="29"/>
<TopLine Value="12"/>
<EditorIndex Value="3"/>
<UsageCount Value="49"/>
<Loaded Value="True"/>
</Unit27>
<Unit28>
<Filename Value="..\..\base_soap_formatter.pas"/>
<UnitName Value="base_soap_formatter"/>
<CursorPos X="3" Y="694"/>
<TopLine Value="666"/>
<EditorIndex Value="4"/>
<UsageCount Value="49"/>
<Loaded Value="True"/>
</Unit28>
<Unit29>
<Filename Value="..\..\base_service_intf.pas"/>
<UnitName Value="base_service_intf"/>
<CursorPos X="3" Y="119"/>
<TopLine Value="135"/>
<EditorIndex Value="8"/>
<UsageCount Value="33"/>
<Loaded Value="True"/>
</Unit29>
<Unit30>
<Filename Value="D:\lazarusClean\fpcsrc\rtl\objpas\objpas.pp"/>
<UnitName Value="objpas"/>
<CursorPos X="8" Y="28"/>
<TopLine Value="1"/>
<UsageCount Value="6"/>
</Unit30>
<Unit31>
<Filename Value="D:\lazarusClean\fpcsrc\rtl\inc\objpash.inc"/>
<CursorPos X="30" Y="206"/>
<TopLine Value="190"/>
<UsageCount Value="6"/>
</Unit31>
<Unit32>
<Filename Value="D:\lazarusClean\fpcsrc\rtl\win32\system.pp"/>
<UnitName Value="System"/>
<CursorPos X="4" Y="506"/>
<TopLine Value="231"/>
<UsageCount Value="6"/>
</Unit32>
<Unit33>
<Filename Value="googlewebapi_proxy.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="googlewebapi_proxy"/>
<CursorPos X="29" Y="64"/>
<TopLine Value="47"/>
<EditorIndex Value="1"/>
<UsageCount Value="72"/>
<Loaded Value="True"/>
</Unit33>
<Unit34>
<Filename Value="..\..\..\v0.2\base_service_intf.pas"/>
<UnitName Value="base_service_intf"/>
<CursorPos X="33" Y="291"/>
<TopLine Value="277"/>
<UsageCount Value="6"/>
</Unit34>
<Unit35>
<Filename Value="D:\lazarusClean\fpcsrc\fcl\xml\dom.pp"/>
<UnitName Value="DOM"/>
<CursorPos X="3" Y="1174"/>
<TopLine Value="1170"/>
<UsageCount Value="8"/>
</Unit35>
<Unit36>
<Filename Value="..\..\synapse_http_protocol.pas"/>
<UnitName Value="synapse_http_protocol"/>
<CursorPos X="3" Y="178"/>
<TopLine Value="134"/>
<UsageCount Value="12"/>
</Unit36>
<Unit37>
<Filename Value="D:\Lazarus\others_package\synapse\httpsend.pas"/>
<UnitName Value="httpsend"/>
<CursorPos X="15" Y="108"/>
<TopLine Value="96"/>
<UsageCount Value="9"/>
</Unit37>
<Unit38>
<Filename Value="D:\Lazarus\others_package\indy\indy-10.2.0.1\fpc\Protocols\IdHTTP.pas"/>
<UnitName Value="IdHTTP"/>
<CursorPos X="49" Y="343"/>
<TopLine Value="331"/>
<UsageCount Value="10"/>
</Unit38>
<Unit39>
<Filename Value="D:\Lazarus\others_package\indy\indy-10.2.0.1\fpc\Protocols\IdHTTPHeaderInfo.pas"/>
<UnitName Value="IdHTTPHeaderInfo"/>
<CursorPos X="70" Y="13"/>
<TopLine Value="1"/>
<UsageCount Value="9"/>
</Unit39>
<Unit40>
<Filename Value="D:\Lazarus\others_package\indy\indy-10.2.0.1\fpc\Protocols\IdHeaderList.pas"/>
<UnitName Value="IdHeaderList"/>
<CursorPos X="22" Y="157"/>
<TopLine Value="145"/>
<UsageCount Value="10"/>
</Unit40>
<Unit41>
<Filename Value="..\..\imp_utils.pas"/>
<UnitName Value="imp_utils"/>
<CursorPos X="1" Y="86"/>
<TopLine Value="72"/>
<UsageCount Value="10"/>
</Unit41>
<Unit42>
<Filename Value="..\..\..\..\..\lazarusClean\lcl\include\lclintf.inc"/>
<CursorPos X="49" Y="342"/>
<TopLine Value="336"/>
<UsageCount Value="10"/>
</Unit42>
<Unit43>
<Filename Value="..\..\..\..\..\lazarusClean\others_package\synapse\httpsend.pas"/>
<UnitName Value="httpsend"/>
<CursorPos X="14" Y="143"/>
<TopLine Value="120"/>
<UsageCount Value="10"/>
</Unit43>
<Unit44>
<Filename Value="..\..\metadata_repository.pas"/>
<UnitName Value="metadata_repository"/>
<CursorPos X="1" Y="498"/>
<TopLine Value="139"/>
<EditorIndex Value="6"/>
<UsageCount Value="12"/>
<Loaded Value="True"/>
</Unit44>
<Unit45>
<Filename Value="..\..\wst_resources_imp.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="wst_resources_imp"/>
<CursorPos X="23" Y="1"/>
<TopLine Value="19"/>
<EditorIndex Value="7"/>
<UsageCount Value="23"/>
<Loaded Value="True"/>
</Unit45>
<Unit46>
<Filename Value="googlewebapi.wst"/>
<CursorPos X="74" Y="13"/>
<TopLine Value="1"/>
<EditorIndex Value="5"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
<SyntaxHighlighter Value="None"/>
</Unit46>
</Units>
<JumpHistory Count="2" HistoryIndex="1">
<Position1>
<Filename Value="googlewebapi_proxy.pas"/>
<Caret Line="64" Column="29" TopLine="47"/>
</Position1>
<Position2>
<Filename Value="..\..\service_intf.pas"/>
<Caret Line="37" Column="35" TopLine="33"/>
</Position2>
</JumpHistory>
</ProjectOptions>
<CompilerOptions>
<Version Value="5"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="test_google_api.exe"/>
</Target>
<SearchPaths>
<OtherUnitFiles Value="C:\LazarusClean\others_package\ics\latest_distr\Delphi\Vc32\;..\..\;C:\LazarusClean\others_package\synapse\"/>
<UnitOutputDirectory Value="obj"/>
<SrcPath Value="..\..\"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<IncludeAssertionCode Value="True"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<Generate Value="Faster"/>
</CodeGeneration>
<Other>
<CustomOptions Value="-Xi
"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
<Debugging>
<BreakPoints Count="7">
<Item1>
<Source Value="home\inoussa\Projets\Laz\tests\soap\test_soap.pas"/>
<Line Value="15"/>
</Item1>
<Item2>
<Source Value="home\inoussa\Projets\Laz\tests\soap\test_soap.pas"/>
<Line Value="16"/>
</Item2>
<Item3>
<Source Value="home\inoussa\Projets\Laz\tests\soap\test_soap.pas"/>
<Line Value="18"/>
</Item3>
<Item4>
<Source Value="home\inoussa\Projets\Laz\tests\soap\googleintfimpunit.pas"/>
<Line Value="63"/>
</Item4>
<Item5>
<Source Value="home\inoussa\Projets\Laz\v0.2\indy_http_protocol.pas"/>
<Line Value="69"/>
</Item5>
<Item6>
<Source Value="home\inoussa\Projets\Laz\v0.2\service_intf.pas"/>
<Line Value="567"/>
</Item6>
<Item7>
<Source Value="home\inoussa\Projets\Laz\v0.2\imp_utils.pas"/>
<Line Value="83"/>
</Item7>
</BreakPoints>
<Watches Count="1">
<Item1>
<Expression Value="ASource.Memory^"/>
</Item1>
</Watches>
</Debugging>
</CONFIG>