Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Classic ASP vs ASP.NEET

From: Tom@-----------.---------.---
To: 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent