Hey!

I'm trying to encrypt the body of the soap message. The sending works fine so far, but there seems to be a problem with decrypting the message on service side.

Server replies:
The AXIS engine could not find a target service to invoke!

It works fine if I just encrypt the UsernameToken -- of course, since I'm not encrypting the information with the service address.

What do I do wrong with the WSDoAllReceiver? Do I have to chain the handlers somehow?

## RequestFlow on client-side (wsdd): ##
<requestFlow >
  <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
   <parameter name="action" value="UsernameToken Encrypt"/>
   <parameter name="encryptionPropFile" value="crypto.properties" />
   <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier"/>
   <parameter name="encryptionUser" value="pubcert" />
<!--     <parameter name="encryptionParts"
value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}UsernameToken"; /> -->
  </handler>
</requestFlow>

## RequestFlow on server-side (wsdd): ##
<requestFlow>
   <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
     <parameter name="action" value="UsernameToken Encrypt"/>
<parameter name="passwordCallbackClass" value="de.uni_lueneburg.pascapa.service.PWCallback"/>
     <parameter name="decryptionPropFile" value="crypto.properties" />
   </handler>
</requestFlow>

Thank you!
-Benjamin

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

Reply via email to