WSDL2Java don't generate header properties!?

WSDL2Java don't generate header properties!?

I'm working in TOS 3.1 Java. I would like to request help on how to work with parameters in SOAP header. WebService that I call use a ticket system to track the user's session through several function calls following login. Upon login, a unique ticket is generated. This ticket identifies the user to the web service. For each function call, the ticket must be indicated in the SOAP message's SOAP header so that the web service can identify the respective user.
The Problem is that there are no any header properties in wsdl2java generated routines. Or may be I cannot find it Smiley Happy. Returned Object haven't ticket property. The value from ticket should to be used in header for every request.
Thanks to everyone who might be able to help me with this problem.

Hier is called WSDL.

<wsdl:definitions targetNamespace="http://services.test.net/erp">
?
<wsdl:types>
?
<s:schema elementFormDefault="qualified" targetNamespace="http://services.test.net/erp">
<s:import namespace="http://services.test.net/erp/User"/>
?
<s:element name="Login">
?
<s:complexType>
?
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="loginname" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
?
<s:element name="LoginResponse">
?
<s:complexType>
?
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="user" type="s1:UserType"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="test" type="tns:TicketHeader"/>
?
<s:complexType name="TicketHeader">
?
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ticket" type="s:normalizedString"/>
</s:sequence>
</s:complexType>
?
<s:element name="Logout">
<s:complexType/>
</s:element>
?
<s:element name="LogoutResponse">
?
<s:complexType>
?
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="success" type="s:boolean"/>
</s:sequence>
</s:complexType>
</s:element>
?
<s:element name="GetUserPrograms">
<s:complexType/>
</s:element>
?
<s:element name="GetUserProgramsResponse">
?
<s:complexType>
?
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="programs" type="s1:GetPrograms"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
?
<s:schema elementFormDefault="qualified" targetNamespace="http://services.test.net/erp/User">
?
<s:complexType name="UserType">
?
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:normalizedString"/>
</s:sequence>
<s:attribute name="admin" type="s:boolean" use="required"/>
</s:complexType>
?
<s:complexType name="GetPrograms">
?
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="program" type="s1Smiley TonguerogramType"/>
</s:sequence>
</s:complexType>
?
<s:complexType name="ProgramType">
?
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:normalizedString"/>
<s:element minOccurs="1" maxOccurs="1" name="locktime" type="s:int"/>
<s:element minOccurs="0" maxOccurs="1" name="permissions" type="s1Smiley TonguerogramTypePermissions"/>
<s:element minOccurs="0" maxOccurs="1" name="erpprofil" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="autoconfirmation" type="s1Smiley TonguerogramTypeAutoconfirmation"/>
</s:sequence>
<s:attribute name="id" type="s:int" use="required"/>
</s:complexType>
?
<s:complexType name="ProgramTypePermissions">
?
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="export" type="s1Smiley TongueermissionType"/>
<s:element minOccurs="0" maxOccurs="unbounded" name="import" type="s1Smiley TongueermissionType"/>
</s:sequence>
</s:complexType>
?
<s:complexType name="PermissionType">
<s:attribute name="trackingtype" type="s:unsignedByte" use="required"/>
</s:complexType>
?
<s:complexType name="ProgramTypeAutoconfirmation">
?
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="sale" type="s1:AutoConfirmationType"/>
<s:element minOccurs="0" maxOccurs="1" name="lead" type="s1:AutoConfirmationType"/>
</s:sequence>
</s:complexType>
?
<s:complexType name="AutoConfirmationType">
<s:attribute name="status" type="s1:AutoConfirmationStatusType" use="required"/>
<s:attribute name="timeframe" type="s1:TimeFrameType"/>
<s:attribute name="count" type="s:int"/>
</s:complexType>
?
<s:simpleType name="AutoConfirmationStatusType">
?
<s:restriction base="s:string">
<s:enumeration value="inactive"/>
<s:enumeration value="active"/>
</s:restriction>
</s:simpleType>
?
<s:simpleType name="TimeFrameType">
?
<s:restriction base="s:string">
<s:enumeration value="day"/>
<s:enumeration value="week"/>
<s:enumeration value="month"/>
<s:enumeration value="year"/>
</s:restriction>
</s:simpleType>
</s:schema>
</wsdl:types>
?
<wsdl:message name="LoginSoapIn">
<wsdlSmiley Tongueart name="parameters" element="tns:Login"/>
</wsdl:message>
?
<wsdl:message name="LoginSoapOut">
<wsdlSmiley Tongueart name="parameters" element="tns:LoginResponse"/>
</wsdl:message>
?
<wsdl:message name="Logintest">
<wsdlSmiley Tongueart name="test" element="tns:test"/>
</wsdl:message>
?
<wsdl:message name="LogoutSoapIn">
<wsdlSmiley Tongueart name="parameters" element="tns:Logout"/>
</wsdl:message>
?
<wsdl:message name="LogoutSoapOut">
<wsdlSmiley Tongueart name="parameters" element="tns:LogoutResponse"/>
</wsdl:message>
?
<wsdl:message name="Logouttest">
<wsdlSmiley Tongueart name="test" element="tns:test"/>
</wsdl:message>
?
<wsdl:message name="GetUserProgramsSoapIn">
<wsdlSmiley Tongueart name="parameters" element="tns:GetUserPrograms"/>
</wsdl:message>
?
<wsdl:message name="GetUserProgramsSoapOut">
<wsdlSmiley Tongueart name="parameters" element="tns:GetUserProgramsResponse"/>
</wsdl:message>
?
<wsdl:message name="GetUserProgramstest">
<wsdlSmiley Tongueart name="test" element="tns:test"/>
</wsdl:message>
?
<wsdlSmiley TongueortType name="UserServiceSoap">
?
<wsdlSmiley Surprisedperation name="Login">
<documentation>Logs in the specified user.</documentation>
<wsdl:input message="tns:LoginSoapIn"/>
<wsdlSmiley Surprisedutput message="tns:LoginSoapOut"/>
</wsdlSmiley Surprisedperation>
?
<wsdlSmiley Surprisedperation name="Logout">
<documentation>Logs out the specified user.</documentation>
<wsdl:input message="tns:LogoutSoapIn"/>
<wsdlSmiley Surprisedutput message="tns:LogoutSoapOut"/>
</wsdlSmiley Surprisedperation>
?
<wsdlSmiley Surprisedperation name="GetUserPrograms">
?
<documentation>
Returns all registered programs for the current user.
</documentation>
<wsdl:input message="tns:GetUserProgramsSoapIn"/>
<wsdlSmiley Surprisedutput message="tns:GetUserProgramsSoapOut"/>
</wsdlSmiley Surprisedperation>
</wsdlSmiley TongueortType>
?
<wsdl:binding name="UserServiceSoap" type="tns:UserServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
?
<wsdlSmiley Surprisedperation name="Login">
<soapSmiley Surprisedperation soapAction="http://services.test.net/erp/Login" style="document"/>
?
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
?
<wsdlSmiley Surprisedutput>
<soap:body use="literal"/>
<soap:header message="tns:Logintest" part="test" use="literal"/>
</wsdlSmiley Surprisedutput>
</wsdlSmiley Surprisedperation>
?
<wsdlSmiley Surprisedperation name="Logout">
<soapSmiley Surprisedperation soapAction="http://services.test.net/erp/Logout" style="document"/>
?
<wsdl:input>
<soap:body use="literal"/>
<soap:header message="tns:Logouttest" part="test" use="literal"/>
</wsdl:input>
?
<wsdlSmiley Surprisedutput>
<soap:body use="literal"/>
</wsdlSmiley Surprisedutput>
</wsdlSmiley Surprisedperation>
?
<wsdlSmiley Surprisedperation name="GetUserPrograms">
<soapSmiley Surprisedperation soapAction="http://services.test.net/erp/GetUserPrograms" style="document"/>
?
<wsdl:input>
<soap:body use="literal"/>
<soap:header message="tns:GetUserProgramstest" part="test" use="literal"/>
</wsdl:input>
?
<wsdlSmiley Surprisedutput>
<soap:body use="literal"/>
</wsdlSmiley Surprisedutput>
</wsdlSmiley Surprisedperation>
</wsdl:binding>
?
<wsdl:service name="UserService">
?
<documentation>
This webservice can be used to perform account specific operations.
</documentation>
?
<wsdlSmiley Tongueort name="UserServiceSoap" binding="tns:UserServiceSoap">
<soap:address location="http://services.test.net/erp/v2/UserService.asmx"/>
</wsdlSmiley Tongueort>
</wsdl:service>
</wsdl:definitions>
One Star

Re: WSDL2Java don't generate header properties!?

I too would love to knowhow to do this without generating stub code.
One Star

Re: WSDL2Java don't generate header properties!?

use -exsh true in the command line.