I have a service to transfer files.
When I use Signature and/or Timestamp for the response message everything works fine. But when I change the item to encryption I get the following error in my ant build:

swaramp.client:
[copy] Copying 1 file to D:\Development\eclipse3.2\WebClient\WEB-INF\build\client_repositories\test01\conf [copy] Copying 1 file to D:\Development\eclipse3.2\WebClient\WEB-INF\build\client_repositories\test01\modules [copy] Copying 1 file to D:\Development\eclipse3.2\WebClient\WEB-INF\build\temp_client [java] java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement EncryptionMethod [java] at sample.soapwithattachments.SWASampleServiceStub.fromOM(Unknown Source) [java] at sample.soapwithattachments.SWASampleServiceStub.uploadFile(Unknown Source) [java] at sample.soapwithattachments.SWAClient.transferFile(Unknown Source)
    [java] at sample.soapwithattachments.SWAClient.main(Unknown Source)
[java] Caused by: java.lang.RuntimeException: Unexpected subelement EncryptionMethod [java] at sample.soapwithattachments.service.xsd.UploadFileResponse$Factory.parse(Unknown Source)
    [java] ... 4 more
    [java] Exception in thread "main"
    [java] Java Result: 1
BUILD SUCCESSFUL


The file is written to disc correctly. Furthermore the SOAP response is correct. Only the client can't decrypt the message.
the inflow configuration of client's service.xml is:

   <parameter name="InflowSecurity">
       <action>
           <items>Encrypt</items>
           <passwordCallbackClass>
               sample.soapwithattachments.PWCBHandler
           </passwordCallbackClass>
           <decryptionPropFile>client.properties</decryptionPropFile>
       </action>
   </parameter>

Is there any further configuration I have to do?
I'm using the client and service keys from the rampart tutorials.


please help, because I'm stuck...

philipp


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

Reply via email to