Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Classic ASP vs ASP.NEET

From: "Umut Alev - MSFT" <ualev@-------.--->
To: NULL
Date: 5/6/2006 11:04:00 AM

Tom,

This might be an authentication issue. Did you try to use proxycfg.exe?
http://support.microsoft.com/default.aspx?scid=kb;en-us;830605

From ASP.NET please do not use Msxml objects as there are known issues of 
doing that.
Please see http://support.microsoft.com/default.aspx?scid=kb;en-us;815112 
for more info.

Instead use managed HttpWebRequest class, documentation for that can be 
found at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetHttpWebRequestClassTopic.asp

Regards,
- Umut Alev [MSFT]

"Tom" <Tom@d...> wrote in message 
news:FF9C32E1-BE34-4716-9889-47E5F765C0AA@m......
>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