Hi Bhushan,

Can you post the modified  policy you are using  for this scenario so we can
debug and see ?

In real project scenario the PWCallback class will contain calls to LDAP for
> authentication and the whole purpose we are trying to implement
> WS-SecureConversation in addition to WS-Security is that we can to Secure
> Conversation between messages and not have to do LDAP authentication for
> every message.
>
Yes, I also wonder why we need to call the PWCallback once a SCT is
established.

Thanks,
Nandana




>
> Bhushan Gupte
>
> * [1]*        OMElement response = client.sendReceive(getPayload("Hello
>
> world1"));
>
>         System.out.println("Response 1 : " + response);
>
>         response = client.sendReceive(getPayload("Hello world2"));
>
>         System.out.println("Response 2 : " + response);
>
>         response = client.sendReceive(getPayload("Hello world3"));
>
>         System.out.println("Response 3 : " + response);
>
> *[2]*        for (int i = 0; i < callbacks.length; i++) {
>
>             WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
>
>             String id = pwcb.getIdentifer();
>
>             if("client".equals(id)) {
>
>                 pwcb.setPassword("apache");
>
>             } else if("service".equals(id)) {
>
>                 pwcb.setPassword("apache");
>
>             }
>
>         }
>

Reply via email to