Hi Robert,
yes sorry for the previous mail the file deploy.wsdd of my server side contain this parameters:
<requestFlow>
> <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver" >
> <parameter name="action" value="Signature"/>
> <parameter name="signaturePropFile"
> value="cryptoReceiver.properties" />
> </handler>
> </requestFlow>
and even so, the server doesn't send error, now I use axis1.4 but I see that the application server is made with Axis 1.2.1.
Is this the cause of the problems?
I have to recreate the service with axis 1.4 in order to use this feature with wss4j 1.5??
Thanks for tha attentions
-----Messaggio originale-----
Da: Robert Maier [mailto:[EMAIL PROTECTED]]
Inviato: gio 22/06/2006 15.48
A: [EMAIL PROTECTED]
Cc: [email protected]
Oggetto: Re: R: R: [WSS4J 1.5] WS-Security Help Client-Server Configuration
Hermann,
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.
On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> 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] <[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/<http://www.ics.muni.cz/%7Emakub/>
> Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775
> --------------------------------------------------------------
>
>
Title: R: R: R: [WSS4J 1.5] WS-Security Help Client-Server Configuration
- [WSS4J 1.5] WS-Security Help Client-Server Configuration hescot
- R: [WSS4J 1.5] WS-Security Help Client-Server Configurat... hescot
- R: R: [WSS4J 1.5] WS-Security Help Client-Server Con... hescot
- Re: R: R: [WSS4J 1.5] WS-Security Help Client-Se... Robert Maier
- R: R: R: [WSS4J 1.5] WS-Security Help Client... hescot
