aspose file tools*
The moose likes Web Services and the fly likes SOAP handler attachment issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP handler attachment issue" Watch "SOAP handler attachment issue" New topic
Author

SOAP handler attachment issue

sarah moore
Greenhorn

Joined: Jul 18, 2012
Posts: 2
I have using a soap handler to intercept a soap message response message in order to extract attachments added via SAAJ. I can get access to these at this level but cannot pass back to my calling class as the handleResponse method does not allow this. I need to be able to stream this attachment to the browser (pdf). Does anyone know how I can achieve this using a handler?

Thanks
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
i think i have such situation too. From Handler Class i need to take response to calling class. Temporarily i have done this solution and need not to change it



may this help you

If anyone have better idea please suggest


Regards
Azrael Noor
sarah moore
Greenhorn

Joined: Jul 18, 2012
Posts: 2
Thanks for your reply.
Are you using static vars in this? It doesnt appear that you are.
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
sarah moore wrote:Thanks for your reply.
Are you using static vars in this? It doesnt appear that you are.


Saarah,

Yes i used class with Static Instance variable of that class whose object is moving all around. Actually in my case there is only one object which is doing whole processing work from debugging to calling to execute operation and giving results.
That object have all important parameters. it's name is objMyCUstom.

> I made a class having static variables, in which there is static reference of objMyCustom (class StaticVariablesClass)
> Method from where i called web services pass object of objMyCustom to StaticVairableClass (StaticVariableClass.objmyCustom = objMyCustom)
> Then when i get response through handler, i have access to StaticVariableClass.objMyCustom.gResponseData = responseData

The work went good and is going good. still i think more better solution will be there..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOAP handler attachment issue