Details
Description
There is a soap header declared in the wsdl that points to an element:
<xs:element name="authentication">
<xs:complexType>
<xs:sequence>
<xs:element name="username" type="xs:string"/>
<xs:element name="password" type="xs:string"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
After running "sh wsdl2java.sh -uri <uri>" to create stubs, and I populate that element with:
MyTestServiceStub stub = new MyTestServiceStub();
MyTestServiceStub.Authentication auth = new MyTestServiceStub.Authentication();
auth.setUsername( "username" );
auth.setPassword( "password" );
stub.operation( new MyTestServiceStub.Operation(), auth, null );
The following SOAP envelope is sent:
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header><ns1:authentication xmlns:ns1="urn:mytest" soapenv:mustUnderstand="false"><ns1:username>username</ns1:username></ns1:authentication></soapenv:Header><soapenv:Body><ns1:operation xmlns:ns1="urn:mytest" /></soapenv:Body></soapenv:Envelope>
Notice the supplied password element is missing.
Screenshot attached.
Attachments
Attachments
Issue Links
- is duplicated by
-
AXIS2-5135 only the first child is copied in header element
- Resolved
- is related to
-
AXIOM-333 getFirstChildWithName should not read the next element.
- Closed
- relates to
-
AXIOM-365 Add ConcurrentModificationException support to iterators
- Closed