Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring WS validation error on multiple DTD

 
Jack Nam
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic