Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Respecting a specific XSD file
Message
 
To
11/07/2002 14:15:49
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00677672
Message ID:
00678359
Views:
20
>I need to have a specific method, of a Web Service, to return the XML string based on a specific XSD layout which contains the schema definition. Does this mean I can no longer use my method to execute something such as CURSORTOXML(ALIAS(),'lcHtml',1,48,0,'1') and send the contains of lcHtml as my XML string? Would that mean I would have to manipulate each node required in the XSD schema definition file line by line?

Strings results or parameters are never part of the SOAP envelop schema since strings get encoded as XML strings. IOW, they don't travel over the wire raw, but get encoded so it doesn't affect the schema in anyway other than itself.

If you pass binary data (or undefined data) it'll get Base64 encode which also doesn't affect the SOAP envelope, but is more difficult to deal withi on the client side.

The only time objects get embedded directly into the SOAP envelope is when you explicitly define the type in the WSDL which is not directly supported by the SOAP toolkit unless you hack the WSDL after it's been generated which is a hack at best and unmaintainable at worst.

For VFP application passing any 'complex' results and XML around is best to be done as strings.

wwSOAP can handle complex return values OK, but passing it up to the server has the same issues as the SOAP toolkit due to the fact that VFP can't properly export type information in proper case into a WSDL generation easily (back to hacking the WSDL).

IAC, if you're building a Web service string values can be used by all and at this point in the game is probably the most acceptable solution.

+++ Rick ---
+++ 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
Next
Reply
Map
View

Click here to load this message in the networking platform