Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Soap Error.  RSS feed

 
dimpsonu arora
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have made a client side program that runs with soap.jar file.I am getting following error at run time.If somebody is aware of soap.jar file then there if a servlet soap\org\apache\soap\server\http\RPCRouterServlet.java in it.My trouble can be over if i will be able to run this servlet.But I am unable to run this servlet.I am getting following error in my program which I am running with help of soap.jar file.MY program takes 3 arguments.
NOTE: I am using Jboss-3.2.3
1. Path of "RPCRouterServlet.java" which I have mapped with name rpcrouter.
2. UserID
3. Password.
This is how I run my program.
java ExamplePIFApp http://localhost:8080/rpcrouter username password
Retrieving contact by ID...Exception in thread "main"
Following is the error:

java.lang.RuntimeException
: Unsupported response content type "text/html", must be: "text/xml". Response was:
<html><head><title>Apache Tomcat/4.1.29 - Error report</title><STYLE><!--H1{font
-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{
font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : whi
te;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYL
E> </head><body><h1>HTTP Status 401 - </h1><HR size="1" noshade><p><b>type</b> S
tatus report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>This reque
st requires HTTP authentication ().</u></p><HR size="1" noshade><h3>Apache Tomca
t/4.1.29</h3></body></html>

at sync.pif.client.SOAPClient.throwDeserializedException(SOAPClient.java
:643)
at sync.pif.client.SOAPClient.executeCall(SOAPClient.java:587)
at sync.pif.client.ContactClient.retrieveByID(ContactClient.java:195)
at ExamplePIFApp.run(ExamplePIFApp.java:136)
at ExamplePIFApp.main(ExamplePIFApp.java:70)
Note: I have tried following but not working.
In RRCRouterServlet.java, I tried.
setContentType("text/xml"); But not working. Plz help and thanks in advance.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is more related to web services - Apache soap, i'm moving it to Webservices forum.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HTML response's contents ("This request requires HTTP authentication") imply that the requested URL is protected and you'd need to authenticate against it. Have you google'd with that error message already?
 
dimpsonu arora
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
I removed the authentication by removing following line from web.xml file
<url-pattern>/rpcrouter</url-pattern>
Now when I run the program, it gives the same error but in HTML contents it says "Servlet not available" in place of "Http Authentication".Can you please help.
[ July 08, 2004: Message edited by: dimpsonu arora ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the web container's log files saying?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!