Announcement Announcement Module
Collapse
No announcement yet.
XMLBeans and Spring-WS Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XMLBeans and Spring-WS

    Hi

    I am having an issue with XML-beans and spring-ws

    I have a simple schema

    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:valuer="http://test.net/xmlbeans/instruction" targetNamespace="http://test.net/xmlbeans/instruction" elementFormDefault="qualified">
    <xs:element name="GetInstructionRequest" />
    </xs:schema>

    my xml

    <?xml version="1.0" encoding="UTF-8"?>
    <valuer:GetInstructionRequest xsi:schemaLocation="http://test.net/xmlbeans/instruction Test.xsd" xmlns:valuer="http://test.net/xmlbeans/instruction" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    </valuer:GetInstructionRequest>

    I have my endpoint configured correctly. When I debug the breakpoint in my endpoint is hit but the type that is passed into

    protected Object invokeInternal(Object request){

    GetInstructionRequestDocument getInstructionRequest = (GetInstructionRequestDocument)request;


    return request;
    }

    is a org.apache.xmlbeans.impl.values.XmlAnyTypeImpl not a GetInstructionRequestDocument.

    Can anyone see anything obvious.

    Thanks

  • #2
    XMLBeans and Spring-WS:

    Hi,
    I have different error when using XMLBeans and Spring-WS to try the tutorial shipped with Spring Web Service.

    I trace the error find that error happen at this code,
    ....
    this.getWebServiceTemplate().marshalSendAndReceive (requestDoc);
    ....

    the error is as follows,
    Servlet.service() for servlet action threw exception org.springframework.ws.soap.client.SoapFaultClient Exception: Validation error at

    Any idea?

    Thanks

    Comment

    Working...
    X