2 Replies Latest reply on Nov 16, 2006 11:43 AM by Heiko Braun

    base64Binary:   jbossws client serialize problem

    Victor Batista Newbie

      Hello!
      I am using JBoss 4.0.4 with jbossws 1.0.3GA. I am developing a WS DII client which talks with a third party Web Service. I am having problems serializing one field which is specified as "base64Binary" on the WSDL:

       <xsd:complexType name="BinaryData">
       <xsd:sequence>
       <xsd:element name="data" type="xsd:base64Binary"
       nillable="true"/>
       <xsd:element name="mimeType" type="xsd:string"
       nillable="true"/>
       <xsd:element name="URL" type="xsd:string" nillable="true"/>
       <xsd:element name="removeOnUpdate" type="xsd:boolean"
       nillable="false"/>
       </xsd:sequence>
      


      The "data" field should be sent as a Base64 String. Although, the Request SOAP message has the following data:

       <ns1:data xmlns:ns1="urn:drm/ingest-ex/IngestService/SchemaTypes">
       <ns1:data>-1</ns1:data>
       <ns1:data>-40</ns1:data>
       <ns1:data>-1</ns1:data>
       <ns1:data>-32</ns1:data>
      ......
       <ns1:mimeType>image/jpeg</ns1:mimeType>
       <ns1:URL xsi:nil="1"/>
       <ns1:removeOnUpdate>false</ns1:removeOnUpdate>
       </ns1:data>
      


      I have implemented a client using jboss.net (org.jboss.axis...) and I have the same problem.

      I have implemented a standalone client using axis (org.apache.axis...) and I can call the Web Service correctly. The Request SOAP message contains:

      < data>
       < data>j/4AAQSkZ.....</data>
       < mimeType>image/gif</mimeType>
       < URL xsi:nil="true"/>
       < removeOnUpdate>false</removeOnUpdate>
      < /data>
      


      In this case, the "data" field is correctly encoded as a Base64 String.

      Am i missing any configuration with jbossws? What must I do to have the correct behavior?

      Any help would really be appreciated.
      Thanks in advance,
      Victor Batista