Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Classic ASP vs ASP.NEET [Thread Next] Re: Classic ASP vs ASP.NEETTo: NULL Date: 5/6/2006 2:41:00 PM
Yeahhhhh!!!
HttpWebRequest was a good tip. I dug around and found some examples
and tried it out, and to my amazement, it worked!
Thanks a bunch!!!
--
Tom
"Umut Alev - MSFT" wrote:
> 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
>
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
