[xsd-users] SOAP message serialization using XSD compiler on WSDL

Neeraj Vaidya neeraj.vaidya at yahoo.co.in
Thu Aug 29 13:43:27 EDT 2013


Hi,

I have a WSDL which defines the layout of SOAP messages that will be exchanged between my application and another.
My application is based on C++. Is there a way to generate serialization code using xsd compiler ?
When I tried to compile it, it complained that the root element must be "schema".

My WSDL contains the following (just a part of the file) :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.telstra.com/SDFProvisioning/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SDFProvisioning" targetNamespace="http://www.telstra.com/SDFProvisioning/">
    <wsdl:types>
        <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
                   xmlns:tns="http://www.nv.com/SDFProvisioning/"
                   attributeFormDefault="unqualified"
                   elementFormDefault="unqualified"
                   targetNamespace="http://www.nv.com/SDFProvisioning/">

            <xs:element name="TopupProvisioningRequest" type="tns:TopupProvisioningRequestType"/>
            <xs:element name="TopupProvisioningResponse" type="tns:TopupProvisioningResponseType"/>
    

            <xs:complexType name="TopupProvisioningRequestType">
                <xs:sequence>
                                        <xs:element name="operationName" type="tns:operationNameType" minOccurs="1" maxOccurs="1"/>
                    <xs:element name="transactionId" type="xsd:string" minOccurs="1" maxOccurs="1"/>
                    <xs:element name="imsi" type="tns:imsiType" minOccurs="1" maxOccurs="1"/>
                    <xs:element name="productCode" type="tns:productCodeType" minOccurs="1" maxOccurs="1"/>
                    <xs:element name="productStartDate" type="tns:productStartDateType" minOccurs="1" maxOccurs="1"/>
                    <xs:element name="productEndDate" type="tns:productEndDateType" minOccurs="1" maxOccurs="1"/>
                </xs:sequence>
            </xs:complexType>
....
....

Regards,
Neeraj


More information about the xsd-users mailing list