You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by kpalania <kp...@yahoo.com> on 2008/10/03 00:06:09 UTC

Parsing a SOAP message using XMLBeans

Could someone tell me what the XSD should look like for a payload that looks
like this - 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
  <soap:Body> 
    <isWebServiceAvailableResponse
xmlns="http://company.com/">true</isWebServiceAvailableResponse> 
  </soap:Body> 
</soap:Envelope> 

But for the namespaces, I know what the XSD should look like. It is the need
for the parent element to be part of the SOAP namespace and the children to
be part of my own namespace that is making it a bit difficult for me.
Thanks.
-- 
View this message in context: http://www.nabble.com/Parsing-a-SOAP-message-using-XMLBeans-tp19788469p19788469.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Parsing a SOAP message using XMLBeans

Posted by John <li...@johndubchak.com>.
Here's what IntelliJ generates:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" 
elementFormDefault="qualified" 
targetNamespace="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Envelope" type="soapenv:EnvelopeType" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/>
  <xs:complexType name="EnvelopeType">
    <xs:sequence>
      <xs:element type="soapenv:BodyType" name="Body" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BodyType">
    <xs:sequence>
      <xs:element ref="com:isWebServiceAvailableResponse" 
xmlns:com="http://company.com/"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

kpalania wrote:
> Could someone tell me what the XSD should look like for a payload that looks
> like this - 
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
>   <soap:Body> 
>     <isWebServiceAvailableResponse
> xmlns="http://company.com/">true</isWebServiceAvailableResponse> 
>   </soap:Body> 
> </soap:Envelope> 
>
> But for the namespaces, I know what the XSD should look like. It is the need
> for the parent element to be part of the SOAP namespace and the children to
> be part of my own namespace that is making it a bit difficult for me.
> Thanks.
>