axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter <zc....@gmx.net>
Subject Axis1.4 wsdl2java Typ problem
Date Wed, 12 Sep 2007 11:05:40 GMT
hi group,

i got a problem wenn i will convert following snip of the xsd into java types 
with wsdl2java:

	<xs:complexType name="ErrorTyp">
		<xs:sequence minOccurs="0" maxOccurs="unbounded">
			<xs:element name="UserID">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:minLength value="9" />
						<xs:maxLength value="9" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="FaultCode" type="xs:string" />
		</xs:sequence>

first of all I will explain the request:

I update a number of different user (UserID) with a lot of data with one 
request, if something goes wrong an element with the UserId and the Faultcode 
comes back as the ErrorTyp. if mor then one update requests goes wrong I 
should get back always a pair of UserID and FaultCode in ErrorTyp.

What I get back look like this:

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<UserUpdateResponse xmlns="">
<ErrorTyp xmlns="ns://zc.wp.net/UserAdministration/V1_0">
<UserID>1254897</UserId>
<FaultCode>E_06</FaultCode>
<UserID>1254898</UserId>
<FaultCode>E_03</FaultCode>
<UserID>1254898</UserId>
<FaultCode>E_02</FaultCode>
</ErrorTyp>
</UserUpdateResponse>
</soapenv:Body>
</soapenv:Envelope>

that is correct, but in my client java classes i only get the last UserID back 
an nothing else.

I can't rewrite the XSD or the WSDL file becauces those files files comes from 
a exsiting and already life working service.

is there a way to alter class definition of the generatet ErrorTyp class to 
handle all the failed update requests?

best regards Max

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message