File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login
JavaRanch » Java Forums » Other Languages » Groovy
Reply 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?

 
IntelliJ Java IDE
 
subject: Spring WS validation error on multiple DTD
 
Threads others viewed
Using extensions in XML - error underfined 'base'
xsd question
AnyType in WSDL tranformation - ESB
wsimport command error --Undefined symbol or complex type
Axis, missing qualified name in root element
IntelliJ Java IDE