axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Cooper <>
Subject hexBinary serialization to XML looks wrong
Date Fri, 14 Oct 2005 06:43:36 GMT
I have a schema with an element defined as xsd:hexBinary with a fixed 
size of 16:

<simpleType name="GUIDType">
    <restriction base="hexBinary">
      <length value="16" fixed="true"></length>

I am using document literal for a web service operation and the message 
refers to a complex type that contains an element that is GUIDType. In 
the implementation of the web service as generated by Axis (I am actualy 
using eclipse wtp 0.7.1 but I believe this is what is going on) I create 
the required objects for my message including populating the byte array 
that was generated for the hexBinary. When I examine the SOAP message 
the element (called GUID) is like this:

when I would expect something looking like this:

<GUID>0a2bcdef0a2bcdef0a2bcdef0a2bcdef</GUID> (random value- not 
intended to be same as above)

So, what am I doing wrong? Can anyone help.

Thanks, Matty.

View raw message