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: 369
posted
0
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
posted
0
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: 369
posted
0
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..