• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

valid SOAP content-type?

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
ankur rathi
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Hold that thought. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic