Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Web Service on a web farm

Reply
Thread Tools

Web Service on a web farm

 
 
phillip
Guest
Posts: n/a
 
      05-18-2007
I am calling a web service from a classic asp page as follows....
-----
Set oSOAP = CreateObject("MSSOAP.SoapClient30")
oSOAP.ClientProperty("ServerHTTPRequest") = True
oSOAP.mssoapinit("http://www.website.com/TestWebservices/service.asmx?wsdl")

strReturn = oSOAP.HelloWorld()
set oSOAP = nothing
response.write strReturn
-----

www.website.com is behind a load balancer on a web farm. I can always call
the web service when it is located on a website that is not behind a load
balancer, but on the web farm, I always get the following error...

-----
WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: The
server returned an invalid or unrecognized response HRESULT=0x1: Incorrect
function. - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057:
The parameter is incorrect. - Client:One of the parameters supplied is
invalid. HRESULT=0x80070057: The parameter is incorrect.
-----

Can you call a web service across a web farm using soap? does anyone have
any ideas why this might be failing on a web farm? Thanks for any help.


 
Reply With Quote
 
 
 
 
John Saunders [MVP]
Guest
Posts: n/a
 
      05-18-2007
"phillip" <> wrote in message
news:F762DC60-D6DE-4953-ADA0-...
>I am calling a web service from a classic asp page as follows....
> -----
> Set oSOAP = CreateObject("MSSOAP.SoapClient30")
> oSOAP.ClientProperty("ServerHTTPRequest") = True
> oSOAP.mssoapinit("http://www.website.com/TestWebservices/service.asmx?wsdl")
>
> strReturn = oSOAP.HelloWorld()
> set oSOAP = nothing
> response.write strReturn
> -----
>
> www.website.com is behind a load balancer on a web farm. I can always
> call
> the web service when it is located on a website that is not behind a load
> balancer, but on the web farm, I always get the following error...
>
> -----
> WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is:
> The
> server returned an invalid or unrecognized response HRESULT=0x1: Incorrect
> function. - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057:
> The parameter is incorrect. - Client:One of the parameters supplied is
> invalid. HRESULT=0x80070057: The parameter is incorrect.
> -----
>
> Can you call a web service across a web farm using soap? does anyone have
> any ideas why this might be failing on a web farm? Thanks for any help.


You can call a web service across a web farm. That's not the problem. The
problem is your particular setup, which, for some reason, is returning you
something other than XML. I bet it's returning you an error message in HTML.
Use a network monitor to find out what's going on.
--
John Saunders [MVP]


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference between web farm and web gardens? Bhuwan Bhaskar ASP .Net 2 10-24-2007 08:27 AM
Redirecting a web page in a web farm environment robin9876@hotmail.com ASP .Net 0 03-10-2006 03:51 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
multihoming a small web farm john rambo Cisco 1 02-18-2004 10:55 PM
Web Farm/Web Garden Steve ASP .Net 3 01-21-2004 01:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57