Announcement Announcement Module
Collapse
No announcement yet.
XSD out of SOAP message Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XSD out of SOAP message

    Hello.
    I know, itīs not exactly an XSD forum here.
    But maybe someone can help me...

    I have following SOAP Message:
    Code:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope">    
       <SOAP-ENV:Body>       
          <ns0:ServiceRequestResponse xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://OutputMessageNamespace">  
             <ServiceRequestAcknowledgement xsi:type="ns:ServiceRequestAcknowledgement" xmlns:ns="http://www.mycompany.com/wsdl/types" xmlns:ns0="http://www.w3.org/2003/05/soap-envelope">  
                <ns:TransactionId>1695729</ns:TransactionId>  
             </ServiceRequestAcknowledgement>   
          </ns0:ServiceRequestResponse>    
       </SOAP-ENV:Body> 
    </SOAP-ENV:Envelope>
    I want to read this message with XmlBeans to java objects. Therefore I wrote an XSD. My problem is, that I can interpret the surrounding ServiceRequestResponse block but not the ServiceRequestAcknowledgement.
    Can someone show me how to write the corresponding XSD???

    Best regards
    Joachim

  • #2
    I solved the problem.
    The namespaces caused the trouble.
    After specifying some values for the XmlOptions.setLoadSubstituteNamespaces it works fine...

    Comment

    Working...
    X