aspose file tools*
The moose likes Groovy and the fly likes Spring WS validation error on multiple DTD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Spring WS validation error on multiple DTD" Watch "Spring WS validation error on multiple DTD" New topic
Author

Spring WS validation error on multiple DTD

Jack Nam
Ranch Hand

Joined: Feb 09, 2010
Posts: 33
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?


Jack Nam
Ranch Hand

Joined: Feb 09, 2010
Posts: 33
ignore what I wrote above. I set the dbug mode, and I found this:

2011-06-02 14:28:16,145 [http-7777-1] WARN interceptor.PayloadValidatingInterce
ptor - XML validation error on request: cvc-complex-type.2.4.a: Invalid content
was found starting with element 'reference'. One of '{reference}' is expected.


Seems I do not anything wrong. Any idea?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring WS validation error on multiple DTD