Does anyone know of a Flex 1.5 example doing the same? I am trying to
get something like:
:
<SOAPHeader>
<ns1:SimpleCredentials xmlns:ns1="urn:exstream-dls">
<ns1:User>spruitt</ns1:User>
<ns1:Password>xxx</ns1:Password>
</ns1:SimpleCredentials>
</SOAPHeader>
:
Thanks in advance.
-S
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mark
Sent: Friday, February 02, 2007 1:11 PM
To: [email protected]
Subject: [flexcoders] Re: using soapHeaders to pass UserName and
Password
This is actually very funny. I just ran across this example not
even 5 minutes ago. Not only did this help, it's exactly what I
needed. I tested it out and it now works perfectly.
My thanks to you Dave and special thanks to Andrew Tice and his Blog!
--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Dave Wolf" <[EMAIL PROTECTED]> wrote:
>
> Mark,
>
> Does this blog entry give you any help? In building this mashup
Andy
> had to add credentials to the SOAP headers. See further down for
> example source.
>
> http://www.cynergysystems.com/blogs/page/andrewtrice?
<http://www.cynergysystems.com/blogs/page/andrewtrice?>
entry=census_mashups_using_strikeiron_web
>
> --
> Dave Wolf
> Cynergy Systems, Inc.
> Adobe Flex Alliance Partner
> http://www.cynergysystems.com <http://www.cynergysystems.com>
> http://www.cynergysystems.com/blogs
<http://www.cynergysystems.com/blogs>
>
> Email: [EMAIL PROTECTED]
> Office: 866-CYNERGY
>
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "Mark" <pusateri02@> wrote:
> >
> > Another developer and I worked thru this function and really had
a
> > hard time making heads or tails of everything. In my first post
I
> > added a working version from Flash MX Pro. I just need to pass
a
> > username and password (hard coded in the AS) to the webservice
in
> > order to retreive the XML. Any more help would be much
> > appreciated. We've been trying to work this our for quite a
while
> > now.
> >
> > Thanks,
> > Mark
> >
> >
> > --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "Mark" <pusateri02@> wrote:
> > >
> > > Jamie,
> > > Thanks for the fast reply to this problem but it seems like
you
> > > posted partial code. I feel like you left out some important
> > pieces
> > > to the puzzle so I'm confused as to how you're calling your
> > function
> > > and what is ModelLocator, ourService and myWebService (I'm
> > guessing
> > > the id to the WebService tag?).
> > >
> > > Could you fill in the gaps when you have some time?
> > >
> > > Thanks!
> > >
> > >
> > > --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "jamiebadman"
<jamie.badman@>
> > > wrote:
> > > >
> > > > Here's how I did it a way back... not using this anymore but
I'm
> > > > pretty sure it worked at the time ;-)
> > > >
> > > > import mx.rpc.soap.SOAPHeader;
> > > >
> > > > private function login():void{
> > > > ModelLocator.getInstance().qname = new QName
> > ("http://docs.oasis- <http://docs.oasis->
> > > > open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-
> > > > 1.0.xsd","Security");
> > > > ModelLocator.getInstance().headerSecurity = new SOAPHeader
> > > > (ModelLocator.getInstance().qname,
> > > >
> > > > XML(String( "<wsse:Security " +
> > > > " xmlns:wsse='http://docs.oasis- <http://docs.oasis->
> > > > open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-
> > 1.0.xsd'"
> > > +
> > > > " xmlns:wsu='http://docs.oasis- <http://docs.oasis->
> > > > open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-
> > > 1.0.xsd'>"
> > > > +
> > > > "<wsse:UsernameToken
> > wsu:Id='"+username_ti.text+"'>"
> > > +
> > >
> >
> "<wsse:Username>"+username_ti.text+"</wsse:Username>"
> > > +
> > >
> >
> "<wsse:Password>"+password_ti.text+"</wsse:Password>"
> > > +
> > > > "</wsse:UsernameToken>" +
> > > > "</wsse:Security>")) );
> > > >
> > > > ourService.addHeader(ModelLocator.getInstance
> > ().headerSecurity);
> > > > ourService.myWebService.send();
> > > > }
> > > >
> > > > Hope this helps.
> > > >
> > > > Jamie.
> > >
> >
>