Can you provide the client config file (WSDD)? In addition you may
use TCPMon (included in Axis) to monitor the requests for both
cases to see if there is any difference. If possible provide these
also then we can try to analyse the problem.
 
Regards,
Werner


Von: anpu selvan [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 19. Dezember 2005 06:33
An: [email protected]
Betreff: Re: help - client side config for wss4j

hi,
   Even after i added this line..............
    AxisProperties.setProperty("enableNamespacePrefixOptimization",
           "false");
same error message.
- Verification failed for URI "#id-25267887"
- Verification successful for URI "#sigcon-5375079"
org.apache.ws.security.WSSecurityException: The signature verification failed
 
regards,
anpu

Davanum Srinivas <[EMAIL PROTECTED]> wrote:
user AxisProperties.setProperty

On 12/18/05, anpu selvan <[EMAIL PROTECTED]>wrote:
>
> hi,
> i am using wss4j for webservice security.
> earl ier i used clientside config file to configure the handlers (wsallsender
> and wsallreceiver). that was working fine. then i try to configure this
> handlers programattically , there i got an exception
>
> - org.apache.ws.security.WSSecurityException: The signature
> verification failed
> and this 2 lines debug info from wss4j
>
> - Verification failed for URI "#id-10998550"
> - Verification successful for URI "#sigcon-21142615"
>
> but i am sure that i used same configuration. even i reffered that FAQ wss4j
> wiki page.
> there u said to insert this line
>
>
> > value="false" />
>

>
> how can i include this line pragramattically ?
>
> this is my configuration class
>
> public EngineConfiguration createClientConfig() {
>
> SimpleProvider clientConfig = new SimpleProvider();
> Handler securitySenderHandler = (Handler) new WSDoAllSender();
> Handl er securityReceiverHandler = (Handler) new WSDoAllReceiver();
>
> // here read all the config-properties from
> // a file (user,signatureKeyIdentifier,.....)
>
> securitySenderHandler.setOption(WSHandlerConstants.USER, user);
> securitySenderHandler.setOption(WSHandlerConstants.SIG_KEY_ID,
> signatureKeyIdentifier);
> securitySenderHandler.setOption(WSHandlerConstants.ENC_KEY_ID,
> encryptionKeyIdentifier);
>
> securitySenderHandler.setOption(WSHandlerConstants.SIG_PROP_FILE,
> signaturePropFile);
>
> securitySenderHandler.setOption(WSHandlerConstants.PW_CALLBACK_CLASS,
> passwordCallbackClass);
>
> securitySenderHandler.setOption(WSHandlerConstants.ENCRYPTION_USER,
> encryptionUser);
> securitySenderHandler.setOption(WSHandlerConstants.ACTION, action);
>
>
> // set all the properties securitySenderHandler
>
> securityReceiverHandler.setOption(WSHandlerConstants.ACTION,
> action);
>
> securityReceiverHandler.setOption(WSHandlerConstants.PW_CALLBACK_CLASS,
> passwordCallbackClass);
>
> //securityReceiverHandler.setOption(WSHandlerConstants.ENC_PROP_FILE,
> signaturePropFile);
>
> securityReceiverHandler.setOption(WSHandlerConstants.SIG_PROP_FILE,
> signaturePropFile);
>
>
>
> SimpleChain reqHandler = new SimpleChain();
> SimpleChain respHandler = new SimpleChain();
> // add the sender handler to the request
> reqHandler.addHandler(securitySenderHandler);
> // add the reveiver handler to the response
> respHandler.addHandler(securityReceiverHandler);
> Handler pivot = (Handler) new HTTPSender();
>
> Handler transport = new SimpleTargetedChain(reqHandler, pivot,
> respHandler);
>
>
> clientConfig.deployTransport(HTTPTransport.DEFAULT_TRANSPORT_NAME,
> transport);
>
> return clientConfig;
>
>
> could anyone help in this isse?
>
> regards,
> anpu
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


--
Davanum Srinivas : http://wso2.com/blogs/

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to