cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass user credentials to a soap sender adapter?

Former Member
0 Kudos

Hello XI Guys,

can anybody tell me how to pass user-credentials to the soap adapter.

We have an application, where we collect data, generate a soap message and post it via soap to the soap-adapter.

Prompt for user / pwd pops up. We don't want this pop-up, so we try to send the user/pwd information in the soap message.

We have tried something like this:

...

<SOAP-ENV:Header>

<sec:credentials xmlns:sec="http://schemas.xmlsoap.org/ws/2002/01/sec" mustUnderstand="1">

<sec:userName>xiappluser</sec:userName>

<sec:userPassword>xipass</sec:userPassword>

</sec:credentials>

</SOAP-ENV:Header>

<SOAP-ENV:Body>

...

with no success.

If we remove the security-constraint section of the web.xml of the message-servlet, the pop-up is gone, but we give-up the basic authentification security.

So whow do we achieve posting a soap message with no user/pwd pop-ups.

Thanks in advance.

Frank

Accepted Solutions (0)

Answers (2)

Answers (2)

andreas_scherf
Explorer
0 Kudos

Hi frank!

Since SOAP is based on the HTTP protocol (at least in your scenario) I guess it should be possible to use the standard "Basic Authentification mechanisms" of the underlying http protocol which uses some base64 encoding parameters in the http-header. So if you are able to have a more technical implementation on your sending application side (which would then act as http-client posting some SOAP message in the http-Body) you could maybe solve the problem this way.

See for example: http://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#AA

Maybe this helps ...

Best regards, Andi

former_member187339
Active Contributor
0 Kudos

Hi frank,

<i>

>>We have an application, where we collect data, generate a soap message and post it via soap to the soap-adapter.</i>

You can pass user credentials from the application itself.

Regards

Suraj

Former Member
0 Kudos

Hello Suraj,

thanks for your answer, but i don't understand what you want to tell me.

<i>>>You can pass user credentials from the application itself.</i>

We want to pass the credentials from the sender app, the client, but we don't know how we should do this in the soap message, or if we have to configure something in xi. The soap-adapter itself doesn't have an options where we can change its behaviour. So we looked a level deeper, and found the message-servlet (we use the visual admin)

So the question ist still, how to provide the user/pwd information in the soap message, so that the soap adapter didn't pop-up for user/pwd.

regards

Frank

former_member187339
Active Contributor
0 Kudos

Hi Frank,

Refer to this thread:

Regards

Suraj