Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a webservice with SOAP input message
Message
 
To
25/12/2006 10:09:38
Ali Ihsan Turkoolu
Galaksi Bilgisayar A.Þ.
Ankara, Turkey
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
01179756
Message ID:
01180138
Views:
17
You may be out of luck. If the Soap Toolkit can't parse the WSDL there's little you can do and will have to do without it...

Like I said in an earlier post the SOAP Toolkit isn't exactly a state of the art tool...

My recommendation for complex Web Services is to use a .NET component that calls teh Web Service and interface with that code through COM Interop. Microsoft's future investment in Web Services is all on .NET and this seems to be the only reliable tool that is provided to parse complex services.

The other alternative as you've mentioned is to call the service directly with a raw HTTP message, but in order for that to work you have to know exactly what the message looks like. You can figure that out if there's a sample for the service andyou can possibly capture the HTTP traffic.

Good luck,

+++ Rick ---

ps. I'll be posting an article in the next few weeks that talks about using .NET to call and publish Web Services for consumption with VFP.


>Mr.Rick,
>I read your paper up to "Error Handling in Web Services" carefully.
>(http://www.west-wind.com/presentations/foxpronetwebservices/foxpronetwebservices.asp).
>I understand that I must send complex objects as XML DOM Object Node List.
>Ok.But, I never get the return object. Where is the my mistake?
>
>TEXT TO m.lcXML noshow
> <provizyonGiris>
> <devredilenKurum>3</devredilenKurum>
> <hastaKarneNo>111111216</hastaKarneNo>
> <hastaSosyalGuvNo>1111111111126</hastaSosyalGuvNo>
> <hastaTCKimlikNo>49000719000</hastaTCKimlikNo>
> <provizyonTarihi>22.12.2006</provizyonTarihi>
> <provizyonTipi>N</provizyonTipi>
> <saglikTesisKodu>10662</saglikTesisKodu>
> <sigortaliTuru>2</sigortaliTuru>
> <takipNo></takipNo>
> <takipTuru>1</takipTuru>
> <yakinlikKodu></yakinlikKodu>
> </provizyonGiris>
>ENDTEXT
>
>loDom = CREATEOBJECT("MSXML2.DomDocument")
>loDom.LoadXMl(m.lcXML)
>loNodeList = loDom.DocumentElement.ChildNodes()
>
>lcWSDL = "http://43000210000:43000210000@test.sgk.gov.tr/saglikws/services/ProvizyonIslemleri/wsdl/ProvizyonIslemleri.wsdl"
>
>oWS = Createobject("MSSOAP.SoapClient30")
>oWS.MSSoapInit(lcWSDL)
>leResult = ows.hastaKabul(loNodeList)
>
>
>
>I got the error: OLEIDispatch exception code 0 from connection failure...
>
>When I try to use your proxy generator, I got an error like "Can not parse SDL file"
>Thanks for your helps.
>
>>>Thank you again.
>>>The SOAP input message of this methot is:
>>>
>>>
>>><?xml version="1.0" encoding="utf-8"?>
>>><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>xmlns:enc="http://schemas.xmlsoap.org/soap/encoding" >
>>>
>>><soap:Body>
>>>
>>><impl:hastaKabul xmlns:impl="http://servisler.ws.gss.sgk.gov.tr">
>>>
>>><provizyonGiris>
>>> <devredilenKurum>3</devredilenKurum>
>>> <hastaKarneNo>111111216</hastaKarneNo>
>>> <hastaSosyalGuvNo>1111111111126</hastaSosyalGuvNo>
>>> <hastaTCKimlikNo>49000719000</hastaTCKimlikNo>
>>> <provizyonTarihi>22.12.2006</provizyonTarihi>
>>> <provizyonTipi>N</provizyonTipi>
>>> <saglikTesisKodu>10662</saglikTesisKodu>
>>> <sigortaliTuru>2</sigortaliTuru>
>>> <takipNo></takipNo>
>>> <takipTuru>1</takipTuru>
>>> <yakinlikKodu></yakinlikKodu>
>>></provizyonGiris>
>>>
>>></impl:hastaKabul>
>>>
>>></soap:Body>
>>>
>>></soap:Envelope>
>>>
>>>
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform