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 Tevoi Andrea <te...@cad.it> on 2003/01/10 11:39:55 UTC

org.xml.sax.SAXException: Invalid element in...

Hi all,

I have a Wsdl containing a Schema definition.
This is a portion of the Schema:
...
<xsd:complexType name="TFL">
	<xsd:sequence>
		<xsd:element name="SMANDAT" type="tns:SABL"/>
		<xsd:element name="SREVERS" type="tns:SABL"/>
		<xsd:element name="SBILANC" type="tns:SABL"/>
		<xsd:element name="SREGPRO" type="tns:SABL"/>
		<xsd:element name="SDELIB" type="tns:SABL"/>
		<xsd:element name="S006" type="tns:SABL"/>
		<xsd:element name="S007" type="tns:SABL"/>
		<xsd:element name="S008" type="tns:SABL"/>
		<xsd:element name="S009" type="tns:SABL"/>
		<xsd:element name="S010" type="tns:SABL"/>
	</xsd:sequence>
</xsd:complexType>
...

Now, I've generated stub classes with WSDL2Java to invoke the service, but on client side it throws an exception:

org.xml.sax.SAXException: Invalid element in com.cadit.ws.city.servizi.t2.t2gws00.TFL - S006
at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:252)
...

This is a portion (relative to portion of Schema) of Soap Message coming from server:

...
<cty:TFL>
	<cty:SMANDAT>1</cty:SMANDAT>
	<cty:SREVERS>1</cty:SREVERS>
	<cty:SBILANC>1</cty:SBILANC>
	<cty:SREGPRO>1</cty:SREGPRO>
	<cty:SDELIB>1</cty:SDELIB>
	<cty:S006>1</cty:S006>
	<cty:S007>1</cty:S007>
	<cty:S008>1</cty:S008>
	<cty:S009>1</cty:S009>
	<cty:S010>1</cty:S010>
</cty:TFL>
...

Namespaces declaration on soap message are correct. Stub class throws an exception only for element S006, but it is correctly defined in the Schema.
Any helps?

Thanks in advance,

Andrea Tevoi