Hi 

Check this out.  http://wso2.org/library/1148

It look like you need to use 

> MessageContext msgContextIn = 
testStub._getServiceClient().getLastOperationContext().getMessageContext("In"); 

> SOAPEnvelope soapEnvIn = msgContextIn.getEnvelope(); 
> SOAPBody soapBodyIn = soapEnvIn.getBody(); 
> return soapBodyIn.toString(); 
> 


Regards
Yogesh Dhake 
Desk - 201 626 9623



Christopher Johnson <[email protected]> 
12/08/2010 03:10 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: SwA Clients, how to attach files.






After a bit of research I can now better ask my question:

How do I obtain the MessageContext object from on the client stub.

I have seen some documentation about using:

 
stub._getServiceContext().getCurrentOperationContext().getMessageContext("In");


but this does not apply for axis version 1.5.3

Anyone have any other suggestions ?

Thanks,

..Chris


On Wed, Dec 8, 2010 at 12:28 PM, Christopher Johnson <[email protected]> 
wrote:
All -

I've used WSDL2Java to create a client to a service that accepts 
attachments.

How do I go about adding attachments to the message using the API 
generated to the service made with WSDL2Java -uri xxx

Are their hooks in the build api's to access the Message Context for this 
type of thing, or do I have to hand edit the API to support these 
operations ? 

Thanks,

..Chris


======================================================================================================
This transmittal and any attachments may contain confidential, privileged or 
sensitive information and is solely for the use of the intended recipient. If 
you are not the intended recipient, you are hereby notified that you have 
received this transmittal and any attachments in error and any review, 
dissemination, distribution or copying thereof is strictly prohibited. If you 
have received this transmittal and any attachments in error please notify the 
sender and immediately destroy the message and all its attachments. Any 
opinions herein expressed may be those of the author and not necessarily of 
Mizuho Corporate Bank, Ltd., Mizuho Corporate Bank (USA), Mizuho Securities USA 
Inc. or any other affiliates of Mizuho Financial Group ("Mizuho"). Mizuho 
accepts no responsibility for the accuracy or completeness of any information 
herein contained.
E-Mail received by or sent from officer of Mizuho Securities USA Inc. (which is 
a registered U.S. broker-dealer and the entity through which Mizuho generally 
conducts its investment banking, capital markets, and securities business in 
the United States) is electronically archived and recorded and is subject to 
review and monitoring by and/or disclosure to persons other than the recipient, 
including (but not limited to) Mizuho Securities USA Inc. supervisory 
personnel. Such communications may be produced to regulatory authorities or 
others with legal rights to the information.
If you have any questions, or if you no longer wish to receive e-mail in 
accordance with Japanese Act on Regulation of the Transmission of Specified 
Electronic Mail, please contact the sender of this e-mail.
お問い合わせまたは特定電子メール法に 基づく送信停止のご要望等は、本電子メールの送信者にその旨ご連絡ください。


Reply via email to