Hi, I'm trying to make an authentication module that takes the username and password from a soap header in the input messages. For this I have defined de following schema in the wsdl:
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://myapp.com"> <xs:element name="myHead"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" name="username" nillable="true" type="xs:string"/> <xs:element minOccurs="1" name="password" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> the following message: <wsdl:message name="myHead"> <wsdl:part name="myHead" element="my:myHead"/> </wsdl:message> where my is the prefix that I asigned to "http://myapp.com" in wsdl definitions. and I had added the following line to each of the <wsdl:input> entries of each of the operations defined in the binding "MyServiceSoap11Binding": <soap:header part="myHead" message="xsd:myHead" use="literal"/> and the following to each <wsdl:input> entry of the operations defined in the binding "MyServiceSoap12Binding": <soap12:header part="myHead" message="xsd:myHead" use="literal"/> Then I generate all the code from the wsdl and all works fine except the wsdl files when I want to see them from the available services axis2 page, where the following code gets repited 2 times after each operation input message definition: <wsdl:message name="myHead"> <wsdl:part name="myHead" element="my:myHead"/> </wsdl:message> and also the following code appears duplicated after each <soap:body use="literal"/> in the input bindings definition of MyServiceSoap11Binding and MyServiceSoap12Binding <soap12:header use="literal" part="myHead" message="xsd:myHead"/> Someone knows why this happens? What I'm doing wrong, if so? and how can I manage to get the wsdl well displayed? or a better way to do what I'm trying to do? thanks in advance. -- View this message in context: http://www.nabble.com/SOAP-Headers-in-wsdl-tp21982885p21982885.html Sent from the Axis - User mailing list archive at Nabble.com.
