web service data source and security [message #362073] |
Tue, 29 April 2008 13:40 |
Eclipse User |
|
|
|
Originally posted by: orinakar.inter.net.il
Hello,
I have a web service data source that requires security. I have to add
header to the SOAP request with the user name and password.
When the request is static (I edited the request at design time) everything
is working but I don't want my data source to hold the user name and
password - I want to get the username and password from the session.
I thought of doing it using parameters. The data source request looks like
this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://services.MyCompany.com">
<soapenv:Header>
<wsse:Security
xmlns:wsse=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse curity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>&?Username?&</wsse:Username>
<wsse:Password>&?Password?&</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ser:MyWSDLMethodCall/>
</soapenv:Body>
</soapenv:Envelope>
Now again, when I give my parameters static values it works fine - but I
need to get the data from the session. I haven't found a way to write a
script for a parameter value, and I'm not sure if I should use external
script to update the parameter value (is it possible), and if so - which
script?
If there is another (working) way to do I'll be very glad to know.
Thanks,
Ori
|
|
|
|
Powered by
FUDForum. Page generated in 0.05192 seconds