posted 12 years ago
Hi everybody,
I have a complex type element which is defined in another dtd:
<complexType name="GetValueRequest">
<complexContent>
<extension base="bst:Request">
<sequence>
<element name="partyIdentifiers" type="fsvoc:PartyIdentifiers" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
// this is another dtd
<complexType name="PartyIdentifiers">
<sequence>
<element name="pi" type="int"/>
</sequence>
</complexType>
I got org.springframework.ws.soap.client.SoapFaultClientException: Validation error. However, if i put all in one dtd, everything is ok.
This is how i make the call.
def response = withEndpointRequest(serviceURL) {
GetValueRequest(xmlns: namespace) {
partyIdentifiers {
pi(1)
}
}
}
How to make it work with multiple dtd? Anyone knows?