Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP handler attachment issue

 
sarah moore
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sarah moore
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
Are you using static vars in this? It doesnt appear that you are.
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic