• Post Reply Bookmark Topic Watch Topic
  • New Topic

Soap Error in WebServices

 
Sarah Jones
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run the example form the http://www.javaworld.com/javaworld/jw-04-2001/jw-0427-soap-p2.html tutorial.
I get a Soap Error when I try query the service after I've deployed it.
the Error is:
C:\forte4j\bin\java\sampledir\hello>java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/apache-soap/servlet/rpcrouter query urn:AddressFetc
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=Cannot send
after socket shutdown: JVM_recv in socket input stream read; targetException=java.ne
t.SocketException: Cannot send after socket shutdown: JVM_recv in socket input stream
read]
at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.
java:328)
at org.apache.soap.rpc.Call.invoke(Call.java:205)
at org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerCli
ent.java:129)
at org.apache.soap.server.ServiceManagerClient.query(ServiceManagerClient.jav
a:162)
at org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java
:248)
How do I resolve this.
Thanks
Sarah
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since those are Client side errors, it looks like you are not communicating with the server at all. Are you sure the server is running? Are you sure you are using the right port number.
When you address that URL directly from a browser do you get the "I only do POST" (or whatever it is) message from the server?
Bill
 
Sarah Jones
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was most helpful.
It works now. I had the wrong name for the rpcrouter. I had apache-soap instead of just soap.
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!