CassidyHunt
IS-IT--Management
I am trying to recieve a webmethods XML post in ASP. My code is as follows:
<%
dim sForm
dim m_objXML
set m_objXML = Server.Createobject("MSXML2.DOMDocument")
sForm = Request.Form()
m_objXML.loadXML (sForm)
if m_objXML.parseerror.number = 0 then
m_objXML.save (Server.mappath & "\test.xml")
Response.write m_objXML.xml
else
Response.write "Error has occured"
end if
%>
I recieve a post for a form when I have a name of the object or when I use the ServerXMLHTTP without a name. When webmethods post to me I see all the following:
HTTP_ACCEPT:image/gif, */* HTTP_HOST:209.193.95.45 HTTP_USER_AGENT:Mozilla/4.0 [en] (WinNT; I) HTTP_COOKIE:ASPSESSIONIDSQDQCABD=LDHNELODHOELCPAPOJJBFFHG HTTP_CONTENT_LENGTH:22116 HTTP_CONTENT_TYPE:text/xml
I can not access the data from the post. It shows I have 22116 bytes and returns 200 for success on the Webmethods machine.
Any idea how to get the data would be very appreciated.
Thanks.
Cassidy
<%
dim sForm
dim m_objXML
set m_objXML = Server.Createobject("MSXML2.DOMDocument")
sForm = Request.Form()
m_objXML.loadXML (sForm)
if m_objXML.parseerror.number = 0 then
m_objXML.save (Server.mappath & "\test.xml")
Response.write m_objXML.xml
else
Response.write "Error has occured"
end if
%>
I recieve a post for a form when I have a name of the object or when I use the ServerXMLHTTP without a name. When webmethods post to me I see all the following:
HTTP_ACCEPT:image/gif, */* HTTP_HOST:209.193.95.45 HTTP_USER_AGENT:Mozilla/4.0 [en] (WinNT; I) HTTP_COOKIE:ASPSESSIONIDSQDQCABD=LDHNELODHOELCPAPOJJBFFHG HTTP_CONTENT_LENGTH:22116 HTTP_CONTENT_TYPE:text/xml
I can not access the data from the post. It shows I have 22116 bytes and returns 200 for success on the Webmethods machine.
Any idea how to get the data would be very appreciated.
Thanks.
Cassidy