Soap and xml
I hope someone can help me with this problem. I am running in circles with it.
I have an xml document which I am able to pick off the values I want and I want to sent it to another page via soap. I am pretty confident that what I am sending is structure okay.
All well and good.
I am pretty sure it is getting to the receiving page because when I do the following in my page that sends to the receiving page:
But when I change it to and add
xdDoc = xhHTTP.responseXML;
var vtest = xdDoc.selectSingleNode("//RECTEST/REASON").text
and try to pickoff the error code, it blows on the var vtest line of picking off the node to get the error code. And the error message is really useless: "An exception of type MicroSoft Jscript type runtime error Object required was not handled"
What in the world is happening ??
The values that are being sent over are real number that may have 9 decimal positions. I am lost at what to try next.
I am using xml parser v 3 whihc is necessary because of the cml document being sent to me.
This is the receiving page. Not much to it. I haven't added any processing per say.
<%Response.ContentType = "text/xml"%>
Set xdRequestXML = Server.CreateObject("MSXML2.DOMDocument")
xclient = xdRequestXML.selectSingleNode"//VRate/Name").text
vrates(1) = xdRequestXML.selectSingleNode("//VPRate/Rate1").text
vrates(2) = xdRequestXML.selectSingleNode("//VPRate/Rate2").text
vrates(3) = xdRequestXML.selectSingleNode("//VPRate/Rate3").text
on error resume next
vfname = ""
vlname = ""
Response.Write "<RECTEST>" & vbNewLine
Response.Write "<REASON>FAILED</REASON>" & vbNewLine
Why do I keep getting the error ? This is really been confusing me for two days now.