Results 1 to 3 of 3
- 03-21-2012, 03:32 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 2
- Rep Power
- 0
JAX-RPC web services client Error
Hi all!
I develop a desktop application and using JAX-RPC web services client, but I run my application, the errors generate as follows:
com.sun.xml.messaging.saaj.soap.MessageImpl identifyContentType
SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message
thg 2 22, 2012 5:16:17 SA dbs.SynchProcess callJaxRpcWS
SEVERE: null
java.rmi.RemoteException: HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?; nested exception is:
HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
at webservices.client.hoso.HosoModelPort_Stub.getHoso (HosoModelPort_Stub.java:87)
at dbs.SynchProcess.callJaxRpcWS(SynchProcess.java:23 8)
at dbs.SynchProcess.run(SynchProcess.java:64)
at java.lang.Thread.run(Thread.java:722)
Caused by: HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
at com.sun.xml.rpc.client.http.HttpClientTransport.in voke(HttpClientTransport.java:140)
at com.sun.xml.rpc.client.StreamingSender._send(Strea mingSender.java:96)
at webservices.client.hoso.HosoModelPort_Stub.getHoso (HosoModelPort_Stub.java:70)
... 3 more
Please help me for resolve the problem.
Best reguard!!!
- 03-21-2012, 09:52 AM #2
Member
- Join Date
- Mar 2012
- Posts
- 2
- Rep Power
- 0
- 03-21-2012, 10:46 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: JAX-RPC web services client Error
The response is wrong for a web service.
Looks like it's trying to send back HTML.
If you have a copy of your SOAP request you could try soap-ui and see what is actually returned by the service.
Or you could use an interceptor (or handler) to print out the response before the SOAP engine tries to interpret it.
The former is generally easier than the latter for straight-forward web services.Please do not ask for code as refusal often offends.
Similar Threads
-
Java Web Service Client doesnt Like when Server adds properties (Web Services)
By DawtComm in forum New To JavaReplies: 0Last Post: 09-20-2011, 11:58 PM -
Java Web Services Client
By yuriyl in forum Advanced JavaReplies: 0Last Post: 06-03-2011, 10:25 PM -
Invoke Java Web services without a client stub
By ramosamaze in forum Advanced JavaReplies: 2Last Post: 05-04-2011, 03:25 PM -
Web Services: Axis vs Metro vs Spring Web Services
By davidbaker29 in forum Advanced JavaReplies: 0Last Post: 01-28-2009, 11:20 AM -
how to create java client to access web services running on https/ssl
By navneet1083 in forum NetBeansReplies: 0Last Post: 11-13-2007, 10:13 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks