How do I retrieve the values of the SOAP Fault message to display to the user by using classical asp?
I am sending an xml document and they use SOAP authentication.
I have attached a snapshot of the message, and its a valid error message.
I just need to retrieve and display the SOAP FAULT values.
After researching, I know I need to extract the child nodes but I can not quite it right.
I know its XML and I should be able to extract the fault string, actor and message I couldn't find what was the best way .
I am thinking in the savdoc I should try to extract the child node <faultstring>.
Any help appreciated.
Below is my code for sending/receiving XML etc. It works fine.
url = "http://ws.mysite.com/test/Gateway.asmx"
Set objXMLHTTP = server.Createobject("MSXML2.ServerXMLHTTP")
objXMLHTTP.Open "POST", url, false
objXMLHTTP.setRequestHeader "Content-Type", "text/xml"
'get any XMLHTTP MESSAGES
strStatus = objXMLHTTP.StatusText
savdoc = objXMLHTTP.ResponseText
'get any SOAP FAULT MESSAGES IF THEY EXISTS AND DISPLAY TO USER