Announcement Announcement Module
Collapse
No announcement yet.
Problem with Java6 Client Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with Java6 Client

    Hi there,
    i wrote a WebService using Spring-WS. I tesed it with SoapUI and it works as it should do. But when i try to use the Service with a client using Java6 it doesnt work.
    After comparing the messages i found the difference and with SoapUI i was able to confirm that the difference makes the Service not work.

    Here are the 2 Messages:
    Working one:
    Code:
    <soapenv:Envelope xmlns:soapenv="XXX//schemas.xmlsoap.org/soap/envelope/" xmlns:sch="myTestPath">
       <soapenv:Header/>
       <soapenv:Body>
          <sch:TestRequest>
             <sch:TestId>1</sch:TestId>
          </sch:TestRequest>
       </soapenv:Body>
    </soapenv:Envelope>
    NOT working:
    Code:
    <soapenv:Envelope xmlns:soapenv="XXX//schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header/>
       <soapenv:Body>
          <TestRequest xmlns="myTestPath">
             <TestId>1</TestId>
          </TestRequest>
       </soapenv:Body>
    </soapenv:Envelope>
    (I XXXed the schemaURL's because the board tells me that i am not allowed to post URLs because i am too new )

    The only difference is the XML-Namespace.
    When sending the second Request i get following Error Message:
    Could not access envelope: Unable to create envelope from given source: ; nested exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Unable to create envelope from given source:

    So i unstand it that the Spring-WS is not able to read the message correctly.

    Java6 uses the second variant (which is in my eyes not wrong).

    I use following version of libs:
    Saaj 1.3
    Spring-WS 1.5.5
    Jaxen 1.1

    any help?

    thx
    Packo

  • #2
    OK,
    found the problem some pages later.

    Newer versions of xalan (2.7.0) and xerces (2.8.1) solve the problem on the server side.

    Packo

    Comment

    Working...
    X