Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Classic ASP vs ASP.NEET Classic ASP vs ASP.NEETTo: NULL Date: 5/2/2006 7:35:00 AM
I have a web service which running from an classic ASP page.
This service is running fine when accessed from classic ASP.
Now, I need to access the service from ASP.Net.
If I use the original code, the send method generates an invalid parameter
error.
If i use Msxml2.ServerXMLHTTP, no error is generated but the webservice
receives an empty document.
Any clues would be appreciated.
The code:
Dim xmlMsg, outstr, ackXml, ackRoot
xmlMsg = CreateObject("MSXML2.XMLHTTP")
'xmlMsg = CreateObject("Msxml2.ServerXMLHTTP")
xmlMsg.Open("POST", SURL, False)
xmlMsg.setRequestHeader("MethodName", "enterOrder")
xmlMsg.setRequestHeader("MessageType", "Call")
xmlMsg.setRequestHeader("Content-Type", "text/xml-SOAP")
If xmlObj.parseError.errorCode <> 0 Or xmlObj.childnodes.length <= 0 Then
Glb.WriteToLog("Input doc was bad:" & xmlObj.parseError.reason)
End If
xmlMsg.Send(xmlObj)
TIA
--
Tom
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
