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.....
< mimeType>image/gif
< URL xsi:nil="true"/>
< removeOnUpdate>false
< /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
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985777#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...