NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
need help on generating wsdl binding with soap header


Joined: 05 Nov 2008
Posts: 2
Reply with quote
hi everyone

i got one problem on generating wsdl , which should be bind the soap header on operation. i am sorry if am not clear please see the example in the same manner i want to generate using nusoap. how can write the server script to form like this any examples are welcome


Code:

?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
   xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
   xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
   xmlns:tns="http://mywebsite/2008/July"
   xmlns:s="http://www.w3.org/2001/XMLSchema"
   xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
   xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
   targetNamespace="http://mywebsite/2008/July"
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
     <s:element name="AuthenicateHeader" type="tns:AuthenicateHeader" />
      <s:complexType name="AuthenicateHeader">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="m_authTicket" type="s:string" />
        </s:sequence>
        <s:anyAttribute />
      </s:complexType>
    
     <s:element name="FolderDelete">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="folderID" type="s:long" />
            <s:element minOccurs="1" maxOccurs="1" name="recursiveDelete" type="s:boolean" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="FolderDeleteResponse">
        <s:complexType />
      </s:element>
    
   </wsdl:types>
   
   <wsdl:message name="FolderDeleteSoapIn">
    <wsdl:part name="parameters" element="tns:FolderDelete" />
  </wsdl:message>
  <wsdl:message name="FolderDeleteSoapOut">
    <wsdl:part name="parameters" element="tns:FolderDeleteResponse" />
  </wsdl:message>
  <wsdl:message name="FolderDeleteAuthenicateHeader">
    <wsdl:part name="AuthenicateHeader" element="tns:AuthenicateHeader" />
  </wsdl:message>
 
   <wsdl:portType name="DeepServerSoapSoap">
  <wsdl:operation name="FolderDelete">
      <wsdl:input message="tns:FolderDeleteSoapIn" />
      <wsdl:output message="tns:FolderDeleteSoapOut" />
    </wsdl:operation>
     </wsdl:portType>
    
     <wsdl:binding name="DeepServerSoapSoap" type="tns:DeepServerSoapSoap">
   <wsdl:operation name="FolderDelete">
      <soap:operation soapAction="http://mywebsite/2008/July/FolderDelete" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
        <soap:header message="tns:FolderDeleteAuthenicateHeader" part="AuthenicateHeader" use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
        <soap:header message="tns:FolderDeleteAuthenicateHeader" part="AuthenicateHeader" use="literal" />
      </wsdl:output>
    </wsdl:operation>
   </wsdl:binding>
   
   <wsdl:service name="DeepServerSoap">
    <wsdl:port name="DeepServerSoapSoap" binding="tns:DeepServerSoapSoap">
      <soap:address location="http://mywebsite/testserver.asmx" />
    </wsdl:port>
   </wsdl:service>
</wsdl:definitions>
   
   
View user's profileFind all posts by jobsivaSend private message
Hi


Joined: 02 Jul 2010
Posts: 3
Reply with quote
Hi,

I am stuck in same issue, Where you able to find the solution?

Thanks & regards,
Sapna Talreja
View user's profileFind all posts by sapnatalrejaSend private message
need help on generating wsdl binding with soap header
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic