You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Clarence Dahlin <cl...@gmail.com> on 2005/11/01 09:34:04 UTC
Re: base64Binary and simpleType problem
I'm not entirely sure what the version is called but the
implementation-version is "Implementation-Version: 1.2 1505 May 3 2005"
I got the same Exception with the latest Axis 1.3
I noticed this in the StackTrace:
org.apache.axis.message.RPCElement.deserialize
My Web Service is in document/literal wrapped style. Should it still use the
RPCElement? (I haven't investigated what the RPCElement represent exactly,
but I just thought it seemed somewhat strange :-)
/ Clarence
On 10/31/05, Ebert, Chris <chris.ebert@hp.com > wrote:
>
> Which version of Axis? I had a problem with simple types not working a
> while back, which would have caused this problem: since then I've
> forgotten what solved it, but I know I switched from Axis 1.2rc3 to
> 1.2.1.
>
> Chris
>
>
> -----Original Message-----
> From: Clarence Dahlin [mailto:clarence.pitch@gmail.com ]
> Sent: Monday, October 31, 2005 06:22
> To: axis-user@ws.apache.org
> Subject: base64Binary and simpleType problem
>
> Hi,
>
> Does anyone know why I get this error when I try to parse a byte[] in
> one of the following cases but not the other?
>
> org.xml.sax.SAXException : Found character data inside an array element
> while deserializing
>
> I have a xsd with this simple type:
> <xsd:simpleType name="userSuppliedTag">
> <xsd:restriction base="xsd:base64Binary"/> </xsd:simpleType>
>
> which is used in this element:
> <xsd:element name="deleteObjectInstance">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="objectInstanceDesignator"
> type="types:objectInstanceDesignator"/>
> <xsd:element name="userSuppliedTag"
> type="types:userSuppliedTag"/>
> <xsd:element name="timeStamp" type="types:timeStamp"
> minOccurs="0"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
>
> The thing is though that if I remove the types:userSuppliedTag and use
> xsd:base64Binary straight away, it works.
>
> Any ideas?
>
>