[flexcoders] Re: Adding custom request headers to soap

2009-02-03 Thread valdhor
I have been trying to do this for a while myself (Specifically I have
a requirement to send WS-Security headers for the Web Service I am
trying to use.

The only thing I have found so far is this blog post:

http://www.svendens.com/?p=20

I have not had a chance to try it yet but if you do, please let me
know your results.


HTH


Steve


--- In flexcoders@yahoogroups.com, guy.tomer guy.to...@... wrote:

 --- In flexcoders@yahoogroups.com, guy.tomer guy.tomer@ wrote:
 
  Hello,
  
  Does anyone know a way to add headers to a soap request when:
  1. The headers are not defined in the wsdl
  2. We obviously don't want to change the generated flex builder 
  classes.
  
  Thanks!
  Guy
 
 
 Did some more digging. Very annoying! it seems like it's possible when 
 working with WebService in the mxml. However, when generating proxies 
 they wrap an AbstractWebService and then although one can get access 
 by calling getWebService()and then addHeader() things doesn't work.
 
 Can't find any formal note about it from Adobe. I'll still be glad to 
 any assistance.





[flexcoders] Re: Adding custom request headers to soap

2009-02-03 Thread guy.tomer
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 I have been trying to do this for a while myself (Specifically I 
have
 a requirement to send WS-Security headers for the Web Service I am
 trying to use.
 
 The only thing I have found so far is this blog post:
 
 http://www.svendens.com/?p=20
 
 I have not had a chance to try it yet but if you do, please let me
 know your results.
 
 
 HTH
 
 
 Steve
 
 
 --- In flexcoders@yahoogroups.com, guy.tomer guy.tomer@ wrote:
 
  --- In flexcoders@yahoogroups.com, guy.tomer guy.tomer@ wrote:
  
   Hello,
   
   Does anyone know a way to add headers to a soap request when:
   1. The headers are not defined in the wsdl
   2. We obviously don't want to change the generated flex builder 
   classes.
   
   Thanks!
   Guy
  
  
  Did some more digging. Very annoying! it seems like it's possible 
when 
  working with WebService in the mxml. However, when generating 
proxies 
  they wrap an AbstractWebService and then although one can get 
access 
  by calling getWebService()and then addHeader() things doesn't 
work.
  
  Can't find any formal note about it from Adobe. I'll still be glad 
to 
  any assistance.
 


Thanks but this blog explains how to do it with WebService and he says  
it doesn't work with generated proxies. I know that is possible, but 
we rather work with generated proxies which is much more convenient.

Guy



[flexcoders] Re: Adding custom request headers to soap

2009-02-02 Thread guy.tomer
--- In flexcoders@yahoogroups.com, guy.tomer guy.to...@... wrote:

 Hello,
 
 Does anyone know a way to add headers to a soap request when:
 1. The headers are not defined in the wsdl
 2. We obviously don't want to change the generated flex builder 
 classes.
 
 Thanks!
 Guy


Did some more digging. Very annoying! it seems like it's possible when 
working with WebService in the mxml. However, when generating proxies 
they wrap an AbstractWebService and then although one can get access 
by calling getWebService()and then addHeader() things doesn't work.

Can't find any formal note about it from Adobe. I'll still be glad to 
any assistance.