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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]