Hey Penchdev,
I am having the same issue now, did you found any solution so far ???
Would please give some ideas to fix it ?
Thanks for your time and I hope hear from you soon :)
Goodbye

--- In [email protected], "Panchdev Singh" <panchdev.iit...@...> wrote:
>
> hi !
> 
> 
> i need help in adding SOAP header elements to my tr069 wsdl file ....which i 
> created using a xsd to wsdl conversion tool.. 
> but the wsdl it generated is not fully correct...
> actually it treated the soap header elements 
> given in the xsd file below as operations...
> 
> 
> here is a part of my xsd file...
> 
> <!-- ************************************************************ -->
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <!--
> 
>   TR069 xml schema definition
> 
> 
> 
>   Define the xml schema for the messages passed in TR069
> 
> -->
> 
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
> 
>            xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> 
>            xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> 
>            xmlns:tns="urn:dslforum-org:cwmp-1-0"
> 
>            targetNamespace="urn:dslforum-org:cwmp-1-0"
> 
>            elementFormDefault="unqualified"
> 
>            attributeFormDefault="unqualified">
> 
> 
> 
>   <xs:import namespace="http://schemas.xmlsoap.org/soap/envelope/";
> 
>              schemaLocation="http://schemas.xmlsoap.org/soap/envelope/"/>
> 
>   <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/";
> 
>              schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
> 
> 
> 
> 
> 
>   <!--
>  SOAP Header Elements
>  -->
> 
> 
>   <xs:element name="ID">
> 
>     <xs:complexType>
> 
>       <xs:simpleContent>
> 
>         <xs:extension base="xs:string">
> 
>           <xs:attribute ref="soapenv:mustUnderstand" use="required" 
> fixed="1"/>
> 
>         </xs:extension>
> 
>       </xs:simpleContent>
> 
>     </xs:complexType>
> 
>   </xs:element>
> 
> 
> 
>   <xs:element name="HoldRequests">
> 
>     <xs:complexType>
> 
>       <xs:simpleContent>
> 
>         <xs:extension base="xs:boolean">
> 
>           <xs:attribute ref="soapenv:mustUnderstand" use="required" 
> fixed="1"/>
> 
>         </xs:extension>
> 
>       </xs:simpleContent>
> 
>     </xs:complexType>
> 
>   </xs:element>
> 
> 
> <!-- 
> RPC Messages -->
> 
>  <!-- GetRPCMethods -->
> 
>   <xs:element name="GetRPCMethods">
> 
>     <xs:annotation>
> 
>       <xs:documentation>GeRPCMethods message - Annex 
> A.3.1.1</xs:documentation>
> 
>     </xs:annotation>
> 
>     <xs:complexType/>
> 
>   </xs:element>
> 
> 
> 
>   <!-- GetRPCMethodsResponse -->
> 
>   <xs:element name="GetRPCMethodsResponse">
> 
>     <xs:annotation>
> 
>       <xs:documentation>GeRPCMethodsResponse message - Annex 
> A.3.1.1</xs:documentation>
> 
>     </xs:annotation>
> 
>     <xs:complexType>
> 
>       <xs:sequence>
> 
>         <xs:element name="MethodList" type="tns:MethodList"/>
> 
>       </xs:sequence>
> 
>     </xs:complexType>
> 
>   </xs:element>
> 
> 
> <xs:element name="Inform">
> 
>     <xs:annotation>
> 
>       <xs:documentation>Inform message - Annex A.3.3.1</xs:documentation>
> 
>     </xs:annotation>
> 
>     <xs:complexType>
> 
>       <xs:sequence>
> 
>         <xs:element name="DeviceId" type="tns:DeviceIdStruct"/>
> 
>         <xs:element name="Event" type="tns:EventList"/>
> 
>         <xs:element name="MaxEnvelopes" type="xs:unsignedInt"/>
> 
>         <xs:element name="CurrentTime" type="xs:dateTime"/>
> 
>         <xs:element name="RetryCount" type="xs:unsignedInt"/>
> 
>         <xs:element name="ParameterList" type="tns:ParameterValueList"/>
> 
>       </xs:sequence>
> 
>     </xs:complexType>
> 
>   </xs:element>
> 
> 
> 
>   <!-- InformResponse -->
> 
>   <xs:element name="InformResponse">
> 
>     <xs:annotation>
> 
>       <xs:documentation>InformResponse message - Annex 
> A.3.3.1</xs:documentation>
> 
>     </xs:annotation>
> 
>     <xs:complexType>
> 
>       <xs:sequence>
> 
>         <xs:element name="MaxEnvelopes" type="xs:unsignedInt"/>
> 
>       </xs:sequence>
> 
>     </xs:complexType>
> 
>   </xs:element>
> 
> 
> 
> 
> <!-- ************************************************************ -->
> 
> 
> 
> 
> 
> 
> and some of the methods in WSDL file are
> 
> 
> <!-- ************************************************************ -->
> 
> 
> 
> <binding name="TR069_x0020_Client" type="tns:TR069_x0020_ClientInterface">
> 
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; 
> style="document" />
> 
> 
>     <operation name="GetRPCMethods">
> 
>       <soap:operation soapAction="urn:dslforum-org:cwmp-1-1:getRPCMethodsIn" 
> style="document" />
> 
>       <input>
> 
>         <soap:body use="literal" />
> 
>       </input>
> 
>       <output>
> 
>         <soap:body use="literal" />
> 
>       </output>
> 
>     </operation>
> 
>   <operation name="Inform">
> 
>       <soap:operation soapAction="urn:dslforum-org:cwmp-1-1:informIn" 
> style="document" />
> 
>       <input>
> 
>         <soap:body use="literal" />
> 
>       </input>
> 
>       <output>
> 
>         <soap:body use="literal" />
> 
>       </output>
> 
>     </operation>
> 
>     <operation name="ID">
> 
>       <soap:operation soapAction="urn:dslforum-org:cwmp-1-1:iDIn" 
> style="document" />
> 
>       <input>
> 
>         <soap:body use="literal" />
> 
>       </input>
> 
>     </operation>
> 
> 
>     <operation name="HoldRequests">
> 
>       <soap:operation soapAction="urn:dslforum-org:cwmp-1-1:holdRequestsIn" 
> style="document" />
> 
>       <input>
> 
>         <soap:body use="literal" />
> 
>       </input>
> 
>     </operation>
> 
> <!-- ************************************************************ -->
> 
> 
> 
> as u can see in the WSDL file above ID and HoldRequests are
> defined as operations..which is not correct....
> since they are SOAP header elements not operations
> 
> 
> 
> please help me how i can add the SOAP header elements in 
> my wsdl file correctly....
> 
> and also, 
> please let me know if there is any document which tells step by step on how 
> we can convert an XSD file to a WSDL file
> 
> thanks a ton in advance for your help
> 
> regards
> 
> panchdev
>


Reply via email to