This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes valid SOAP content-type? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "valid SOAP content-type?" Watch "valid SOAP content-type?" New topic
Author

valid SOAP content-type?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Hi,

While consuming another service, I get following exception:



Why so? text/html is valid content-type.

Thanks.

[ UD: added line break to preserve page layout ]
[ September 04, 2008: Message edited by: Ulf Dittmer ]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
SOAP responses are expected to be XML in a standard SOAP message format.

You may be getting the server's standard error message as formatted for browsers in HTML, indicating your request never got to the SOAP service.

If this was my problem I would use TCPMON to see exactly what is being sent back.

Bill


Java Resources at www.wbrogden.com
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by William Brogden:
SOAP responses are expected to be XML in a standard SOAP message format.

You may be getting the server's standard error message as formatted for browsers in HTML, indicating your request never got to the SOAP service.

If this was my problem I would use TCPMON to see exactly what is being sent back.

Bill


I downloaded TCPMon. But I am not getting anything in it.

My browser will connect to it (TCPMon) and it will connect to server which is running on my local machine.

So to add a monitor following are the parameters I give:

Local Port: 8080 (default)
Server Name: 127.0.0.1
Server Port: 7001

But when I hit a URL (i.e. http://localhost:7001/WSProject/index.jsp), I don't get anything in TCPMon.

Am I wrong somewhere?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Sorry. I will have to hit 8080 port (http://localhost:8080/WSProject/index.jsp) as this is the port TCPMon is listing to.

Thanks.
[ September 04, 2008: Message edited by: Ulf Dittmer ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: valid SOAP content-type?
 
Similar Threads
Nondescript "Unsupported Content-Type" error when connecting to https Sharepoint web services
Web Service parameter for large xml ?
Web Service parameter for large xml ?
How to get document object From SOAP Message?
java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP