Results 1 to 2 of 2

Thread: XMLBeans and Spring-WS

  1. #1
    Join Date
    May 2007
    Posts
    2

    Default 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. #2

    Default 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
    jy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •