Hi,

Please see my comments in line:

On 7/20/06, Shyam Shukla <[EMAIL PROTECTED]> wrote:
Hi Ruchith,

Now I have solved the problem mentioned in this email by making few changes
as below:

1- My client program was using a different a Password CallBack class due to
wrong entry in the classpath environment variable so I modified it to the
correct path.

2- I was using two different keystore files i.e. one for client and other
for server and both were having keys which were signed by the same CA which
I believe is okay but it was throwing "Signature Processing" error at
receiving end i.e. at server side. So I used the same keystore file at both
end and it worked.

Can you please explain me point2 why can not I use two different keystores
which are having keys which were signed by same CA?

You can certainly use different keystores which contains each other's
(service and client) signed certs. I have done this and it works with
the keystores created with the steps shown here:
http://www.wso2.net/tutorials/wss4j/2006/06/15/setting-up-keystores



Now my next target is to implement WS-Policy in soap request/response for
that I went through online documentation of "Neethi" but could find a
complete working example or document to implement it.

Ruchith, In my current project I have to create following format in the
SOAP's Request Body

<wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy";>
        <wsa:EndpointReference>
          <wsa:Address>urn:mosw.test.com:target1</wsa:Address>
        </wsa:EndpointReference>
</wsp:AppliesTo>

Please guide me how to create above format.
Thanks a lot for being so helpful.

Does this solve your problem:
https://svn.apache.org/repos/asf/webservices/wss4j/trunk/src/org/apache/ws/sandbox/security/policy/message/token/AppliesTo.java

Thanks,
Ruchith

--
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to