You'll have to change your method signature to pass in the appropriate
parameter(s), then change the call in your *MessageReceiver* class
invokeBusinessLogic() method to pass these in. To get a reference to your
element, you need to get the appropriate OMElement from your incoming
MessageContext, which is the first child of your SOAP body:

messageContext.getEnvelope().getBody()...etc.

If you are not using recent nightly builds, I suggest doing so because of lot
of the code handling this has been improved in the last week or so.


-----Original Message-----
From: Sergey GMAIL [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 13, 2006 9:10 AM
To: [email protected]
Subject: Axis2 and Soap Header and Skeleton

Hello!
I have the next wsdl:
..................
    <message name="requestHeader">
        <part name="requestHeader" element="ns2:loginContext"/>
    </message>
    <message name="responseHeader">
        <part name="responseHeader" element="ns2:loginContext"/>
    </message>
............................

 <operation name="add">
            <input>
                <soap:header message="tns:requestHeader" part="requestHeader"
use="literal"/>
                <soap:body use="literal"></soap:body>
            </input>
            <output>
                <soap:header message="tns:responseHeader"
part="responseHeader" use="literal"/>
                <soap:body use="literal"></soap:body>
            </output>
 </operation>
 ..........................
 
 After generation, using WSDL2Java from Axis2 I get code which have
 loginContext in the client Stub class and in the server
 MessageReceiverInOut class. How get loginContext in the Skeleton?

-- 
WBR,
 Sergey                          mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to