Announcement Announcement Module
Collapse
No announcement yet.
Problems with client webservice Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with client webservice

    Hi all,

    We worked a webservice with a spring-ws in a project (zakkosal_Offer).

    Now we do the client (also we used spring-ws) of this web service in other project (zakkosal).

    When we execute this client we have this problem:

    Jan 22, 2009 11:27:49 AM com.sun.xml.internal.messaging.saaj.soap.MessageIm pl identifyContentType
    SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message
    Exception in thread "main" org.springframework.ws.soap.SoapMessageCreationExc eption: Could not create message from InputStream: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?; nested exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
    at org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory.createWebServiceMessage(SaajSoapMessageFacto ry.java:171)
    at org.springframework.ws.transport.AbstractWebServic eConnection.receive(AbstractWebServiceConnection.j ava:86)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:552)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:501)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:456)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:402)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:393)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:383)
    at de.neusta.webtasks.webservice.client.WSClient.sear ch(WSClient.java:66)
    at de.neusta.webtasks.webservice.client.WSClient.main (WSClient.java:75)
    Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
    at com.sun.xml.internal.messaging.saaj.soap.MessageIm pl.identifyContentType(MessageImpl.java:605)
    at com.sun.xml.internal.messaging.saaj.soap.MessageIm pl.<init>(MessageImpl.java:278)
    at com.sun.xml.internal.messaging.saaj.soap.ver1_1.Me ssage1_1Impl.<init>(Message1_1Impl.java:68)
    at com.sun.xml.internal.messaging.saaj.soap.ver1_1.SO APMessageFactory1_1Impl.createMessage(SOAPMessageF actory1_1Impl.java:62)
    at org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory.createWebServiceMessage(SaajSoapMessageFacto ry.java:154)
    ... 9 more

  • #2
    SOAP webservice client stops working after SSL is implemented at the server

    We have SOAP webservice client which works fine. But since when we implemented SSL https in url, we cannot make it to work.
    We added the cert to cacerts of jvm with key tools, but now we are getting the following exception, not sure where to look at. Any help will be appreciated.

    Feb 06, 2013 8:28:54 PM com.sun.xml.internal.messaging.saaj.soap.MessageIm pl identifyContentType
    SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message
    Exception in thread "main" org.springframework.ws.soap.SoapMessageCreationExc eption: Could not create message from InputStream: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?; nested exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
    at org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory.createWebServiceMessage(SaajSoapMessageFacto ry.java:206)
    at org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory.createWebServiceMessage(SaajSoapMessageFacto ry.java:60)
    at org.springframework.ws.transport.AbstractWebServic eConnection.receive(AbstractWebServiceConnection.j ava:90)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:589)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:537)
    at org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 384)
    at org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 378)
    at org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 370)

    Comment

    Working...
    X