| Problems in accessing External Web Service using WST [message #123985] |
Thu, 21 July 2005 08:41  |
Eclipse User |
|
|
|
I am using the Web Standard Tools and using the Web Services Explorer. I am
having a problem regarding accessing the external web service.I am behind a
firewall and thats the reason why I am providing the username and password.I
am not able to access external webservice. I am able to access any other web
service.The error its showing is:
IWAB0135E An unexpected error has occurred.
502
Proxy Error ( The Uniform Resource Locator (URL) does not use a recognized
protocol. Either the protocol is not supported or the request was not typed
correctly. Confirm that a valid protocol is in use (for example, HTTP for a
Web request). )
May be its some problem with the SOAP protocol,I dont know what????? Please
help me as soon as possible.
Anshuk
|
|
|
| Re: Problems in accessing External Web Service using WST [message #123999 is a reply to message #123985] |
Thu, 21 July 2005 08:53   |
Eclipse User |
|
|
|
Hi Anshuk,
At what stage did you run into the problem? Did you run into this when you
loaded the WSDL into the Web Services Explorer, or you run into it after
your entered all the input parameters and try to invoke the Web service?
From your description, I assumed you are behind an authenticating proxy
server, and you entered the proxy host, port, username and password in the
Internet preference page, correct?
Is it possible for you to post the WSDL file or the URL to the WSDL file?
Did it work if you are not behind a firewall?
Hopefully, these questions will help us better understand the nature of the
problem. Looking forward to your response.
Jeff
"Jeff Liu" <jeffliu@ca.ibm.com> wrote in message
news:dbo56a$djj$1@news.eclipse.org...
> I am using the Web Standard Tools and using the Web Services Explorer. I
am
> having a problem regarding accessing the external web service.I am behind
a
> firewall and thats the reason why I am providing the username and
password.I
> am not able to access external webservice. I am able to access any other
web
> service.The error its showing is:
>
> IWAB0135E An unexpected error has occurred.
>
> 502
>
> Proxy Error ( The Uniform Resource Locator (URL) does not use a recognized
> protocol. Either the protocol is not supported or the request was not
typed
> correctly. Confirm that a valid protocol is in use (for example, HTTP for
a
> Web request). )
>
> May be its some problem with the SOAP protocol,I dont know what?????
Please
> help me as soon as possible.
>
>
>
> Anshuk
>
>
|
|
|
|
| Re: Problems in accessing External Web Service using WST [message #124506 is a reply to message #124013] |
Fri, 22 July 2005 01:47  |
Eclipse User |
|
|
|
Hi Anshuk,
By definition, HTTP 502 means:
The server, while acting as a gateway or proxy, received an invalid response
from the upstream server it accessed in attempting to fulfill the request.
So it sounds like your proxy server is having trouble processing the
response from the XMethods Web service. The following is a sample
request/response message between the Web Services Explorer and this XMethods
Web service.
Request -------------------------------------------------
POST /soap/servlet/rpcrouter HTTP/1.1
Host: services.xmethods.net
Content-Type: text/xml; charset=utf-8
Content-Length: 433
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: IBM Web Services Explorer
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Connection: close
<soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns0:getTemp xmlns:ns0="urn:xmethods-Temperature"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<zipcode xsi:type="xsd:string">90210</zipcode>
</ns0:getTemp>
</soapenv:Body>
</soapenv:Envelope>
Response -------------------------------------------------
HTTP/1.1 200 OK
Date: Fri, 22 Jul 2005 05:33:10 GMT
Server: Enhydra-MultiServer/3.1.1b1
Status: 200
Content-Type: text/xml; charset=utf-8
Servlet-Engine: Enhydra Application Server/3.1.1b1 (JSP 1.1; Servlet 2.2;
Java 1.4.2_03; Linux 2.4.7-10smp i386; java.vendor=Sun Microsystems Inc.)
Content-Length: 467
Set-Cookie: JSESSIONID=VKRIYhjcmcQ7xID2zusSAbR2;Path=/soap
X-Cache: MISS from www.xmethods.net
Connection: close
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:getTempResponse xmlns:ns1="urn:xmethods-Temperature"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:float">-999.0</return>
</ns1:getTempResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Just by looking at the error message and the sample req/resp, I cannot tell
what is wrong. We have users behind authenticating firewalls that got the
same scenario to work. So, the best thing to do now is to find out exactly
what your proxy server is choking on. Does your proxy server have a log that
say in more details what is wrong? Why it doesn't like the response from the
XMethods Web service? That information will help us further debug the
problem.
Thanks,
Jeff
"Anshuk" <anshuk.pal@gmail.com> wrote in message
news:d29ba0f1c4d19a25f4aa1ee9a55018d0$1@www.eclipse.org...
> Hi Jeff,
>
> Yes,Jeff,the problem came after i entered all the input parameters and
> tried to invoke the Web service.The URL for the WSDL
> http://www.xmethods.net/sd/2001/TemperatureService.wsdl
>
> And,yes I am behind an authenticating proxy server.I gave the same details
> for a stand alone client in Java and it workd fine.Its creating a problem
> for this only in WTP.
> Please let me know immediately.
>
> Regards,
> Anshuk
>
|
|
|
Powered by
FUDForum. Page generated in 0.04631 seconds