You might want to get wsdl file again.
If header is defined you should get that in WSDL file.
here is an example
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="
http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="
http://tempuri.org/"
xmlns:tm="
http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="
http://tempuri.org/"
xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified"
targetNamespace="
http://tempuri.org/">
<s:import namespace="
http://www.w3.org/2001/XMLSchema" />
- <s:element name="ApplicationBlockDataSet">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="custid" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="ApplicationBlockDataSetResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="ApplicationBlockDataSetResult">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="mySoapHeader" type="tns:mySoapHeader" />
- <s:complexType name="mySoapHeader">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="user" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="pwd" type="s:string" />
</s:sequence>
</s:complexType>
- <s:element name="ReturnCustomerOrders">
<s:complexType />
</s:element>
- <s:element name="ReturnCustomerOrdersResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ReturnCustomerOrdersResult"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
- <wsdl:message name="ApplicationBlockDataSetSoapIn">
<wsdl
art name="parameters" element="tns:ApplicationBlockDataSet" />
</wsdl:message>
- <wsdl:message name="ApplicationBlockDataSetSoapOut">
<wsdl
art name="parameters" element="tns:ApplicationBlockDataSetResponse"
/>
</wsdl:message>
- <wsdl:message name="ApplicationBlockDataSetmySoapHeader">
<wsdl
art name="mySoapHeader" element="tns:mySoapHeader" />
</wsdl:message>
- <wsdl:message name="ReturnCustomerOrdersSoapIn">
<wsdl
art name="parameters" element="tns:ReturnCustomerOrders" />
</wsdl:message>
- <wsdl:message name="ReturnCustomerOrdersSoapOut">
<wsdl
art name="parameters" element="tns:ReturnCustomerOrdersResponse" />
</wsdl:message>
- <wsdl
ortType name="Service1Soap">
- <wsdl
peration name="ApplicationBlockDataSet">
<wsdl:input message="tns:ApplicationBlockDataSetSoapIn" />
<wsdl
utput message="tns:ApplicationBlockDataSetSoapOut" />
</wsdl
peration>
- <wsdl
peration name="ReturnCustomerOrders">
<wsdl:input message="tns:ReturnCustomerOrdersSoapIn" />
<wsdl
utput message="tns:ReturnCustomerOrdersSoapOut" />
</wsdl
peration>
</wsdl
ortType>
- <wsdl:binding name="Service1Soap" type="tns:Service1Soap">
<soap:binding transport="
http://schemas.xmlsoap.org/soap/http"
style="document" />
- <wsdl
peration name="ApplicationBlockDataSet">
<soap
peration soapAction="
http://tempuri.org/ApplicationBlockDataSet"
style="document" />
- <wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:ApplicationBlockDataSetmySoapHeader"
part="mySoapHeader" use="literal" />
</wsdl:input>
- <wsdl
utput>
<soap:body use="literal" />
</wsdl
utput>
</wsdl
peration>
- <wsdl
peration name="ReturnCustomerOrders">
<soap
peration soapAction="
http://tempuri.org/ReturnCustomerOrders"
style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl
utput>
<soap:body use="literal" />
</wsdl
utput>
</wsdl
peration>
</wsdl:binding>
- <wsdl:service name="Service1">
<documentation xmlns="
http://schemas.xmlsoap.org/wsdl/" />
- <wsdl
ort name="Service1Soap" binding="tns:Service1Soap">
<soap:address
location="
http://cgupta/dataapplicationblocktest/service1.asmx" />
</wsdl
ort>
</wsdl:service>
</wsdl:definitions>