users@saaj.java.net

SAAJ v1.2 VS SAAJ v1.3

From: Paulo Carvalho <pjinsc_at_gmail.com>
Date: Thu, 31 Jan 2008 11:11:11 +0100

Hello

I am having a stange problem using SAAJ 1.2 (which I had installing
jwsdp-1.3 because I can't find anywhere any release of SAAJ 1.2).

Here is the problem. I have a client which sends a SOAP message with an
attachment to a WebService.

  1 - When my client project and my webservice project have the saaj-api.jarand
saaj-impl.jar files of SAAJ 1.3 release, everything works fine.

  2 - When my client project have the saaj-api.jar and saaj-impl.jar files
of SAAJ 1.2 release and my webservice project have the saaj-api.jar and
saaj-impl.jar files of SAAJ 1.3 release, everything works fine

  3 - When my client project and my webservice project have the saaj-api.jarand
saaj-impl.jar files of SAAJ 1.2 release, the following error occurs:


       31-Jan-2008 10:41:56
com.sun.xml.messaging.saaj.soap.MessageImplidentifyContentType
SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of
a SOAP message
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.messaging.saaj.soap.MessageImpl.identifyContentType(
MessageImpl.java:258)
        at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(
MessageImpl.java:127)
        at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl
.<init>(Message1_1Impl.java:43)
       ...


       3.1 - To be more specific (I found that trying to figure out what was
the problem), when my client project have the saaj-api.jar and
saaj-impl.jarfiles of SAAJ
1.2 and my webservice project have the saaj-api.jar of SAAJ 1.3 release and
have the saaj-impl.jar file from SAAJ 1.2 release, everything works fine!


Any help about this strange problem is very welcome!

Regards