Hi Chris,

I'm extremely sorry for the mix up... I sent you the code that was running
for me too...

I've attached the code, which is giving the problem. Could you, kindly, have
a look at it ? Most of the services written in .Net (on XMethod) give me the
same error.

Thanks & Regards,
Deepak


-----Original Message-----
From: Chris Means [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 11:01 PM
To: [EMAIL PROTECTED]
Subject: RE: Error while trying to access XMethod web services


Deepak,

Your code worked fine for me...maybe you've got a firewall or something in
your way...

One thing I'd like to point out though...you obviously took some other Java
class and just changed the SOAP settings to work with this new service.  You
should do this with care, fortunately, the SOAP service didn't mind that you
were passing a parameter called "zip" rather than one called "symbol"...<g>

Good luck.

> -----Original Message-----
> From: Deepak M. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 20, 2001 8:32 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Error while trying to access XMethod web services
> Importance: High
>
>
> Hi,
>
> Attached is the client program that I use to access the service.
> It uses (or
> should I say, tries to use) HTTP, if I'm not mistaken.
>
> It gives me the error
> Caught SOAPException (SOAP-ENV:Client): Error opening socket: Host
> unreachable: no further information
>
> The service is available at
> http://www.xmethods.com/detail.html?id=221
>
> I can access the following service though
> http://www.xmethods.com/detail.html?id=223
>
> by just changing the
>
> URL to "http://213.23.125.181:8080/RPC";
> TargetObjectURI to "urn:SpheonJSOAPChemistry"
> MethodName to "getNameBySymbol"
> Parameter to "Au"
> SOAPAction to ""
>
>
> Do I have to do something extra if the web service is written in .Net ?
>
> Regards,
> Deepak
>
>
>
> -----Original Message-----
> From: Ian Snead [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 20, 2001 7:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Error while trying to access XMethod web services
>
>
>
> Hello Deepak,
>
> Your SOAP client cannot connect to the machine
> that hosts the SOAP service.
>
> What transport are you using?
>
> "Deepak M." wrote:
> >
> > Hi,
> >
> > I get the following error while trying to access XMethod web services
> >
> > Caught SOAPException (SOAP-ENV:Client): Error opening socket: Host
> > unreachable: no further information
> >
> > java.lang.NullPointerException
> > at WeatherClient.main(WeatherClient.java:45)
> >
> > The code at line No. 45 is
> >                 if (!res.generatedFault())
> > Obviously the response is Null which is throwing the exception.
> >
> > What could be the problem ?
> >
> > Thanks in advance,
> > Deepak
>
> --
> Software Engineer
> EzGov
> work : (404) 836-7957
>
> To err is human.
> To System.err is machine.
>
>

Attachment: WeatherClient.java
Description: Binary data

Reply via email to