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.

Reply via email to