We have a requirement where “Complete XML” will be send over webservice in a string field.
When we receive the XML data, it gets converted to IData in webMethods and the validation fails. I am not finding any solution of how to handle XML data correctly or is it a limitation/bug in webMethods.
Could you please tell us what is the exact error you are getting? Just check the error log and server log. I believe you are receiving the data successfully but it fails in validation? is it?
This is a poor design that we used to see often in the “baby steps” days of web services. Rather than spend the time to create a good interface, designers just add a single field to hold an XML document.
It will work, but should be avoided where possible.
IS will attempt to automatically convert and XML document that it recognizes to an IData in several instances. If a file is sent to a service with a MIME type of text/xml or if a field uses the reserved word “xmldata”.
If the contents of the string field is a valid, properly encoded XML document according to an XML schema and the string field is not named “xmldata” this will work.