You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Philipp Perner <ph...@healthgate.at> on 2006/11/27 11:23:55 UTC
Encrypting Attachment
Hi,
Is there any possibility to encrypt and/or sign the attached content of
a soap message?
I'm trying to transfer a xml file attached to a soap message. Although I
encrypt and sign the message using outflow and inflowsecurity
configuration the content of the file attached is transferred in plaintext.
i'm using axis2-1.1, rampart1.1-SNAPSHOT, tomcat 5.0.28
My outflowsecurity of the client is:
<parameter name="OutflowSecurity">
<action>
<items>Timestamp Encrypt Signature</items>
<user>client</user>
<passwordCallbackClass>sample.soapwithattachments.PWCBHandler</passwordCallbackClass>
<signaturePropFile>client.properties</signaturePropFile>
<signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
<encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
<encryptionUser>service</encryptionUser>
</action>
</parameter>
But the SOAP Message of the request is:
POST /axis2/services/SWASampleService HTTP/1.1
SOAPAction: "urn:uploadFile"
User-Agent: Axis2
Host: 127.0.0.1:8080
Transfer-Encoding: chunked
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_C1D6F0CA6A946E6C9A11646228087652;
type="text/xml";
start="<0....@apache.org>";
charset=UTF-81e3c--MIMEBoundaryurn_uuid_C1D6F0CA6A946E6C9A11646228087652content-type:
text/xml; charset=UTF-8content-transfer-encoding: 8bitcontent-id:
<0....@apache.org>
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header />
<soapenv:Body>
<swa:uploadFile
xmlns:swa="http://service.soapwithattachments.sample/xsd">
<swa:name>c:/temp/catalina2.policy</swa:name>
<swa:attchmentID>urn:uuid:C1D6F0CA6A946E6C9A11646228086081</swa:attchmentID>
</swa:uploadFile>
</soapenv:Body>
</soapenv:Envelope>--MIMEBoundaryurn_uuid_C1D6F0CA6A946E6C9A11646228087652content-type:
application/octet-streamcontent-transfer-encoding: binarycontent-id:
<urn:uuid:C1D6F0CA6A946E6C9A11646228086081>
*******************************************
// Any Text File
*******************************************
3b
--MIMEBoundaryurn_uuid_C1D6F0CA6A946E6C9A11646228087652--
0
Please help,
Philipp
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org