--- In [email protected], "jamiero...@..." <jamiero...@...> wrote:
>
> I need to make a correction to my previous e-mail.
> 
> By specifying a namespace here:
> 
> >     <soap:header use="literal" required="true"
> >      message="tns:SessionIdHeader" part="session_id" namespace="tns"/>
> 
> It results in a new namespace - not what I want.
> 
> If I remove it, I get:
> 
>   Error in SOAP Header part definition: input part 'session_id' missing?
> 
> I finally resolved it.  I had to add a new type to the WSDL (I thought I 
> could use the one from the XSD):
> 
>   <xsd:element name="SessionIdHdr" type="ns1:SessionId"/>
> 
> And then change this:
> 
> >  <wsdl:message name="SessionIdHeader">
> >   <wsdl:part name="session_id" type="ns1:SessionId"/>
> >  </wsdl:message>
> 
> to:
> 
>   <wsdl:message name="SessionIdHeader">
>    <wsdl:part name="session_id" type="tns:SessionIdHdr"/>
>   </wsdl:message>
> 
> Note that I called it "SessionIdHdr" to make it stand out.
>

Hi Jamie,
         I faced similar problems in generating wsdl from the tr069 xsd given 
in the broadband forum, unable to get header elements in wsdl. 

Instead they are treated as service operations,
 i tried inserting headers in wsdl as suggested but there are too many places 
at which the header can be put.

Can u help me out? i'm no expert in soap/wsdl.
A part of wsdl is given below:


<definitions xmlns:tns="urn:celstream-com:tr069service:webservice:v1" 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:import0="urn:dslforum-org:cwmp-1-1" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="TR069Service" 
targetNamespace="urn:celstream-com:tr069service:webservice:v1" 
xmlns="http://schemas.xmlsoap.org/wsdl/";>
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Web service 
description</wsdl:documentation>
  <types>
    <xsd:schema>
      <xsd:import schemaLocation="TR069.xsd" 
namespace="urn:dslforum-org:cwmp-1-1" />
    </xsd:schema>
  </types>
  <message name="getRPCMethodsIn">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; />
    <part name="messagePart" element="import0:GetRPCMethods" />
  </message>
  <message name="getRPCMethodsOut">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; />
    <part name="messagePart" element="import0:GetRPCMethodsResponse" />
  </message>
  <message name="setParameterValuesIn">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; />
    <part name="messagePart" element="import0:SetParameterValues" />
  </message>
  <message name="setParameterValuesOut">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; />
    <part name="messagePart" element="import0:SetParameterValuesResponse" />
  </message>

<portType name="TR069ServiceInterface">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Web 
service description</wsdl:documentation>
    <operation name="GetRPCMethods">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; />
      <input message="tns:getRPCMethodsIn" />
      <output message="tns:getRPCMethodsOut" />
    </operation>
    <operation name="SetParameterValues">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; />
      <input message="tns:setParameterValuesIn" />
      <output message="tns:setParameterValuesOut" />
    </operation>


Regards,
Deepak

Reply via email to