Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SOAP how does it work ?
Message
From
05/01/2007 16:22:30
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01182951
Message ID:
01182990
Views:
18
as I said soaptoolkit works great for simple types doesn't work that great when you have complex types as objects, can it be that what the web service returns is a .net dataset?
don't know more info since you didn't post the wsdl of the service so there isn't anyting more I can tell you.

>It seems to work, but I don't knwo what to do with "lc". It seems to be an object but when I try to print a property, Fox tell that it is not an object. In debuget it's an array of objects, but I can get properties of objects
>
>>Hi Thierry Soap toolkit is old cause was pre .net way of calling web services, Microsoft discontinued since now everything should use .net, but you can still use it.
>>
>>soapproxy = CREATEOBJECT("MSSOAP.SoapClient30")
>>soapproxy.MSSoapInit("http://website/dir/page.asmx?WSDL, "NameOfWebService")
>>lc = soapproxy.GetCustomerInformation(facilityId, dossierNumber, username, password)
>>
>>lc will hold the result of the method.
>>Soaptoolkit will work fine with base types, if you want to pass/receive complex types your best bet is to create a soapproxy in vs.net, build it for com interop and then call it from vfp.
>>
>>>Hi all, happy new year 2007,
>>>
>>>I have a new problem this year... I have to use SOAP toolkit, and I never used that. All I can found on internet seems to be very old.
>>>
>>>I have to get information about customers on a website. All information I have is this..
>>>
>>>
>>>POST /zrxtest/zrxpmisbridge/pmisbridge.asmx HTTP/1.1
>>>Host: www.website.com
>>>Content-Type: application/soap+xml; charset=utf-8
>>>Content-Length: length
>>>
>>><?xml version="1.0" encoding="utf-8"?>
>>><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
>>>  <soap12:Body>
>>>    <GetCustomerInformation xmlns="http://www.website.com/">
>>>      <_facilityId>string</_facilityId>
>>>      <_dossierNumber>string</_dossierNumber>
>>>      <_username>string</_username>
>>>      <_password>string</_password>
>>>    </GetCustomerInformation>
>>>  </soap12:Body>
>>></soap12:Envelope>
>>>
>>>
>>>Making this string is easy... but how to send it to the server?
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform