Like Martin said previously, I believe you need <requestFlow><handler type="java:org.apache.ws.axis.security.WSDoAllReceiver" >...</handler></requestFlow> instead of what you have (i.e. <responseFlow>...</responseFlow>) if this is at the server side. At the server side you need to process the _received_ (hence WSDoAllReceiver) SOAP Request messages (hence <requestFlow>...</requestFlow>).
With respect to the setOption(...) question, I recently managed to configure a client without having the client-config.wsdd file present (so all parameters programatically), so in your case it would look like:
w.setOption(WSHandlerConstants.SIG_PROP_FILE, "cryptoSender.properties");
for setting the "signaturePropFile" parameter and analogously for other parameters. You can find the correspondence between the WSHandlerConstants and the parameters placed in wsdd files here: http://ws.apache.org/wss4j/apidocs/constant-values.html
Cheers,
Robert.
Hi Martin,
my degree is in Information Science
I have a problem with the server side when I don't add the handler response It works very well and the client receive the service, but when i deploy the server with responseFlow:
<responseFlow>
<handler type="java:org.apache.ws.axis.security.WSDoAllReceiver" >
<parameter name="action" value="Signature"/>
<parameter name="signaturePropFile"
value="cryptoReceiver.properties" />
</handler>
</responseFlow>
the client don't process the request and it's ok, but don't receive error from the server, so the client can't understand which kind of problem is it.
How can i resolve this problem?
Thanks a lot for your precious help
-----Messaggio originale-----
Da: Martin Kuba [mailto:[EMAIL PROTECTED]]
Inviato: mer 21/06/2006 17.04
A: [EMAIL PROTECTED]
Oggetto: Re: R: [WSS4J 1.5] WS-Security Help Client-Server Configuration
[EMAIL PROTECTED] wrote:
> Hi Martin
> Thank for your help, I'm sorry for all my mistake I'm new of wss4j and
> I'm developing a service for my degree.
Which degree ?
> now I've a problem with the code that you send me and so it gives me an
> error on this:
> this.deployTransport("http", new SimpleTargetedChain(new
> org.apache.axis.transport.http.HTTPSender));
> on new org.apache.axis.transport.http.HTTPSender says misplaced consructor
I did not try that code, so there are possibly mistakes.
In this case put parenteses () just after HTTPSender.
> and the last thing of the code you send me
> w.setOption I don't understad what i need to insert in, I think that
> I've to set cryproSender.properties but I don't understand how.
As I wrote, I did not try to configure a client
for WSS4J in this way, so I am not sure, but probably
setOption() can set the parameters as they are set
in <requestFlow> in client-config.wsdd.
The documentation for this is not very good,
you have to dowload the source of Axis
and investigate.
Martin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno Martin Kuba
Institute of Computer Science email: [EMAIL PROTECTED]
Masaryk University http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775
--------------------------------------------------------------
