Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run WEB services - how to?
Message
From
09/04/2005 12:41:04
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
01002698
Message ID:
01003062
Views:
26
Hi,

A 'quick and dirty' approach might be:
lcRequest = "<Debug>false</Debug> 
<pkgMultipleRecords>false</pkgMultipleRecords> 
<pkgAddressMailing>false</pkgAddressMailing> 
<pkgAddressParsed>false</pkgAddressParsed> 
<pkgDeliveryIndicator>false</pkgDeliveryIndicator> 
<pkgAddressDeliveryPointValidation>false</pkgAddressDeliveryPointValidation> 
<pkgAddressGeographicArea>false</pkgAddressGeographicArea> 
<pkgAddressGeoCode>false</pkgAddressGeoCode> 
<pkgNameParsed>false</pkgNameParsed> 
<pkgTelephoneNumber>false</pkgTelephoneNumber> 
<pkgStreetDataAllRecords>false</pkgStreetDataAllRecords> 
<pkgStreetDataInRangeRecordsOnly>false</pkgStreetDataInRangeRecordsOnly> 
<pkgZipCodeCitiesInState>false</pkgZipCodeCitiesInState> 
<pkgZipCodeZipInCity>false</pkgZipCodeZipInCity> 
<pkgZipCodeInformation>false</pkgZipCodeInformation> 
<pkgStreetDataOnAddressErrorsOnly>false</pkgStreetDataOnAddressErrorsOnly>" 

loResponse = lomdWebservices.doSingleRecord(lcRequest)
In practice your lcRequest string would be built up in code and some node values would presumably need to be 'true'. You'd also need some additional nodes for the other optional parameters - check the 's:complexType name="RequestRecord" ' element in the WSDL for details of these. They're all straightforward string values.

loResponse will be an XMLDomNodeList object (and a fairly complex one at that). You'll need to navigate around this to extract the data you need. As a start try:
FOR i = 0 TO loResponse.length - 1
  ? loResponse.Item(i).xml
ENDFOR 
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform