2 Replies Latest reply on Jun 15, 2005 4:30 AM by thomas.diesler

    Which Deserializer for org.w3c.dom.Element ?

    mschwarz

      Hi everybody,

      I am using Axis 1.2 together with Jboss-3.2.1_tomcat-4.1.24 and have deployed my web service succesfully.
      The client sends a parameter of type org.w3c.dom.Element to the server who processes this Element and sends it back.

      Unfortunatly, an error occurs while receiving the repsonse:

      Caught SOAPException (SOAP-ENV:Client): No Deserializer found to deserialize a ':responseElementName'
      using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.


      This is a part of the response envelope:

      <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <ns1:myMethodResponse
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns1="urn:MyService">
      <responseElementName>
      <childElement>
      ...
      


      After reading several other threads, tutorials and documentation, I think I need to register a type mapping in my .wsdd file but I don't know which.

      Can anybody, please, give me a simple answer on this one ?

        • 1. Re: Which Deserializer for org.w3c.dom.Element ?
          mschwarz

          It's getting worse...

          After I finally managed to deserialize my Element (adding a type mapping with org.apache.axis.encoding.ser.Element(De)SerializerFactory on server side and one using a org.apache.soap.encoding.literalxml.XMLParameterSerializer on the client side ), I realized that my service needs the whole w3c.dom.Document.
          %-\

          I changed my .wsdd file to use style="document" and changed the server side type mapping as well.
          Now I encounter the problem that the XMLParameterSerializer can only process a w3c.dom.Element not a Document.

          Anybody a clue ?

          • 2. Re: Which Deserializer for org.w3c.dom.Element ?
            thomas.diesler

            This forum is about J2EE compliant web services, not standalone Axis. You would need to go to the axis support pages.