03-08-2011 10:29 AM - edited 03-14-2019 07:31 AM
I'm attempting to hit a URL and return an XML response using the Create URL Document and Create XML Document steps. The create URL Document step works as expected but not the Create XML Document step.
Create URL Document –
URL - “http://dev/PhonePayment.asmx/makeRequest?policyNumber=1011290000001”
Document - Doc_URL_Document
Create XML Document
Source Document - Doc_URL_Document
Document - Doc_Account_Info
During runtime the Doc_URL_Document gets set to URL[http://dev/PhonePayment.asmx/makeRequest?policyNumber=1011290000001] as expected. However, when the Create XML Document step gets hit Doc_Account_Info gets set to the following:
§com.cisco.wf.steps.io.XMLDocument§com.cisco.wf.steps.io.XMLDocument@0§
If I manually go to http://dev/PhonePayment.asmx/makeRequest?policyNumber=1011290000001 then I get the attached as the return XML. What am I missing?
03-08-2011 03:01 PM
Your web server is not returning a valid XML document.
Use this tool to validate your XML: http://validator.w3.org/#validate-by-input (copy/paste)
A well formed XML document begins and ends with a root node. Your document ends with:
22205 1144.70 May 09, 2011 05:25:04 PM 502.85 15.00
03-10-2011 07:46 AM
Anthony,
Thanks - you definitely put me on the right track! As you said the web server was giving me malformed XML. I had the developer create an XML file that was properly formed with just the information I needed and it worked like a champ.
Thanks,
Bill
03-10-2011 11:49 AM
You're welcome. Thanks for the rating.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide