Hi, Jim:

Thank you very much for your detailed reply. I found the problem by 
following the guidance in your message. The port # of my Tomcat is 80 and it 
is 8080 in hello.Client.

Have a nice weekend.

George


>From: Jim Hazen <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Error opening socket
>Date: Thu, 26 Jul 2001 20:18:57 -0700
>
>Well, you can use a web browser.  Web browsers simply open a connection 
>(via a
>socket) and talk HTTP to a web server of some fashion.  SOAP requests are 
>the
>same.  The client opens a connection and posts data to the url of the
>rpcrouter.  The rpcrouter then uses the SOAP software to look up the 
>appropriate
>code on the server, in this case probably the hello.Server class.  The
>hello.Server class does some thinking and then sends this information back 
>to
>the SOAP client by way of the rpcrouter (the whole process in reverse).
>
>So if your SOAP client is trying to connect to
>http://<yourserver>/servlet/rpcrouter, then to see if that server is "up" 
>you
>could point a web browser to the same URL.  Since SOAP requires that it 
>receive
>requests via HTTP POST, you'll get an error asking you to send a POST 
>instead of
>a GET (which is what browsers typically send to get a web page).  This 
>doesn't
>matter, as long as you don't get a connection refused error.  If you get a
>connection refused error, then you weren't even able to make that initial
>connection to the server.  It looks like this is your problem.
>
>Once you understand a little more about HTTP you can even use (or write) 
>other
>programs which will interactively send data to the web server.  But for 
>now,
>just try to point a web browser to http://<yourserver>/servlet/rpcrouter 
>and see
>if you get anything back.
>
>If the web browser works, and the SOAP client doesn't, make sure the SOAP 
>client
>is making a request to exactly the same URL as the browser.  You may need 
>to
>look at the code for hello.Client.  If you're connecting to
>http://bob.com/servlet/rpcrouter then make sure that's what the SOAP client 
>is
>connecting to.  You may be tempted to try and just connect to localhost or
>127.0.0.1, this often does not have the same meaning to Apache or Tomcat as 
>a
>regular routable name/IP does, so don't assume that will work without 
>checking.
>
>So, first make sure your web server is running, then make sure both clients 
>are
>going to the same place.
>
>-Jim
>
> > Hi Jim:
> >
> > Thanks for your reply. The web server, Tomcat, was running on the same 
>PC
> > where I requested that service. I don't know how to check whether a web
> > server accepting connections. Any suggestions are appreciated.
> >
> > George
> >
> > >From: Jim Hazen <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: Error opening socket
> > >Date: Thu, 26 Jul 2001 19:30:43 -0700
> > >
> > >Make sure your web server is up and accepting connections (in general, 
>from
> > >your
> > >location, etc)
> > >
> > >-Jim
> > >
> > > > Hi:
> > > >
> > > > I got following error message when I did
> > > > java hello.Client John
> > > >
> > > > Caught SOAPException (SOAP-ENV:Client): Error opening socket: 
>Connection
> > > > refused
> > > > : connect
> > > >
> > > > I'm using SOAP 2.2, tomcat 3.2.1, and jdk1.3.02 on Windows 2000.
> > > > The tomcat was running on my PC
> > > >
> > > > Could anyone give a clue?
> > > >
> > > > Thanks,
> > > >
> > > > George
> > > >
> > > > _________________________________________________________________
> > > > Get your FREE download of MSN Explorer at
> > >http://explorer.msn.com/intl.asp
> > >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at 
>http://explorer.msn.com/intl.asp
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to