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
?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>
|