axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Green-Lank (JIRA)" <>
Subject [jira] [Created] (AXIS2-5071) Failure to populate all members of an xs:sequence in a SOAP header
Date Fri, 10 Jun 2011 15:01:00 GMT
Failure to populate all members of an xs:sequence in a SOAP header

                 Key: AXIS2-5071
             Project: Axis2
          Issue Type: Bug
    Affects Versions: 1.6.0
         Environment: MacOSX Leopard, Apache AXIS 1.6.0, Java 1.6.0_24
            Reporter: David Green-Lank

There is a soap header declared in the wsdl that points to an element:

      <xs:element name="authentication">
            <xs:element name="username" type="xs:string"/>
            <xs:element name="password" type="xs:string"/>
          <xs:anyAttribute namespace="##other"/>

After running 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=""><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 at

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message