473,809 Members | 2,699 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSXML2.ServerXM LHTTP returning Status 500 when accessing webservice


Hello everyone,

I am trying to access a webservice to post some values via
MSXML2.ServerXM LHttp
The OS used is win2003 on both machines.

When I access the local machine (A) which has the same service the call
works great.
When I access the other machine (B) that is on the same subnet, I get a
Status of 500.

sendItms ="userID=2" &"&sbID=16" &"&modID=22" &"&sesID=" &7888

'works
URL ="http://localhost/RServices/Sys/some.asmx/AddInformation"

'doesn't work
'URL ="http://remote/RServices/Sys/some.asmx/AddInformation"

Set oXMLHttp = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")

lngResolveTimeo ut = 1000
lngConnectTimeo ut = 1000
lngSendTimeout = 1000
lngReceiveTimeo ut = 1000
oXMLHttp.SetTim eouts lngResolveTimeo ut, lngConnectTimeo ut,
lngSendTimeout, lngReceiveTimeo ut

oXMLHttp.open "POST",URL,fals e
oXMLHttp.setReq uestHeader "Content-Type",
"applicatio n/x-www-form-urlencoded"

oXMLHttp.send sendItms
if oXMLHttp.Status >= 400 And oXMLHttp.Status <=599 Then
Response.Write( oXMLHttp.Status & " - "& oXMLHttp.Status Text)
else
Response.Conten tType = "text/xml"
Response.Write "response from service " & oXMLHttp.respon sexml.xml
Response.Write( oXMLHttp.status & " - "& oXMLHttp.status Text)
end if
Set oXMLHttp= nothing
Can someone tell me what can cause this and what does this mean and if
it is not asking to much, how can I resolve this?

TIA,
Ed

--
ehilario
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 22 '05 #1
1 14701
Display the text of the page returned when the status is 500
(oXMLHttp.respo nseText). It should give you an error message the same as if
you were calling the page from a browser. You might even try using an HTML
form to do the post and see what you get back.

--
--Mark Schupp
"ehilario" <eh************ *@mail.codecomm ents.com> wrote in message
news:eh******** *****@mail.code comments.com...

Hello everyone,

I am trying to access a webservice to post some values via
MSXML2.ServerXM LHttp
The OS used is win2003 on both machines.

When I access the local machine (A) which has the same service the call
works great.
When I access the other machine (B) that is on the same subnet, I get a
Status of 500.

sendItms ="userID=2" &"&sbID=16" &"&modID=22" &"&sesID=" &7888

'works
URL ="http://localhost/RServices/Sys/some.asmx/AddInformation"

'doesn't work
'URL ="http://remote/RServices/Sys/some.asmx/AddInformation"

Set oXMLHttp = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")

lngResolveTimeo ut = 1000
lngConnectTimeo ut = 1000
lngSendTimeout = 1000
lngReceiveTimeo ut = 1000
oXMLHttp.SetTim eouts lngResolveTimeo ut, lngConnectTimeo ut,
lngSendTimeout, lngReceiveTimeo ut

oXMLHttp.open "POST",URL,fals e
oXMLHttp.setReq uestHeader "Content-Type",
"applicatio n/x-www-form-urlencoded"

oXMLHttp.send sendItms
if oXMLHttp.Status >= 400 And oXMLHttp.Status <=599 Then
Response.Write( oXMLHttp.Status & " - "& oXMLHttp.Status Text)
else
Response.Conten tType = "text/xml"
Response.Write "response from service " & oXMLHttp.respon sexml.xml
Response.Write( oXMLHttp.status & " - "& oXMLHttp.status Text)
end if
Set oXMLHttp= nothing
Can someone tell me what can cause this and what does this mean and if
it is not asking to much, how can I resolve this?

TIA,
Ed

--
ehilario
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1328
by: ehilario | last post by:
Thanks Mark, That 's better than internal server error. This is what came back, which is confusing because when its called locally it comes back fine. Am I missing something? -Ed
5
17895
by: katrinaVictim | last post by:
Question: I get the eror listed at the bottom of the post. What can I do to make the response of the x1.send a "binary" type? Or, in general, how can I just "make this work"? <%@ Language=VBScript %> <% Response.Buffer = TRUE Response.ContentType = "image/jpg"
2
21818
by: Michael Christensen | last post by:
Hi How do I send an input-param to my web service with MSXML2.ServerXMLHTTP? Can this be done without the soap-toolkit? Can't find anything about it - looking forward getting some help :-) ------------- Function GetLatest() Dim url, xmlhttp, XMLDOM, XMLNode
0
4233
by: Sia Jai Sung | last post by:
Hi, I need to write a ASPX file that will post some request to other party (web service written in java), here is my code, <%@ Page aspcompat=true %> <% Dim xml, url
1
6593
by: Raúl Martín | last post by:
I´ve a function in asp that run correctly but If I tried to change it forasp.net in asp: xmlHTTP = CreateObject("Microsoft.XMLHTTP") And I thought to use this sentence for asp.net but the server don´t response right. xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
0
1115
by: RichardF | last post by:
I have a solution that contains a web service and a web site. I was working on it all day Monday with no problems. Tuesday morning it stopped working, but ONLY when run from inside Visual Studio (VS). Now, when I run it from inside VS, my web site times out when trying to access the web service. The initial login page comes up OK so I enter my user name and password and hit enter, at that time the web site attempts to contact the web...
2
8761
by: Maris Janis Vasilevskis | last post by:
Hi, Is it possible to force HttpWebRequest to do exactly (not approximately) the same as MSXML2.ServerXMLHTTP does? More details. I port JScript to JScript.NET I have a server (ASP invoking binary code; code not accessible). I send XML requests to it. If my request is accepted, ServerXMLHTTP returns XML with accept details. If my request is rejected, ServerXMLHTTP returns XML with reject details.
8
21815
by: lopi | last post by:
Hello. I'm trying to remotely get a pdf file - http://remoteServer/file.pdf - in order to store it into another server, maybe with Scripting.FileSystemObject However the following code doesn't work properly: ------------ url = "http://remoteServer/file.pdf" set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "GET", url, false xmlhttp.send ""
0
2290
by: Quickzilverfox | last post by:
I am attempting to send a purchase request string to a webservice on a remote site I am able to successfully send the quoterequest using Msxml2.ServerXMLHTTP on one page and parse the response. When I try to send the purchaserequest on the next page to the same URL, I get an "Unable to Parse" error and the POST never leaves my server. Please help! Working POST (quoterequest) <%@ LANGUAGE="VBSCRIPT"%> <!-- #include...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.