Results 1 to 3 of 3
  1. #1
    doikhongcodon is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default 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!!!

  2. #2
    doikhongcodon is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: JAX-RPC web services client Error

    Please help me soon!

    Quote Originally Posted by doikhongcodon View Post
    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!!!

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default 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.

    ** This space for rent **

Similar Threads

  1. Replies: 0
    Last Post: 09-20-2011, 11:58 PM
  2. Java Web Services Client
    By yuriyl in forum Advanced Java
    Replies: 0
    Last Post: 06-03-2011, 10:25 PM
  3. Invoke Java Web services without a client stub
    By ramosamaze in forum Advanced Java
    Replies: 2
    Last Post: 05-04-2011, 03:25 PM
  4. Web Services: Axis vs Metro vs Spring Web Services
    By davidbaker29 in forum Advanced Java
    Replies: 0
    Last Post: 01-28-2009, 11:20 AM
  5. Replies: 0
    Last Post: 11-13-2007, 10:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •