Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLHTTP calling a method
Message
 
To
08/05/2008 14:51:11
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01315904
Message ID:
01315955
Views:
26
>Ok, but if there are different methods on their server, submitRealtimeRequest being one of them, your code doesn't reference that. How does it know where to get processed?
>

Some SOAP servers require it in the URL (see in the code where I have "MethodName", it could be "submitRealtimeRequest").

The SOAP message itself also has information about the message, it's routing, etc.

The way I've previously done this is, assuming the vendor has sample code in some other language, is to use the sample code to connect to their server while running something like Fiddler (an IE plug-in, just Google Fiddler). It will show exactly what was sent to the server. Then I've just written the code to make my messages look exactly the same. I know in theory all of this stuff is supposed to "just work", but in reality that hasn't been my experience (at least with Java-based servers).

If you have a WSDL link you could always take a chance that it will "just work" and fire up the Task Pane in VFP and go to the XML Web Service page and register your web service - it will generate sample code that might actually work.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform