K
Kristian Lier Selnæs
Hi!
I've created a web service which will be consumed using a mobile client (J2ME +
JSR 172). I need to send bytestreams between the client and the server, i.e the
server has the following methods: sendFile(byte[] file) and byte[]
getFile(String filename).
According to the standard, a byte[] should be mapped to base64Binary or
hexBinary in the WSDL. This is indeed the case for my service (its mapped to
base64Binary). However, when I try to generate a stub for the service, using
the stub generator in Sun's Wireless Toolkit, I get the following output:
error: Found unknown simple type: byte[]
Here is a snippet from the WSDL i use:
<complexType name="sendFile">
<sequence>
<element name="sessionID" nillable="true" type="xsd:string"/>
<element name="file" type="xsd:base64Binary"/>
</sequence>
</complexType>
The stub is generated without a problem when I remove the element named "file".
Changing base64Binary to hexBinary produces the same error.
Any explanation will be appreciated!
Regards,
Kristian Selnæs
I've created a web service which will be consumed using a mobile client (J2ME +
JSR 172). I need to send bytestreams between the client and the server, i.e the
server has the following methods: sendFile(byte[] file) and byte[]
getFile(String filename).
According to the standard, a byte[] should be mapped to base64Binary or
hexBinary in the WSDL. This is indeed the case for my service (its mapped to
base64Binary). However, when I try to generate a stub for the service, using
the stub generator in Sun's Wireless Toolkit, I get the following output:
error: Found unknown simple type: byte[]
Here is a snippet from the WSDL i use:
<complexType name="sendFile">
<sequence>
<element name="sessionID" nillable="true" type="xsd:string"/>
<element name="file" type="xsd:base64Binary"/>
</sequence>
</complexType>
The stub is generated without a problem when I remove the element named "file".
Changing base64Binary to hexBinary produces the same error.
Any explanation will be appreciated!
Regards,
Kristian Selnæs