You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Wan Kaveevivitchai <wa...@hotmail.com> on 2006/07/20 10:53:24 UTC

[Axis2 v1.0] send file with security

Dear All,

       I have been trying to combine the test about sending file and 
securing message.
       My environment is Axis2 v1.0, nightly build released 4 June 06 on the 
Jetty Servlet.

       From other individual test such as sending text file, and security 
sample had no problem on this, however with the combination one i got the 
following error.

       Client code:

/*
* Created on 19.07.2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package security;

/**
* @author alice3
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/

import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMText;
import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.ConfigurationContextFactory;

//import org.apache.axis2.soapmonitor.*;

import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;

import java.io.File;
import java.io.StringWriter;


public class SecureClient {

    private File inputFile = null;

    private QName operationName = new QName("fileSecurity");

    public static void main(String[] args) {

        try {

            // Get the repository location from the args
            String repo = args[0];
            String port = args[1];

            OMElement payload = 
getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
            ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo, 
null);
            ServiceClient serviceClient = new ServiceClient(configContext, 
null);
            Options options = new Options();
            options.setTo(new EndpointReference("http://127.0.0.1:" + port + 
"/axis2/services/FileSecurity"));
            //options.setTo(new 
EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
            options.setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);
            options.setAction("urn:fileSecurity");
            serviceClient.setOptions(options);

            //Blocking invocation
            OMElement result = serviceClient.sendReceive(payload);

            StringWriter writer = new StringWriter();
            result.serialize(XMLOutputFactory.newInstance()
                    .createXMLStreamWriter(writer));
            writer.flush();



           //System.out.println("Response: " + writer.toString());

            System.out.println("SecureService Invocation successful :-)");
        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        } catch (XMLStreamException e) {
            e.printStackTrace();
        }
    }


    private static OMElement getEchoElement(String fileName) {


        DataHandler dh;

		OMFactory fac = OMAbstractFactory.getOMFactory();
	    OMNamespace omNs = 
fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1");

        OMElement data = fac.createOMElement("fileSecurity", omNs);
        OMElement input = fac.createOMElement("file", omNs);
	    OMElement pack = fac.createOMElement("pack", omNs);

	    FileDataSource f1 = new FileDataSource(fileName);
        dh = new DataHandler(f1);

        OMElement filename = fac.createOMElement("fileName", omNs);
       // OMText textName = fac.createOMText(filename, "myFile.txt");

        OMText textData = fac.createOMText(dh, true);

        input.addChild(textData);

        pack.addChild(filename);
        pack.addChild(input);
        data.addChild(pack);

        //System.out.println(data);

	     return data;
        }
}

        server code:

public class fileS {

	public OMElement fileSecurity(OMElement element) throws Exception
	{
		//System.out.println(element);

		element.build();
		element.detach();

	    Iterator children = element.getChildElements();

		OMElement name = (OMElement)children.next(); 		//get name of the file, 
first element of element
		OMElement content = (OMElement)children.next();     //get text that 
contains the file, second element

		System.out.println("before creating OMText");
		OMText fnode = (OMText)content.getFirstOMChild();
		System.out.println("after creating OMText");
//		fnode.setOptimize(true);
		//String fname = name.getText();

		//create data handler to extract the data handler of the OMText
		DataHandler dfile;
		System.out.println("before getDataHandler from OMText");

		//String cid = fnode.getContentID();
		//System.out.println(cid);

		dfile = (DataHandler)fnode.getDataHandler();  //getDataHandler() and 
broken pipe

		System.out.println("after create datahandler for OMText");

		FileOutputStream outfile = new  FileOutputStream(new 
File("/users/alice3/myFile"));
		System.out.println("after create a fileoutputstream");
		dfile.writeTo(outfile);
		System.out.println("after writeTo()");

		//System.out.println("Successful Operation!");

		OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace ns = fac.createOMNamespace("urn://fakenamespace", "ns");
        OMElement ele = fac.createOMElement("response", ns);
        ele.setText("Data Saved");
        return ele;

	}

}

       services.xml:

<service name="FileSecurity" >
  <description>
		This is my service for sending file over server-client with security 
setting
	</description>
  <parameter locked="false" name="ServiceClass" >security.fileS</parameter>
  <operation name="fileSecurity" >
    <messageReceiver 
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
  </operation>
  <parameter name="InflowSecurity" >
    <action>
      <items>Timestamp Signature Encrypt</items>
      <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
      <signaturePropFile>sec.properties</signaturePropFile>
    </action>
  </parameter>
  <parameter name="OutflowSecurity" >
    <action>
      <items>Timestamp Signature Encrypt</items>
      <user>bob</user>
      <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
      <signaturePropFile>sec.properties</signaturePropFile>
      <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
      <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
      <encryptionUser>alice</encryptionUser>
      
<optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
    </action>
  </parameter>
</service>

         and the .aar package is constucted as follow

        security/
		security/PWCallback.class
		security/fileS.class
	META-INF/
		META-INF/services.xml
	sec.jks
	sec.properties

     and the result i get from the TCPMON is that at the server side

HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
Content-Type: multipart/related; 
boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031; 
type="application/xop+xml"; 
start="<0....@apache.org>"; 
start-info="text/xml"; charset=UTF-8
Transfer-Encoding: chunked
Server: Jetty(6.0.x)

2DA
--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0....@apache.org>

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
35B

--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0....@apache.org>

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver: 
security processing failed</faultstring>
1383

--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0....@apache.org>

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver: 
security processing 
failed</faultstring><detail><Exception>org.apache.axis2.AxisFault: 
WSDoAllReceiver: security processing failed; nested exception is:
	org.apache.ws.security.WSSecurityException: Cannot encrypt/decrypt data; 
nested exception is:
	org.apache.xml.security.encryption.XMLEncryptionException: Error while 
decoding
Original Exception was 
org.apache.xml.security.exceptions.Base64DecodingException: Error while 
decoding
	at 
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
	at 
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
	at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
	at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
	at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
	at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
	at org.mortbay.jetty.Server.handle(Server.java:245)
	at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
	at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
	at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
	at 
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
	at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
Caused by: org.apache.ws.security.WSSecurityException: Cannot 
encrypt/decrypt data; nested exception is:
	org.apache.xml.security.encryption.XMLEncryptionException: Error while 
decoding
Original Exception was 
org.apache.xml.security.exceptions.Base64DecodingException: Error while 
decoding
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
	at 
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
	at 
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
	at 
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
	... 24 more
Caused by: org.apache.xml.security.encryption.XMLEncryptionException: Error 
while decoding
Original Exception was 
org.apache.xml.security.exceptions.Base64DecodingException: Error while 
decoding
	at 
org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown 
Source)
	at org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown 
Source)
	at org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown 
Source)
	at org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown 
Source)
	at 
org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown 
Source)
	at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown Source)
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
	... 30 more
</Exception></detail>
13B5

--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0....@apache.org>

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver: 
security processing 
failed</faultstring><detail><Exception>org.apache.axis2.AxisFault: 
WSDoAllReceiver: security processing failed; nested exception is:
	org.apache.ws.security.WSSecurityException: Cannot encrypt/decrypt data; 
nested exception is:
	org.apache.xml.security.encryption.XMLEncryptionException: Error while 
decoding
Original Exception was 
org.apache.xml.security.exceptions.Base64DecodingException: Error while 
decoding
	at 
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
	at 
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
	at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
	at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
	at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
	at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
	at org.mortbay.jetty.Server.handle(Server.java:245)
	at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
	at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
	at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
	at 
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
	at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
Caused by: org.apache.ws.security.WSSecurityException: Cannot 
encrypt/decrypt data; nested exception is:
	org.apache.xml.security.encryption.XMLEncryptionException: Error while 
decoding
Original Exception was 
org.apache.xml.security.exceptions.Base64DecodingException: Error while 
decoding
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
	at 
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
	at 
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
	at 
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
	... 24 more
Caused by: org.apache.xml.security.encryption.XMLEncryptionException: Error 
while decoding
Original Exception was 
org.apache.xml.security.exceptions.Base64DecodingException: Error while 
decoding
	at 
org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown 
Source)
	at org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown 
Source)
	at org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown 
Source)
	at org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown 
Source)
	at 
org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown 
Source)
	at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown Source)
	at 
org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
	... 30 more
</Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
3B

--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
0

          The client side message seems to be ok, with all the encypted 
document.

          Is there any idea what can cause the fault? Greatly appreciate,

         Wan



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Apologies if I confused you... let me try to explain:

If you are using the service logic that you posted earlier [1], you
assume that the OMelement passed into your method is a "my:pack"
element. This will only happen in the case where you use the
RPCMessageReceiver.

If you use RawXMLInOutMessageReceiver you will simply receive the
first child of the soap:Body element.

<soap:Envelope>
<soap:Body>
  <my:fileSecurity><my:pack>...</my:pack></my:fileSecurity>
</soap:Body>
</soap:Envelope>

That is you will receive a  "my:fileSecurity" OMElement  into your
method. In this case the logic here [1] will throw an exception.

I wanted you to double check the service.xml file of the service that
runs _with_ security to see whether you set the RPCMessageReceiver
properly.

Thanks,
Ruchith

[1] http://rafb.net/paste/results/92Clg397.html

On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>
>
>
> Dear Ruchith,
>
>           I am confused, what is the correct Message receiver with this type
> of application? for sending file with security, shall it be
> RPCMessageReceiver or RawXMLMessageReceiver?
>
>          for double check services.xml in this case, what should i double
> check on...?
>
>          Best regards,
>
>          Wan
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Hmm ... The output we can see is NOT possible with the RPCMessage
receiver since it will not provide the method the "my:fileSecurity"
element and it will only feed in the child element of that element.

Please double check your services.xml file inside the .aar file.

Thanks,
Ruchith

On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Dear Ruchith,
>
>          I have change my services.xml in security case to
> RPCMessageReceiver and i got the following problem.
>
> 24.07.2006 12:53:11 org.apache.axis2.deployment.DeploymentEngine
> prepareRepository
> INFO: no services directory found , new one created
> 24.07.2006 12:53:11 org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying module : addressing
> 24.07.2006 12:53:13 org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying module : rampart
> <my:fileSecurity
> xmlns:my="http://ws.apache.org/axis2/xsd"><my:pack><my:fileName
> /><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZl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IHRlcm1pbmFsIHdpbmRvdzoKCQkJamF2YSAtamFyIHN0YXJ0LmphciAtLXN0b3AKCVRoaXMgd2lsbCBzdG9wIGEgamV0dHkgaW5zdGFuY
> 2UgdGhhdCB3YXMgc3RhcnRlZCBieSBhIGNvbW1hbmQgc3VjaCBhcyB0aGUgb25lIGluIHRoZSBSdW5uaW5nIHNlY3Rpb24uIFdoZW5ldmVyIGpldHR5IHN0YXJ0cyB1cCwgaXQgb3BlbnMgdXAgYSBwbw==cnQgKGJ5IGRlZmF1bHQgdGhpcyBpcyBwb3J0IDgwNzkpIGFuZCBzdGFydHMgYSB0aHJlYWQgdG8gbGlzdGVuIGZvciAic3RvcCIgbWVzc2FnZXMuIFRoZSAiLS1zdG9wIiBhcmd1bWVudCB0byBhIHNlY29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack></my:fileSecurity>
> 16060
> org.apache.axis2.AxisFault: Exception occurred while trying to invoke
> service method fileSecurity
>         at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
>         at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
>         at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
>         at security.SecureClient.main(SecureClient.java:69)
> Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Exception
> occurred while trying to invoke service method fileSecurity; nested
> exception is:
>         org.apache.axis2.AxisFault
>         at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:142)
>         at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>         at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>         at org.mortbay.jetty.Server.handle(Server.java:245)
>         at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>         at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>         at
> org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>         at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> Caused by: org.apache.axis2.AxisFault
>         at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:111)
>         ... 22 more
>
>         at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>
>           I am not sure whether the security has to work with RawXMLmessage
> receiver or what, getting really confused now.
>
>          Wan
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] send file with security
> >Date: Mon, 24 Jul 2006 15:52:47 +0530
> >
> >Hi Wan,
> >
> >Now we found the exact problem in your case !!! :-)
> >
> >If you are using the same Service code that you sent earlier ...
> >please use RPCMessageReceiver.
> >
> >RPCMessageReceiver will only give the child element of the first child
> >of the soap:Body element into the service method in your case.
> >
> >But in the case of the RawXMLInOutMessageReceiver it will invoke the
> >service method with the first child of the soap:Body element.
> >
> >This is why you experienced different behaviours.
> >
> >Thanks,
> >Ruchith
> >
> >On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>
> >>Ruchith, these are the services.xml files
> >>
> >>with security,
> >>
> >><service name="FileSecurity">
> >>         <description>
> >>                 This is my service for sending file over server-client
> >>with security
> >>setting
> >>         </description>
> >>         <parameter locked="false"
> >>name="ServiceClass">security.fileS</parameter>
> >>         <operation name="fileSecurity">
> >>                 <messageReceiver
> >>class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> >>         </operation>
> >>
> >>     <parameter name="InflowSecurity">
> >>       <action>
> >>         <items>Timestamp Signature Encrypt</items>
> >>
> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >>         <signaturePropFile>sec.properties</signaturePropFile>
> >>       </action>
> >>     </parameter>
> >>
> >>     <parameter name="OutflowSecurity">
> >>       <action>
> >>         <items>Timestamp Signature Encrypt</items>
> >>         <user>bob</user>
> >>
> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >>         <signaturePropFile>sec.properties</signaturePropFile>
> >>         <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
> >>
> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
> >>         <encryptionUser>alice</encryptionUser>
> >>
> >><!--optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>-->
> >>       </action>
> >>     </parameter>
> >>
> >></service>
> >>
> >>
> >>            without security,
> >>
> >><service>
> >>         <description>
> >>                 This is my service for sending file over server-client
> >>         </description>
> >>         <parameter locked="false"
> >>name="ServiceClass">fileT.fileS</parameter>
> >>         <operation name="fileSample">
> >>                 <messageReceiver
> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> >>         </operation>
> >>
> >></service>
> >>
> >>               What difference is made between RPCMessageReceiver and
> >>RawXMLInOutMessageReceiver? I only know that i cannot see wsdl file if we
> >>use RawXMLInOutMessageReceiver.
> >>
> >>                Best regards,
> >>                 Wan
> >>
> >>
> >>
> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >Date: Mon, 24 Jul 2006 15:21:41 +0530
> >> >
> >> >Hi Wan,
> >> >
> >> >Can you please send the services.xml files of the two services that you
> >> >used.
> >> >
> >> >I have a feeling that you maybe using RCPMessageReceiver with the non
> >> >secure case.
> >> >
> >> >Thanks,
> >> >Ruchith
> >> >
> >> >On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >>Dear Ruchith,
> >> >>
> >> >>         I had made some comparison between the two server codes, but i
> >> >>can't
> >> >>really see why the package of the data being send are different. I
> >> >>attached
> >> >>both of the server code with this email.
> >> >>
> >> >>SecureClient: send file with security
> >> >>
> >> >>public class SecureClient {
> >> >>
> >> >>     private File inputFile = null;
> >> >>
> >> >>     private QName operationName = new QName("fileSecurity");
> >> >>
> >> >>     public static void main(String[] args) {
> >> >>
> >> >>         try {
> >> >>
> >> >>             // Get the repository location from the args
> >> >>             String repo = args[0];
> >> >>             String port = args[1];
> >> >>
> >> >>             OMElement payload =
> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >> >>             ConfigurationContext configContext =
> >> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> >> >>null);
> >> >>             ServiceClient serviceClient = new
> >> >>ServiceClient(configContext,
> >> >>null);
> >> >>             Options options = new Options();
> >> >>             options.setTo(new EndpointReference("http://127.0.0.1:" +
> >> >>port +
> >> >>"/axis2/services/FileSecurity"));
> >> >>             //options.setTo(new
> >> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
> >> >>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >>             //options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >>Constants.VALUE_TRUE);
> >> >>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >>Constants.VALUE_FALSE);
> >> >>             options.setAction("urn:fileSecurity");
> >> >>             serviceClient.setOptions(options);
> >> >>
> >> >>             System.out.println(payload);
> >> >>             //Blocking invocation
> >> >>             OMElement result = serviceClient.sendReceive(payload);
> >> >>
> >> >>             StringWriter writer = new StringWriter();
> >> >>             result.serialize(XMLOutputFactory.newInstance()
> >> >>                     .createXMLStreamWriter(writer));
> >> >>             writer.flush();
> >> >>
> >> >>
> >> >>
> >> >>            //System.out.println("Response: " + writer.toString());
> >> >>
> >> >>             System.out.println("SecureService Invocation successful
> >> >>:-)");
> >> >>         } catch (AxisFault axisFault) {
> >> >>             axisFault.printStackTrace();
> >> >>         } catch (XMLStreamException e) {
> >> >>             e.printStackTrace();
> >> >>         }
> >> >>     }
> >> >>
> >> >>
> >> >>     private static OMElement getEchoElement(String fileName) {
> >> >>
> >> >>
> >> >>         DataHandler dh;
> >> >>
> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >>             OMNamespace omNs =
> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
> >> >>
> >> >>         OMElement data = fac.createOMElement("fileSecurity", omNs);
> >> >>         OMElement input = fac.createOMElement("file", omNs);
> >> >>             OMElement pack = fac.createOMElement("pack", omNs);
> >> >>
> >> >>             FileDataSource f1 = new FileDataSource(fileName);
> >> >>         dh = new DataHandler(f1);
> >> >>
> >> >>         OMElement filename = fac.createOMElement("fileName", omNs);
> >> >>        // OMText textName = fac.createOMText(filename, "myFile.txt");
> >> >>
> >> >>         OMText textData = fac.createOMText(dh, true);
> >> >>
> >> >>         input.addChild(textData);
> >> >>
> >> >>         pack.addChild(filename);
> >> >>         pack.addChild(input);
> >> >>         data.addChild(pack);
> >> >>
> >> >>         //System.out.println(data);
> >> >>
> >> >>              return data;
> >> >>        }
> >> >>}
> >> >>
> >> >>
> >> >>          fileClient: sending file without security
> >> >>
> >> >>public class fileC {
> >> >>
> >> >>         private File inputFile = null;
> >> >>     private EndpointReference targetEPR = new
> >> >>EndpointReference("http://127.0.0.1:8090/axis2/services/fileTest");
> >> >>
> >> >>     private QName operationName = new QName("fileSample");
> >> >>
> >> >>     public fileC(){}
> >> >>
> >> >>
> >> >>         public static void main(String[] args) throws Exception {
> >> >>
> >> >>
> >> >>                 fileC ff = new fileC();
> >> >>
> >> >>                 ff.sendFile("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >> >>                 System.out.println("Client complete");
> >> >>
> >> >>         }
> >> >>
> >> >>         public OMElement createEnvelope(String fileName)
> >> >>         {
> >> >>                  DataHandler dh;
> >> >>
> >> >>                  OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >>              OMNamespace omNs =
> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
> >> >>
> >> >>              OMElement data = fac.createOMElement("fileSample", omNs);
> >> >>          OMElement input = fac.createOMElement("file", omNs);
> >> >>              OMElement pack = fac.createOMElement("pack", omNs);
> >> >>
> >> >>                  FileDataSource f1 = new FileDataSource(fileName);
> >> >>          dh = new DataHandler(f1);
> >> >>
> >> >>          OMElement filename = fac.createOMElement("fileName", omNs);
> >> >>
> >> >>          OMText textData = fac.createOMText(dh, true);
> >> >>
> >> >>
> >> >>
> >> >>          input.addChild(textData);
> >> >>
> >> >>          pack.addChild(filename);
> >> >>          pack.addChild(input);
> >> >>          data.addChild(pack);
> >> >>
> >> >>
> >> >>
> >> >>              return data;
> >> >>         }
> >> >>
> >> >>            public OMElement sendFile(String fileName) throws Exception
> >>{
> >> >>
> >> >>
> >> >>         OMElement payload = createEnvelope(fileName);  //problem
> >>cannot
> >> >>create payload
> >> >>         Options options = new Options();
> >> >>         options.setTo(targetEPR);
> >> >>
> >> >>options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
> >> >>
> >> >>         // enabling MTOM in the client side
> >> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >>Constants.VALUE_TRUE);
> >> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >>
> >> >>
> >> >>         options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS,
> >> >>Constants.VALUE_TRUE);
> >> >>
> >> >>
> >> >>        ServiceClient sender = new ServiceClient();
> >> >>
> >> >>
> >> >>         sender.setOptions(options);
> >> >>         return sender.sendReceive(payload);
> >> >>     }
> >> >>
> >> >>
> >> >>     public void setTargetEPR(String targetEPR) {
> >> >>         this.targetEPR = new EndpointReference(targetEPR);
> >> >>
> >> >>     }
> >> >>
> >> >>}
> >> >>
> >> >>          From my opinion, the data should be handled in the same way,
> >> >>without caring about security issue since it's done on the flow.
> >> >>
> >> >>         Best regards,
> >> >>
> >> >>         Wan
> >> >>
> >> >>
> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >> >Reply-To: axis-user@ws.apache.org
> >> >> >To: axis-user@ws.apache.org
> >> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >> >Date: Fri, 21 Jul 2006 18:51:12 +0530
> >> >> >
> >> >> >Hi Wan,
> >> >> >
> >> >> >The two looks the same *except* that the one with security wraps the
> >> >> ><ns:pack> element with a <ns:fileSecurity > element.
> >> >> >
> >> >> >IMHO this is very strange.
> >> >> >
> >> >> >Can you please confirm this difference?
> >> >> >
> >> >> >Thanks,
> >> >> >Ruchith
> >> >> >
> >> >> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >>This is with security:
> >> >> >>
> >> >> >><example1:fileSecurity
> >>xmlns:example1="http://ws.apache.org/axis2/xsd"
> >> >> >>xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
> >> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"
> >> >>
> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><example1:pack><example1:fileName
> >> >>
> >> >>/><example1:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZXRjCQktIGlzIGEgZGlyZWN0b3J5IGZvciBqZXR0eSBjb25maWd1cmF0aW9uIGZpbGVzIHN1Y2ggYXMgamV0dHkueG1sCgkJ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YXJ0cyB1cCwgaXQgb3BlbnMgdXAgYSBwbw==cnQgKGJ5IGRlZmF1bHQgdGhpcyBpcyBwb3J0IDgwNzkpIGFuZCBzdGFydHMgYSB0aHJlYWQgdG8gbGlzdGVuIGZvciAic3RvcCIgbWVzc2FnZXMuIFRoZSAiLS1zdG9wIiBhcmd1bWVudCB0byBhIHNlY29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</example1:file></example1:pack></example1:fileSecurity>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>This is without security:
> >> >> >>
> >> >> >><my:pack xmlns:my="http://ws.apache.org/axis2/xsd"><my:fileName
> >> >>
> >> >>/><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IG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biB1c2UgdGhlIGZvbGxvd2luZyBjb21tYW5kIGluIGEgZGlmZmVyZW50IHRlcm1pbmFsIHdpbmRvdzoKCQkJamF2YSAtamFyIHN0YXJ0LmphciAtLXN0b3AKCVRoaXMgd2lsbCBzdG9wIGEgamV0dHkgaW5z
> >> >>dGF
> >> >> >>uY
> >> >>
> >> >>2UgdGhhdCB3YXMgc3RhcnRlZCBieSBhIGNvbW1hbmQgc3VjaCBhcyB0aGUgb25lIGluIHRoZSBSdW5uaW5nIHNlY3Rpb24uIFdoZW5ldmVyIGpldHR5IHN0YXJ0cyB1cCwgaXQgb3BlbnMgdXAgYSBwbw==cnQgKGJ5IGRlZmF1bHQgdGhpcyBpcyBwb3J0IDgwNzkpIGFuZCBzdGFydHMgYSB0aHJlYWQgdG8gbGlzdGVuIGZvciAic3RvcCIgbWVzc2FnZXMuIFRoZSAiLS1zdG9wIiBhcmd1bWVudCB0byBhIHNlY29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack>
> >> >> >>
> >> >> >>
> >> >> >>it look exactly the same. I don't know how the server side cannot
> >> >>handle.
> >> >> >>
> >> >> >>Thanks,
> >> >> >>
> >> >> >>Wan
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >> >> >Reply-To: axis-user@ws.apache.org
> >> >> >> >To: axis-user@ws.apache.org
> >> >> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >> >> >Date: Fri, 21 Jul 2006 18:16:02 +0530
> >> >> >> >
> >> >> >> >Hi Wan,
> >> >> >> >
> >> >> >> >Can you please send me the output of the
> >> >> >> >"System.out.println(element);" statement at the beginning of the
> >> >> >> >method with _and_ without security
> >> >> >> >
> >> >> >> >>public class fileS {
> >> >> >> >>
> >> >> >> >>         public OMElement fileSecurity(OMElement element) throws
> >> >> >>Exception
> >> >> >> >>         {
> >> >> >> >>                 System.out.println(element);
> >> >> >> >at this point -->
> >> >> >> >
> >> >> >> >
> >> >> >> >Thanks,
> >> >> >> >Ruchith
> >> >> >> >
> >> >> >> >--
> >> >> >> >www.ruchith.org
> >> >> >> >
> >> >> >>
> >> >---------------------------------------------------------------------
> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> >--
> >> >> >www.ruchith.org
> >> >> >
> >> >> >---------------------------------------------------------------------
> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >www.ruchith.org
> >> >
> >> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

         I have change my services.xml in security case to 
RPCMessageReceiver and i got the following problem.

24.07.2006 12:53:11 org.apache.axis2.deployment.DeploymentEngine 
prepareRepository
INFO: no services directory found , new one created
24.07.2006 12:53:11 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing
24.07.2006 12:53:13 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : rampart
<my:fileSecurity 
xmlns:my="http://ws.apache.org/axis2/xsd"><my:pack><my:fileName 
/><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2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FdoZW5ldmVyIGpldHR5IHN0YXJ0cyB1cCwgaXQgb3BlbnMgdXAgYSBwbw==cnQgKGJ5IGRlZmF1bHQgdGhpcyBpcyBwb3J0IDgwNzkpIGFuZCBzdGFydHMgYSB0aHJlYWQgdG8gbGlzdGVuIGZvciAic3RvcCIgbWVzc2FnZXMuIFRoZSAiLS1zdG9wIiBhcmd1bWVudCB0byBhIHNlY29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack></my:fileSecurity>
16060
org.apache.axis2.AxisFault: Exception occurred while trying to invoke 
service method fileSecurity
	at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
	at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
	at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
	at security.SecureClient.main(SecureClient.java:69)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Exception 
occurred while trying to invoke service method fileSecurity; nested 
exception is:
	org.apache.axis2.AxisFault
	at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:142)
	at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
	at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
	at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
	at org.mortbay.jetty.Server.handle(Server.java:245)
	at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
	at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
	at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
	at 
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
	at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
Caused by: org.apache.axis2.AxisFault
	at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:111)
	... 22 more

	at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)

          I am not sure whether the security has to work with RawXMLmessage 
receiver or what, getting really confused now.

         Wan


>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Mon, 24 Jul 2006 15:52:47 +0530
>
>Hi Wan,
>
>Now we found the exact problem in your case !!! :-)
>
>If you are using the same Service code that you sent earlier ...
>please use RPCMessageReceiver.
>
>RPCMessageReceiver will only give the child element of the first child
>of the soap:Body element into the service method in your case.
>
>But in the case of the RawXMLInOutMessageReceiver it will invoke the
>service method with the first child of the soap:Body element.
>
>This is why you experienced different behaviours.
>
>Thanks,
>Ruchith
>
>On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>
>>Ruchith, these are the services.xml files
>>
>>with security,
>>
>><service name="FileSecurity">
>>         <description>
>>                 This is my service for sending file over server-client 
>>with security
>>setting
>>         </description>
>>         <parameter locked="false" 
>>name="ServiceClass">security.fileS</parameter>
>>         <operation name="fileSecurity">
>>                 <messageReceiver
>>class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>>         </operation>
>>
>>     <parameter name="InflowSecurity">
>>       <action>
>>         <items>Timestamp Signature Encrypt</items>
>>         
>><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>>         <signaturePropFile>sec.properties</signaturePropFile>
>>       </action>
>>     </parameter>
>>
>>     <parameter name="OutflowSecurity">
>>       <action>
>>         <items>Timestamp Signature Encrypt</items>
>>         <user>bob</user>
>>         
>><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>>         <signaturePropFile>sec.properties</signaturePropFile>
>>         <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>>         
>><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>>         <encryptionUser>alice</encryptionUser>
>>
>><!--optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>-->
>>       </action>
>>     </parameter>
>>
>></service>
>>
>>
>>            without security,
>>
>><service>
>>         <description>
>>                 This is my service for sending file over server-client
>>         </description>
>>         <parameter locked="false" 
>>name="ServiceClass">fileT.fileS</parameter>
>>         <operation name="fileSample">
>>                 <messageReceiver
>>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>>         </operation>
>>
>></service>
>>
>>               What difference is made between RPCMessageReceiver and
>>RawXMLInOutMessageReceiver? I only know that i cannot see wsdl file if we
>>use RawXMLInOutMessageReceiver.
>>
>>                Best regards,
>>                 Wan
>>
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Mon, 24 Jul 2006 15:21:41 +0530
>> >
>> >Hi Wan,
>> >
>> >Can you please send the services.xml files of the two services that you
>> >used.
>> >
>> >I have a feeling that you maybe using RCPMessageReceiver with the non
>> >secure case.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>Dear Ruchith,
>> >>
>> >>         I had made some comparison between the two server codes, but i
>> >>can't
>> >>really see why the package of the data being send are different. I
>> >>attached
>> >>both of the server code with this email.
>> >>
>> >>SecureClient: send file with security
>> >>
>> >>public class SecureClient {
>> >>
>> >>     private File inputFile = null;
>> >>
>> >>     private QName operationName = new QName("fileSecurity");
>> >>
>> >>     public static void main(String[] args) {
>> >>
>> >>         try {
>> >>
>> >>             // Get the repository location from the args
>> >>             String repo = args[0];
>> >>             String port = args[1];
>> >>
>> >>             OMElement payload =
>> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >>             ConfigurationContext configContext =
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >>null);
>> >>             ServiceClient serviceClient = new
>> >>ServiceClient(configContext,
>> >>null);
>> >>             Options options = new Options();
>> >>             options.setTo(new EndpointReference("http://127.0.0.1:" +
>> >>port +
>> >>"/axis2/services/FileSecurity"));
>> >>             //options.setTo(new
>> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>> >>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >>             //options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >>Constants.VALUE_TRUE);
>> >>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >>Constants.VALUE_FALSE);
>> >>             options.setAction("urn:fileSecurity");
>> >>             serviceClient.setOptions(options);
>> >>
>> >>             System.out.println(payload);
>> >>             //Blocking invocation
>> >>             OMElement result = serviceClient.sendReceive(payload);
>> >>
>> >>             StringWriter writer = new StringWriter();
>> >>             result.serialize(XMLOutputFactory.newInstance()
>> >>                     .createXMLStreamWriter(writer));
>> >>             writer.flush();
>> >>
>> >>
>> >>
>> >>            //System.out.println("Response: " + writer.toString());
>> >>
>> >>             System.out.println("SecureService Invocation successful
>> >>:-)");
>> >>         } catch (AxisFault axisFault) {
>> >>             axisFault.printStackTrace();
>> >>         } catch (XMLStreamException e) {
>> >>             e.printStackTrace();
>> >>         }
>> >>     }
>> >>
>> >>
>> >>     private static OMElement getEchoElement(String fileName) {
>> >>
>> >>
>> >>         DataHandler dh;
>> >>
>> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>> >>             OMNamespace omNs =
>> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
>> >>
>> >>         OMElement data = fac.createOMElement("fileSecurity", omNs);
>> >>         OMElement input = fac.createOMElement("file", omNs);
>> >>             OMElement pack = fac.createOMElement("pack", omNs);
>> >>
>> >>             FileDataSource f1 = new FileDataSource(fileName);
>> >>         dh = new DataHandler(f1);
>> >>
>> >>         OMElement filename = fac.createOMElement("fileName", omNs);
>> >>        // OMText textName = fac.createOMText(filename, "myFile.txt");
>> >>
>> >>         OMText textData = fac.createOMText(dh, true);
>> >>
>> >>         input.addChild(textData);
>> >>
>> >>         pack.addChild(filename);
>> >>         pack.addChild(input);
>> >>         data.addChild(pack);
>> >>
>> >>         //System.out.println(data);
>> >>
>> >>              return data;
>> >>        }
>> >>}
>> >>
>> >>
>> >>          fileClient: sending file without security
>> >>
>> >>public class fileC {
>> >>
>> >>         private File inputFile = null;
>> >>     private EndpointReference targetEPR = new
>> >>EndpointReference("http://127.0.0.1:8090/axis2/services/fileTest");
>> >>
>> >>     private QName operationName = new QName("fileSample");
>> >>
>> >>     public fileC(){}
>> >>
>> >>
>> >>         public static void main(String[] args) throws Exception {
>> >>
>> >>
>> >>                 fileC ff = new fileC();
>> >>
>> >>                 ff.sendFile("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >>                 System.out.println("Client complete");
>> >>
>> >>         }
>> >>
>> >>         public OMElement createEnvelope(String fileName)
>> >>         {
>> >>                  DataHandler dh;
>> >>
>> >>                  OMFactory fac = OMAbstractFactory.getOMFactory();
>> >>              OMNamespace omNs =
>> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
>> >>
>> >>              OMElement data = fac.createOMElement("fileSample", omNs);
>> >>          OMElement input = fac.createOMElement("file", omNs);
>> >>              OMElement pack = fac.createOMElement("pack", omNs);
>> >>
>> >>                  FileDataSource f1 = new FileDataSource(fileName);
>> >>          dh = new DataHandler(f1);
>> >>
>> >>          OMElement filename = fac.createOMElement("fileName", omNs);
>> >>
>> >>          OMText textData = fac.createOMText(dh, true);
>> >>
>> >>
>> >>
>> >>          input.addChild(textData);
>> >>
>> >>          pack.addChild(filename);
>> >>          pack.addChild(input);
>> >>          data.addChild(pack);
>> >>
>> >>
>> >>
>> >>              return data;
>> >>         }
>> >>
>> >>            public OMElement sendFile(String fileName) throws Exception 
>>{
>> >>
>> >>
>> >>         OMElement payload = createEnvelope(fileName);  //problem 
>>cannot
>> >>create payload
>> >>         Options options = new Options();
>> >>         options.setTo(targetEPR);
>> >>
>> >>options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
>> >>
>> >>         // enabling MTOM in the client side
>> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >>Constants.VALUE_TRUE);
>> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >>
>> >>
>> >>         options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS,
>> >>Constants.VALUE_TRUE);
>> >>
>> >>
>> >>        ServiceClient sender = new ServiceClient();
>> >>
>> >>
>> >>         sender.setOptions(options);
>> >>         return sender.sendReceive(payload);
>> >>     }
>> >>
>> >>
>> >>     public void setTargetEPR(String targetEPR) {
>> >>         this.targetEPR = new EndpointReference(targetEPR);
>> >>
>> >>     }
>> >>
>> >>}
>> >>
>> >>          From my opinion, the data should be handled in the same way,
>> >>without caring about security issue since it's done on the flow.
>> >>
>> >>         Best regards,
>> >>
>> >>         Wan
>> >>
>> >>
>> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >Reply-To: axis-user@ws.apache.org
>> >> >To: axis-user@ws.apache.org
>> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >Date: Fri, 21 Jul 2006 18:51:12 +0530
>> >> >
>> >> >Hi Wan,
>> >> >
>> >> >The two looks the same *except* that the one with security wraps the
>> >> ><ns:pack> element with a <ns:fileSecurity > element.
>> >> >
>> >> >IMHO this is very strange.
>> >> >
>> >> >Can you please confirm this difference?
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >>This is with security:
>> >> >>
>> >> >><example1:fileSecurity 
>>xmlns:example1="http://ws.apache.org/axis2/xsd"
>> >> >>xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
>> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"
>> >> 
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><example1:pack><example1:fileName
>> >> 
>> >>/><example1:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR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0eV9ob3d0by5odG1sCgogIAoJCg==</example1:file></example1:pack></example1:fileSecurity>
>> >> >>
>> >> >>
>> >> >>
>> >> >>This is without security:
>> >> >>
>> >> >><my:pack xmlns:my="http://ws.apache.org/axis2/xsd"><my:fileName
>> >> 
>> >>/><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZXRjCQktIGlzIGEgZGlyZWN0b3J5IGZvciBqZXR0eSBjb25maWd1cmF0aW9uIGZpbGVzIHN1Y2ggYXMgamV0dHkueG1sCgkJZXhhbXBsZXMgIAoJCWxlZ2FsICAKCQlsaWIgIAoJCW1vZHVsZXMgIAoJCXBhdGNoZXMgIAoJCXBvbS54bWwgIAoJCXByb2plY3Qtc2l0ZSAgCgkJUkVBRE1FLnR4dCAgCgkJc3RhcnQuamFyICAJLSBpcyB0aGUgamFyIHRoYXQgaW52b2tlcyBqZXR0eTYgCgkJVkVSU0lPTi50eHQgIAoJCXdlYmFwcHMgIAktIGEgZGlyZWN0b3J5IGNvbnRhaW5pbmcgc29tZSBkZW1vIHdlYmFwcHMKCQl3ZWJhcHBz
>> >>LXB
>> >> >>sd
>> >> 
>> >>XMKC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OgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack>
>> >> >>
>> >> >>
>> >> >>it look exactly the same. I don't know how the server side cannot
>> >>handle.
>> >> >>
>> >> >>Thanks,
>> >> >>
>> >> >>Wan
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >> >Reply-To: axis-user@ws.apache.org
>> >> >> >To: axis-user@ws.apache.org
>> >> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >> >Date: Fri, 21 Jul 2006 18:16:02 +0530
>> >> >> >
>> >> >> >Hi Wan,
>> >> >> >
>> >> >> >Can you please send me the output of the
>> >> >> >"System.out.println(element);" statement at the beginning of the
>> >> >> >method with _and_ without security
>> >> >> >
>> >> >> >>public class fileS {
>> >> >> >>
>> >> >> >>         public OMElement fileSecurity(OMElement element) throws
>> >> >>Exception
>> >> >> >>         {
>> >> >> >>                 System.out.println(element);
>> >> >> >at this point -->
>> >> >> >
>> >> >> >
>> >> >> >Thanks,
>> >> >> >Ruchith
>> >> >> >
>> >> >> >--
>> >> >> >www.ruchith.org
>> >> >> >
>> >> >> 
>> >---------------------------------------------------------------------
>> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Now we found the exact problem in your case !!! :-)

If you are using the same Service code that you sent earlier ...
please use RPCMessageReceiver.

RPCMessageReceiver will only give the child element of the first child
of the soap:Body element into the service method in your case.

But in the case of the RawXMLInOutMessageReceiver it will invoke the
service method with the first child of the soap:Body element.

This is why you experienced different behaviours.

Thanks,
Ruchith

On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>
> Ruchith, these are the services.xml files
>
> with security,
>
> <service name="FileSecurity">
>         <description>
>                 This is my service for sending file over server-client with security
> setting
>         </description>
>         <parameter locked="false" name="ServiceClass">security.fileS</parameter>
>         <operation name="fileSecurity">
>                 <messageReceiver
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>         </operation>
>
>     <parameter name="InflowSecurity">
>       <action>
>         <items>Timestamp Signature Encrypt</items>
>         <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>         <signaturePropFile>sec.properties</signaturePropFile>
>       </action>
>     </parameter>
>
>     <parameter name="OutflowSecurity">
>       <action>
>         <items>Timestamp Signature Encrypt</items>
>         <user>bob</user>
>         <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>         <signaturePropFile>sec.properties</signaturePropFile>
>         <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>         <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>         <encryptionUser>alice</encryptionUser>
>
> <!--optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>-->
>       </action>
>     </parameter>
>
> </service>
>
>
>            without security,
>
> <service>
>         <description>
>                 This is my service for sending file over server-client
>         </description>
>         <parameter locked="false" name="ServiceClass">fileT.fileS</parameter>
>         <operation name="fileSample">
>                 <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>         </operation>
>
> </service>
>
>               What difference is made between RPCMessageReceiver and
> RawXMLInOutMessageReceiver? I only know that i cannot see wsdl file if we
> use RawXMLInOutMessageReceiver.
>
>                Best regards,
>                 Wan
>
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] send file with security
> >Date: Mon, 24 Jul 2006 15:21:41 +0530
> >
> >Hi Wan,
> >
> >Can you please send the services.xml files of the two services that you
> >used.
> >
> >I have a feeling that you maybe using RCPMessageReceiver with the non
> >secure case.
> >
> >Thanks,
> >Ruchith
> >
> >On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>Dear Ruchith,
> >>
> >>         I had made some comparison between the two server codes, but i
> >>can't
> >>really see why the package of the data being send are different. I
> >>attached
> >>both of the server code with this email.
> >>
> >>SecureClient: send file with security
> >>
> >>public class SecureClient {
> >>
> >>     private File inputFile = null;
> >>
> >>     private QName operationName = new QName("fileSecurity");
> >>
> >>     public static void main(String[] args) {
> >>
> >>         try {
> >>
> >>             // Get the repository location from the args
> >>             String repo = args[0];
> >>             String port = args[1];
> >>
> >>             OMElement payload =
> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >>             ConfigurationContext configContext =
> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> >>null);
> >>             ServiceClient serviceClient = new
> >>ServiceClient(configContext,
> >>null);
> >>             Options options = new Options();
> >>             options.setTo(new EndpointReference("http://127.0.0.1:" +
> >>port +
> >>"/axis2/services/FileSecurity"));
> >>             //options.setTo(new
> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
> >>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >>             //options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >>Constants.VALUE_TRUE);
> >>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >>Constants.VALUE_FALSE);
> >>             options.setAction("urn:fileSecurity");
> >>             serviceClient.setOptions(options);
> >>
> >>             System.out.println(payload);
> >>             //Blocking invocation
> >>             OMElement result = serviceClient.sendReceive(payload);
> >>
> >>             StringWriter writer = new StringWriter();
> >>             result.serialize(XMLOutputFactory.newInstance()
> >>                     .createXMLStreamWriter(writer));
> >>             writer.flush();
> >>
> >>
> >>
> >>            //System.out.println("Response: " + writer.toString());
> >>
> >>             System.out.println("SecureService Invocation successful
> >>:-)");
> >>         } catch (AxisFault axisFault) {
> >>             axisFault.printStackTrace();
> >>         } catch (XMLStreamException e) {
> >>             e.printStackTrace();
> >>         }
> >>     }
> >>
> >>
> >>     private static OMElement getEchoElement(String fileName) {
> >>
> >>
> >>         DataHandler dh;
> >>
> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >>             OMNamespace omNs =
> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
> >>
> >>         OMElement data = fac.createOMElement("fileSecurity", omNs);
> >>         OMElement input = fac.createOMElement("file", omNs);
> >>             OMElement pack = fac.createOMElement("pack", omNs);
> >>
> >>             FileDataSource f1 = new FileDataSource(fileName);
> >>         dh = new DataHandler(f1);
> >>
> >>         OMElement filename = fac.createOMElement("fileName", omNs);
> >>        // OMText textName = fac.createOMText(filename, "myFile.txt");
> >>
> >>         OMText textData = fac.createOMText(dh, true);
> >>
> >>         input.addChild(textData);
> >>
> >>         pack.addChild(filename);
> >>         pack.addChild(input);
> >>         data.addChild(pack);
> >>
> >>         //System.out.println(data);
> >>
> >>              return data;
> >>        }
> >>}
> >>
> >>
> >>          fileClient: sending file without security
> >>
> >>public class fileC {
> >>
> >>         private File inputFile = null;
> >>     private EndpointReference targetEPR = new
> >>EndpointReference("http://127.0.0.1:8090/axis2/services/fileTest");
> >>
> >>     private QName operationName = new QName("fileSample");
> >>
> >>     public fileC(){}
> >>
> >>
> >>         public static void main(String[] args) throws Exception {
> >>
> >>
> >>                 fileC ff = new fileC();
> >>
> >>                 ff.sendFile("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >>                 System.out.println("Client complete");
> >>
> >>         }
> >>
> >>         public OMElement createEnvelope(String fileName)
> >>         {
> >>                  DataHandler dh;
> >>
> >>                  OMFactory fac = OMAbstractFactory.getOMFactory();
> >>              OMNamespace omNs =
> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
> >>
> >>              OMElement data = fac.createOMElement("fileSample", omNs);
> >>          OMElement input = fac.createOMElement("file", omNs);
> >>              OMElement pack = fac.createOMElement("pack", omNs);
> >>
> >>                  FileDataSource f1 = new FileDataSource(fileName);
> >>          dh = new DataHandler(f1);
> >>
> >>          OMElement filename = fac.createOMElement("fileName", omNs);
> >>
> >>          OMText textData = fac.createOMText(dh, true);
> >>
> >>
> >>
> >>          input.addChild(textData);
> >>
> >>          pack.addChild(filename);
> >>          pack.addChild(input);
> >>          data.addChild(pack);
> >>
> >>
> >>
> >>              return data;
> >>         }
> >>
> >>            public OMElement sendFile(String fileName) throws Exception {
> >>
> >>
> >>         OMElement payload = createEnvelope(fileName);  //problem cannot
> >>create payload
> >>         Options options = new Options();
> >>         options.setTo(targetEPR);
> >>
> >>options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
> >>
> >>         // enabling MTOM in the client side
> >>         options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >>Constants.VALUE_TRUE);
> >>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >>
> >>
> >>         options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS,
> >>Constants.VALUE_TRUE);
> >>
> >>
> >>        ServiceClient sender = new ServiceClient();
> >>
> >>
> >>         sender.setOptions(options);
> >>         return sender.sendReceive(payload);
> >>     }
> >>
> >>
> >>     public void setTargetEPR(String targetEPR) {
> >>         this.targetEPR = new EndpointReference(targetEPR);
> >>
> >>     }
> >>
> >>}
> >>
> >>          From my opinion, the data should be handled in the same way,
> >>without caring about security issue since it's done on the flow.
> >>
> >>         Best regards,
> >>
> >>         Wan
> >>
> >>
> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >Date: Fri, 21 Jul 2006 18:51:12 +0530
> >> >
> >> >Hi Wan,
> >> >
> >> >The two looks the same *except* that the one with security wraps the
> >> ><ns:pack> element with a <ns:fileSecurity > element.
> >> >
> >> >IMHO this is very strange.
> >> >
> >> >Can you please confirm this difference?
> >> >
> >> >Thanks,
> >> >Ruchith
> >> >
> >> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >>This is with security:
> >> >>
> >> >><example1:fileSecurity xmlns:example1="http://ws.apache.org/axis2/xsd"
> >> >>xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"
> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><example1:pack><example1:fileName
> >> >>/><example1:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZXRjCQktIGlzIGEgZGlyZWN0b3J5IGZvciBqZXR0eSBjb25maWd1cmF0aW9uIGZpbGVzIHN1Y2ggYXMgamV0dHkueG1sCgkJZXhhbXBsZXMgIAoJCWxlZ2FsICAKCQlsaWIgIAoJCW1vZHVsZXMgIAoJCXBhdGNoZXMgIAoJCXBvbS54bWwgIAoJCXByb2plY3Qtc2l0ZSAgCgkJUkVBRE1FLnR4dCAgCgkJc3RhcnQuamFyICAJLSBpcyB0aGUgamFyIHRoYXQgaW52b2tlcyBqZXR0eTYgCgkJVkVSU0lPTi50eHQgIAoJCXdlYmFwcHMgIAktIGEgZGlyZWN0b3J5IGNvbnRhaW5pbmcgc29tZSBkZW1vIHdlYmFwcHMKCQl3ZW
> >>Jhc
> >> >>HB
> >> >>zLXBsdXMKCSAgIFdlIGNhbiB0ZXN0IHRoZSBKZXR0eSBieSBydW5uaW5nIGl0LgoJICAgUnVub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29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</example1:file></example1:pack></example1:fileSecurity>
> >> >>
> >> >>
> >> >>
> >> >>This is without security:
> >> >>
> >> >><my:pack xmlns:my="http://ws.apache.org/axis2/xsd"><my:fileName
> >> >>/><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZXRjCQktIGlzIGEgZGlyZWN0b3J5IGZvciBqZXR0eSBjb25maWd1cmF0aW9uIGZpbGVzIHN1Y2ggYXMgamV0dHkueG1sCgkJZXhhbXBsZXMgIAoJCWxlZ2FsICAKCQlsaWIgIAoJCW1vZHVsZXMgIAoJCXBhdGNoZXMgIAoJCXBvbS54bWwgIAoJCXByb2plY3Qtc2l0ZSAgCgkJUkVBRE1FLnR4dCAgCgkJc3RhcnQuamFyICAJLSBpcyB0aGUgamFyIHRoYXQgaW52b2tlcyBqZXR0eTYgCgkJVkVSU0lPTi50eHQgIAoJCXdlYmFwcH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c5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack>
> >> >>
> >> >>
> >> >>it look exactly the same. I don't know how the server side cannot
> >>handle.
> >> >>
> >> >>Thanks,
> >> >>
> >> >>Wan
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >> >Reply-To: axis-user@ws.apache.org
> >> >> >To: axis-user@ws.apache.org
> >> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >> >Date: Fri, 21 Jul 2006 18:16:02 +0530
> >> >> >
> >> >> >Hi Wan,
> >> >> >
> >> >> >Can you please send me the output of the
> >> >> >"System.out.println(element);" statement at the beginning of the
> >> >> >method with _and_ without security
> >> >> >
> >> >> >>public class fileS {
> >> >> >>
> >> >> >>         public OMElement fileSecurity(OMElement element) throws
> >> >>Exception
> >> >> >>         {
> >> >> >>                 System.out.println(element);
> >> >> >at this point -->
> >> >> >
> >> >> >
> >> >> >Thanks,
> >> >> >Ruchith
> >> >> >
> >> >> >--
> >> >> >www.ruchith.org
> >> >> >
> >> >> >---------------------------------------------------------------------
> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >www.ruchith.org
> >> >
> >> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Ruchith, these are the services.xml files

with security,

<service name="FileSecurity">
	<description>
		This is my service for sending file over server-client with security 
setting
	</description>
	<parameter locked="false" name="ServiceClass">security.fileS</parameter>
	<operation name="fileSecurity">
		<messageReceiver 
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
	</operation>

    <parameter name="InflowSecurity">
      <action>
        <items>Timestamp Signature Encrypt</items>
        <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
        <signaturePropFile>sec.properties</signaturePropFile>
      </action>
    </parameter>

    <parameter name="OutflowSecurity">
      <action>
        <items>Timestamp Signature Encrypt</items>
        <user>bob</user>
        <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
        <signaturePropFile>sec.properties</signaturePropFile>
        <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
        <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
        <encryptionUser>alice</encryptionUser>
        
<!--optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>-->
      </action>
    </parameter>

</service>


           without security,

<service>
	<description>
		This is my service for sending file over server-client
	</description>
	<parameter locked="false" name="ServiceClass">fileT.fileS</parameter>
	<operation name="fileSample">
		<messageReceiver 
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
	</operation>

</service>

              What difference is made between RPCMessageReceiver and 
RawXMLInOutMessageReceiver? I only know that i cannot see wsdl file if we 
use RawXMLInOutMessageReceiver.

               Best regards,
                Wan



>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Mon, 24 Jul 2006 15:21:41 +0530
>
>Hi Wan,
>
>Can you please send the services.xml files of the two services that you 
>used.
>
>I have a feeling that you maybe using RCPMessageReceiver with the non
>secure case.
>
>Thanks,
>Ruchith
>
>On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Dear Ruchith,
>>
>>         I had made some comparison between the two server codes, but i 
>>can't
>>really see why the package of the data being send are different. I 
>>attached
>>both of the server code with this email.
>>
>>SecureClient: send file with security
>>
>>public class SecureClient {
>>
>>     private File inputFile = null;
>>
>>     private QName operationName = new QName("fileSecurity");
>>
>>     public static void main(String[] args) {
>>
>>         try {
>>
>>             // Get the repository location from the args
>>             String repo = args[0];
>>             String port = args[1];
>>
>>             OMElement payload =
>>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>>             ConfigurationContext configContext =
>>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>>null);
>>             ServiceClient serviceClient = new 
>>ServiceClient(configContext,
>>null);
>>             Options options = new Options();
>>             options.setTo(new EndpointReference("http://127.0.0.1:" + 
>>port +
>>"/axis2/services/FileSecurity"));
>>             //options.setTo(new
>>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>>             //options.setProperty(Constants.Configuration.ENABLE_MTOM,
>>Constants.VALUE_TRUE);
>>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
>>Constants.VALUE_FALSE);
>>             options.setAction("urn:fileSecurity");
>>             serviceClient.setOptions(options);
>>
>>             System.out.println(payload);
>>             //Blocking invocation
>>             OMElement result = serviceClient.sendReceive(payload);
>>
>>             StringWriter writer = new StringWriter();
>>             result.serialize(XMLOutputFactory.newInstance()
>>                     .createXMLStreamWriter(writer));
>>             writer.flush();
>>
>>
>>
>>            //System.out.println("Response: " + writer.toString());
>>
>>             System.out.println("SecureService Invocation successful 
>>:-)");
>>         } catch (AxisFault axisFault) {
>>             axisFault.printStackTrace();
>>         } catch (XMLStreamException e) {
>>             e.printStackTrace();
>>         }
>>     }
>>
>>
>>     private static OMElement getEchoElement(String fileName) {
>>
>>
>>         DataHandler dh;
>>
>>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>>             OMNamespace omNs =
>>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
>>
>>         OMElement data = fac.createOMElement("fileSecurity", omNs);
>>         OMElement input = fac.createOMElement("file", omNs);
>>             OMElement pack = fac.createOMElement("pack", omNs);
>>
>>             FileDataSource f1 = new FileDataSource(fileName);
>>         dh = new DataHandler(f1);
>>
>>         OMElement filename = fac.createOMElement("fileName", omNs);
>>        // OMText textName = fac.createOMText(filename, "myFile.txt");
>>
>>         OMText textData = fac.createOMText(dh, true);
>>
>>         input.addChild(textData);
>>
>>         pack.addChild(filename);
>>         pack.addChild(input);
>>         data.addChild(pack);
>>
>>         //System.out.println(data);
>>
>>              return data;
>>        }
>>}
>>
>>
>>          fileClient: sending file without security
>>
>>public class fileC {
>>
>>         private File inputFile = null;
>>     private EndpointReference targetEPR = new
>>EndpointReference("http://127.0.0.1:8090/axis2/services/fileTest");
>>
>>     private QName operationName = new QName("fileSample");
>>
>>     public fileC(){}
>>
>>
>>         public static void main(String[] args) throws Exception {
>>
>>
>>                 fileC ff = new fileC();
>>
>>                 ff.sendFile("/users/alice3/myDoc/Jettty6-Axis2.txt");
>>                 System.out.println("Client complete");
>>
>>         }
>>
>>         public OMElement createEnvelope(String fileName)
>>         {
>>                  DataHandler dh;
>>
>>                  OMFactory fac = OMAbstractFactory.getOMFactory();
>>              OMNamespace omNs =
>>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
>>
>>              OMElement data = fac.createOMElement("fileSample", omNs);
>>          OMElement input = fac.createOMElement("file", omNs);
>>              OMElement pack = fac.createOMElement("pack", omNs);
>>
>>                  FileDataSource f1 = new FileDataSource(fileName);
>>          dh = new DataHandler(f1);
>>
>>          OMElement filename = fac.createOMElement("fileName", omNs);
>>
>>          OMText textData = fac.createOMText(dh, true);
>>
>>
>>
>>          input.addChild(textData);
>>
>>          pack.addChild(filename);
>>          pack.addChild(input);
>>          data.addChild(pack);
>>
>>
>>
>>              return data;
>>         }
>>
>>            public OMElement sendFile(String fileName) throws Exception {
>>
>>
>>         OMElement payload = createEnvelope(fileName);  //problem cannot
>>create payload
>>         Options options = new Options();
>>         options.setTo(targetEPR);
>>
>>options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
>>
>>         // enabling MTOM in the client side
>>         options.setProperty(Constants.Configuration.ENABLE_MTOM,
>>Constants.VALUE_TRUE);
>>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>>
>>
>>         options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS,
>>Constants.VALUE_TRUE);
>>
>>
>>        ServiceClient sender = new ServiceClient();
>>
>>
>>         sender.setOptions(options);
>>         return sender.sendReceive(payload);
>>     }
>>
>>
>>     public void setTargetEPR(String targetEPR) {
>>         this.targetEPR = new EndpointReference(targetEPR);
>>
>>     }
>>
>>}
>>
>>          From my opinion, the data should be handled in the same way,
>>without caring about security issue since it's done on the flow.
>>
>>         Best regards,
>>
>>         Wan
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Fri, 21 Jul 2006 18:51:12 +0530
>> >
>> >Hi Wan,
>> >
>> >The two looks the same *except* that the one with security wraps the
>> ><ns:pack> element with a <ns:fileSecurity > element.
>> >
>> >IMHO this is very strange.
>> >
>> >Can you please confirm this difference?
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>This is with security:
>> >>
>> >><example1:fileSecurity xmlns:example1="http://ws.apache.org/axis2/xsd"
>> >>xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><example1:pack><example1:fileName
>> >>/><example1:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZXRjCQktIGlzIGEgZGlyZWN0b3J5IGZvciBqZXR0eSBjb25maWd1cmF0aW9uIGZpbGVzIHN1Y2ggYXMgamV0dHkueG1sCgkJZXhhbXBsZXMgIAoJCWxlZ2FsICAK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Y29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</example1:file></example1:pack></example1:fileSecurity>
>> >>
>> >>
>> >>
>> >>This is without security:
>> >>
>> >><my:pack xmlns:my="http://ws.apache.org/axis2/xsd"><my:fileName
>> >>/><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZX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J0IDgwNzkpIGFuZCBzdGFydHMgYSB0aHJlYWQgdG8gbGlzdGVuIGZvciAic3RvcCIgbWVzc2FnZXMuIFRoZSAiLS1zdG9wIiBhcmd1bWVudCB0byBhIHNlY29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack>
>> >>
>> >>
>> >>it look exactly the same. I don't know how the server side cannot 
>>handle.
>> >>
>> >>Thanks,
>> >>
>> >>Wan
>> >>
>> >>
>> >>
>> >>
>> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >Reply-To: axis-user@ws.apache.org
>> >> >To: axis-user@ws.apache.org
>> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >Date: Fri, 21 Jul 2006 18:16:02 +0530
>> >> >
>> >> >Hi Wan,
>> >> >
>> >> >Can you please send me the output of the
>> >> >"System.out.println(element);" statement at the beginning of the
>> >> >method with _and_ without security
>> >> >
>> >> >>public class fileS {
>> >> >>
>> >> >>         public OMElement fileSecurity(OMElement element) throws
>> >>Exception
>> >> >>         {
>> >> >>                 System.out.println(element);
>> >> >at this point -->
>> >> >
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Can you please send the services.xml files of the two services that you used.

I have a feeling that you maybe using RCPMessageReceiver with the non
secure case.

Thanks,
Ruchith

On 7/24/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Dear Ruchith,
>
>         I had made some comparison between the two server codes, but i can't
> really see why the package of the data being send are different. I attached
> both of the server code with this email.
>
> SecureClient: send file with security
>
> public class SecureClient {
>
>     private File inputFile = null;
>
>     private QName operationName = new QName("fileSecurity");
>
>     public static void main(String[] args) {
>
>         try {
>
>             // Get the repository location from the args
>             String repo = args[0];
>             String port = args[1];
>
>             OMElement payload =
> getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>             ConfigurationContext configContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> null);
>             ServiceClient serviceClient = new ServiceClient(configContext,
> null);
>             Options options = new Options();
>             options.setTo(new EndpointReference("http://127.0.0.1:" + port +
> "/axis2/services/FileSecurity"));
>             //options.setTo(new
> EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>             //options.setProperty(Constants.Configuration.ENABLE_MTOM,
> Constants.VALUE_TRUE);
>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
> Constants.VALUE_FALSE);
>             options.setAction("urn:fileSecurity");
>             serviceClient.setOptions(options);
>
>             System.out.println(payload);
>             //Blocking invocation
>             OMElement result = serviceClient.sendReceive(payload);
>
>             StringWriter writer = new StringWriter();
>             result.serialize(XMLOutputFactory.newInstance()
>                     .createXMLStreamWriter(writer));
>             writer.flush();
>
>
>
>            //System.out.println("Response: " + writer.toString());
>
>             System.out.println("SecureService Invocation successful :-)");
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         } catch (XMLStreamException e) {
>             e.printStackTrace();
>         }
>     }
>
>
>     private static OMElement getEchoElement(String fileName) {
>
>
>         DataHandler dh;
>
>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>             OMNamespace omNs =
> fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
>
>         OMElement data = fac.createOMElement("fileSecurity", omNs);
>         OMElement input = fac.createOMElement("file", omNs);
>             OMElement pack = fac.createOMElement("pack", omNs);
>
>             FileDataSource f1 = new FileDataSource(fileName);
>         dh = new DataHandler(f1);
>
>         OMElement filename = fac.createOMElement("fileName", omNs);
>        // OMText textName = fac.createOMText(filename, "myFile.txt");
>
>         OMText textData = fac.createOMText(dh, true);
>
>         input.addChild(textData);
>
>         pack.addChild(filename);
>         pack.addChild(input);
>         data.addChild(pack);
>
>         //System.out.println(data);
>
>              return data;
>        }
> }
>
>
>          fileClient: sending file without security
>
> public class fileC {
>
>         private File inputFile = null;
>     private EndpointReference targetEPR = new
> EndpointReference("http://127.0.0.1:8090/axis2/services/fileTest");
>
>     private QName operationName = new QName("fileSample");
>
>     public fileC(){}
>
>
>         public static void main(String[] args) throws Exception {
>
>
>                 fileC ff = new fileC();
>
>                 ff.sendFile("/users/alice3/myDoc/Jettty6-Axis2.txt");
>                 System.out.println("Client complete");
>
>         }
>
>         public OMElement createEnvelope(String fileName)
>         {
>                  DataHandler dh;
>
>                  OMFactory fac = OMAbstractFactory.getOMFactory();
>              OMNamespace omNs =
> fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");
>
>              OMElement data = fac.createOMElement("fileSample", omNs);
>          OMElement input = fac.createOMElement("file", omNs);
>              OMElement pack = fac.createOMElement("pack", omNs);
>
>                  FileDataSource f1 = new FileDataSource(fileName);
>          dh = new DataHandler(f1);
>
>          OMElement filename = fac.createOMElement("fileName", omNs);
>
>          OMText textData = fac.createOMText(dh, true);
>
>
>
>          input.addChild(textData);
>
>          pack.addChild(filename);
>          pack.addChild(input);
>          data.addChild(pack);
>
>
>
>              return data;
>         }
>
>            public OMElement sendFile(String fileName) throws Exception {
>
>
>         OMElement payload = createEnvelope(fileName);  //problem cannot
> create payload
>         Options options = new Options();
>         options.setTo(targetEPR);
>
> options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
>
>         // enabling MTOM in the client side
>         options.setProperty(Constants.Configuration.ENABLE_MTOM,
> Constants.VALUE_TRUE);
>         options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>
>
>         options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS,
> Constants.VALUE_TRUE);
>
>
>        ServiceClient sender = new ServiceClient();
>
>
>         sender.setOptions(options);
>         return sender.sendReceive(payload);
>     }
>
>
>     public void setTargetEPR(String targetEPR) {
>         this.targetEPR = new EndpointReference(targetEPR);
>
>     }
>
> }
>
>          From my opinion, the data should be handled in the same way,
> without caring about security issue since it's done on the flow.
>
>         Best regards,
>
>         Wan
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] send file with security
> >Date: Fri, 21 Jul 2006 18:51:12 +0530
> >
> >Hi Wan,
> >
> >The two looks the same *except* that the one with security wraps the
> ><ns:pack> element with a <ns:fileSecurity > element.
> >
> >IMHO this is very strange.
> >
> >Can you please confirm this difference?
> >
> >Thanks,
> >Ruchith
> >
> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>This is with security:
> >>
> >><example1:fileSecurity xmlns:example1="http://ws.apache.org/axis2/xsd"
> >>xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"
> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><example1:pack><example1:fileName
> >>/><example1:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZXRjCQktIGlzIGEgZGlyZWN0b3J5IGZvciBqZXR0eSBjb25maWd1cmF0aW9uIGZpbGVzIHN1Y2ggYXMgamV0dHkueG1sCgkJZXhhbXBsZXMgIAoJCWxlZ2FsICAKCQlsaWIgIAoJCW1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AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</example1:file></example1:pack></example1:fileSecurity>
> >>
> >>
> >>
> >>This is without security:
> >>
> >><my:pack xmlns:my="http://ws.apache.org/axis2/xsd"><my:fileName
> >>/><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZXRjCQktIGlzIGEgZGlyZWN0b3J5IGZvciBqZXR0eSBjb25maWd1cmF0aW9uIGZpbGVzIHN1Y2ggYXMgamV0dHkueG1sC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GxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack>
> >>
> >>
> >>it look exactly the same. I don't know how the server side cannot handle.
> >>
> >>Thanks,
> >>
> >>Wan
> >>
> >>
> >>
> >>
> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >Date: Fri, 21 Jul 2006 18:16:02 +0530
> >> >
> >> >Hi Wan,
> >> >
> >> >Can you please send me the output of the
> >> >"System.out.println(element);" statement at the beginning of the
> >> >method with _and_ without security
> >> >
> >> >>public class fileS {
> >> >>
> >> >>         public OMElement fileSecurity(OMElement element) throws
> >>Exception
> >> >>         {
> >> >>                 System.out.println(element);
> >> >at this point -->
> >> >
> >> >
> >> >Thanks,
> >> >Ruchith
> >> >
> >> >--
> >> >www.ruchith.org
> >> >
> >> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

        I had made some comparison between the two server codes, but i can't 
really see why the package of the data being send are different. I attached 
both of the server code with this email.

SecureClient: send file with security

public class SecureClient {

    private File inputFile = null;

    private QName operationName = new QName("fileSecurity");

    public static void main(String[] args) {

        try {

            // Get the repository location from the args
            String repo = args[0];
            String port = args[1];

            OMElement payload = 
getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
            ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo, 
null);
            ServiceClient serviceClient = new ServiceClient(configContext, 
null);
            Options options = new Options();
            options.setTo(new EndpointReference("http://127.0.0.1:" + port + 
"/axis2/services/FileSecurity"));
            //options.setTo(new 
EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
            //options.setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);
            options.setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_FALSE);
            options.setAction("urn:fileSecurity");
            serviceClient.setOptions(options);

            System.out.println(payload);
            //Blocking invocation
            OMElement result = serviceClient.sendReceive(payload);

            StringWriter writer = new StringWriter();
            result.serialize(XMLOutputFactory.newInstance()
                    .createXMLStreamWriter(writer));
            writer.flush();



           //System.out.println("Response: " + writer.toString());

            System.out.println("SecureService Invocation successful :-)");
        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        } catch (XMLStreamException e) {
            e.printStackTrace();
        }
    }


    private static OMElement getEchoElement(String fileName) {


        DataHandler dh;

		OMFactory fac = OMAbstractFactory.getOMFactory();
	    OMNamespace omNs = 
fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");

        OMElement data = fac.createOMElement("fileSecurity", omNs);
        OMElement input = fac.createOMElement("file", omNs);
	    OMElement pack = fac.createOMElement("pack", omNs);

	    FileDataSource f1 = new FileDataSource(fileName);
        dh = new DataHandler(f1);

        OMElement filename = fac.createOMElement("fileName", omNs);
       // OMText textName = fac.createOMText(filename, "myFile.txt");

        OMText textData = fac.createOMText(dh, true);

        input.addChild(textData);

        pack.addChild(filename);
        pack.addChild(input);
        data.addChild(pack);

        //System.out.println(data);

	     return data;
       }
}


         fileClient: sending file without security

public class fileC {

	private File inputFile = null;
    private EndpointReference targetEPR = new 
EndpointReference("http://127.0.0.1:8090/axis2/services/fileTest");

    private QName operationName = new QName("fileSample");

    public fileC(){}


	public static void main(String[] args) throws Exception {


		fileC ff = new fileC();

		ff.sendFile("/users/alice3/myDoc/Jettty6-Axis2.txt");
		System.out.println("Client complete");

	}

	public OMElement createEnvelope(String fileName)
	{
		 DataHandler dh;

		 OMFactory fac = OMAbstractFactory.getOMFactory();
	     OMNamespace omNs = 
fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "my");

	     OMElement data = fac.createOMElement("fileSample", omNs);
         OMElement input = fac.createOMElement("file", omNs);
	     OMElement pack = fac.createOMElement("pack", omNs);

		 FileDataSource f1 = new FileDataSource(fileName);
         dh = new DataHandler(f1);

         OMElement filename = fac.createOMElement("fileName", omNs);

         OMText textData = fac.createOMText(dh, true);



         input.addChild(textData);

         pack.addChild(filename);
         pack.addChild(input);
         data.addChild(pack);



	     return data;
	}

	   public OMElement sendFile(String fileName) throws Exception {


        OMElement payload = createEnvelope(fileName);  //problem cannot 
create payload
        Options options = new Options();
        options.setTo(targetEPR);
        
options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);

        // enabling MTOM in the client side
        options.setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);
        options.setTransportInProtocol(Constants.TRANSPORT_HTTP);


        options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS, 
Constants.VALUE_TRUE);


       ServiceClient sender = new ServiceClient();


        sender.setOptions(options);
        return sender.sendReceive(payload);
    }


    public void setTargetEPR(String targetEPR) {
        this.targetEPR = new EndpointReference(targetEPR);

    }

}

         From my opinion, the data should be handled in the same way, 
without caring about security issue since it's done on the flow.

        Best regards,

        Wan


>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Fri, 21 Jul 2006 18:51:12 +0530
>
>Hi Wan,
>
>The two looks the same *except* that the one with security wraps the
><ns:pack> element with a <ns:fileSecurity > element.
>
>IMHO this is very strange.
>
>Can you please confirm this difference?
>
>Thanks,
>Ruchith
>
>On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>This is with security:
>>
>><example1:fileSecurity xmlns:example1="http://ws.apache.org/axis2/xsd"
>>xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
>>xmlns:wsa="http://www.w3.org/2005/08/addressing"
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><example1:pack><example1:fileName
>>/><example1:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0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GUgb25lIGluIHRoZSBSdW5uaW5nIHNlY3Rpb24uIFdoZW5ldmVyIGpldHR5IHN0YXJ0cyB1cCwgaXQgb3BlbnMgdXAgYSBwbw==cnQgKGJ5IGRlZmF1bHQgdGhpcyBpcyBwb3J0IDgwNzkpIGFuZCBzdGFydHMgYSB0aHJlYWQgdG8gbGlzdGVuIGZvciAic3RvcCIgbWVzc2FnZXMuIFRoZSAiLS1zdG9wIiBhcmd1bWVudCB0byBhIHNlY29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</example1:file></example1:pack></example1:fileSecurity>
>>
>>
>>
>>This is without security:
>>
>><my:pack xmlns:my="http://ws.apache.org/axis2/xsd"><my:fileName
>>/><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4g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c3VjaCBhcyB0aGUgb25lIGluIHRoZSBSdW5uaW5nIHNlY3Rpb24uIFdoZW5ldmVyIGpldHR5IHN0YXJ0cyB1cCwgaXQgb3BlbnMgdXAgYSBwbw==cnQgKGJ5IGRlZmF1bHQgdGhpcyBpcyBwb3J0IDgwNzkpIGFuZCBzdGFydHMgYSB0aHJlYWQgdG8gbGlzdGVuIGZvciAic3RvcCIgbWVzc2FnZXMuIFRoZSAiLS1zdG9wIiBhcmd1bWVudCB0byBhIHNlY29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack>
>>
>>
>>it look exactly the same. I don't know how the server side cannot handle.
>>
>>Thanks,
>>
>>Wan
>>
>>
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Fri, 21 Jul 2006 18:16:02 +0530
>> >
>> >Hi Wan,
>> >
>> >Can you please send me the output of the
>> >"System.out.println(element);" statement at the beginning of the
>> >method with _and_ without security
>> >
>> >>public class fileS {
>> >>
>> >>         public OMElement fileSecurity(OMElement element) throws 
>>Exception
>> >>         {
>> >>                 System.out.println(element);
>> >at this point -->
>> >
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

The two looks the same *except* that the one with security wraps the
<ns:pack> element with a <ns:fileSecurity > element.

IMHO this is very strange.

Can you please confirm this difference?

Thanks,
Ruchith

On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> This is with security:
>
> <example1:fileSecurity xmlns:example1="http://ws.apache.org/axis2/xsd"
> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><example1:pack><example1:fileName
> /><example1:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IG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R5IHN0YXJ0cyB1cCwgaXQgb3BlbnMgdXAgYSBwbw==cnQgKGJ5IGRlZmF1bHQgdGhpcyBpcyBwb3J0IDgwNzkpIGFuZCBzdGFydHMgYSB0aHJlYWQgdG8gbGlzdGVuIGZvciAic3RvcCIgbWVzc2FnZXMuIFRoZSAiLS1zdG9wIiBhcmd1bWVudCB0byBhIHNlY29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</example1:file></example1:pack></example1:fileSecurity>
>
>
>
> This is without security:
>
> <my:pack xmlns:my="http://ws.apache.org/axis2/xsd"><my:fileName
> /><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pld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w==cnQgKGJ5IGRlZmF1bHQgdGhpcyBpcyBwb3J0IDgwNzkpIGFuZCBzdGFydHMgYSB0aHJlYWQgdG8gbGlzdGVuIGZvciAic3RvcCIgbWVzc2FnZXMuIFRoZSAiLS1zdG9wIiBhcmd1bWVudCB0byBhIHNlY29uZCBpbnZvY2F0aW9uIG9mIGpldHR5IHRlbGxzIHRoYXQgaW5zdGFuY2UgdG8gc2VuZCB0aGUgInN0b3AiIG1lc3NhZ2Ugb24gYSBwb3J0IChhZ2FpbiwgYnkgZGVmYXVsdCB0aGlzIHdpbGwgYmUgcG9ydCA4MDc5KS4KCglSZWZlcmVuY2VzOgoJCVsxXSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack>
>
>
> it look exactly the same. I don't know how the server side cannot handle.
>
> Thanks,
>
> Wan
>
>
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] send file with security
> >Date: Fri, 21 Jul 2006 18:16:02 +0530
> >
> >Hi Wan,
> >
> >Can you please send me the output of the
> >"System.out.println(element);" statement at the beginning of the
> >method with _and_ without security
> >
> >>public class fileS {
> >>
> >>         public OMElement fileSecurity(OMElement element) throws Exception
> >>         {
> >>                 System.out.println(element);
> >at this point -->
> >
> >
> >Thanks,
> >Ruchith
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
This is with security:

<example1:fileSecurity xmlns:example1="http://ws.apache.org/axis2/xsd" 
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" 
xmlns:wsa="http://www.w3.org/2005/08/addressing" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><example1:pack><example1:fileName 
/><example1:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZXRjCQktIGlzIGEgZGlyZWN0b3J5IGZvciBqZXR0eSBjb25maWd1cmF0aW9uIGZpbGVzIHN1Y2ggYXMgamV0dHkueG1sCgkJZXhhbXBsZXMgIAoJCWxlZ2FsICAKCQlsaWIgIAoJCW1vZHVsZXMgIAoJCXBhdGNoZXM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XSBodHRwOi8vd3MuYXBhY2hlLm9yZy9heGlzMi8KCQlbMl0gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</example1:file></example1:pack></example1:fileSecurity>



This is without security:

<my:pack xmlns:my="http://ws.apache.org/axis2/xsd"><my:fileName 
/><my:file>RGVzY3JpcHRpb24gb24gZW1wbG95aW5nIHdlYnNlcnZlcihKZXR0eTYpIHdpdGggd2Vic2VydmljZXMgaG9zdGVkIGJ5IEF4aXMyIDEuMAoKCVNvZnR3YXJlczoKCQktIEpldHR5LTYuMC4wIGJldGExNgoJCS0gQXhpczIgdmVyc2lvbiAxLjAgU3RhbmRhcmQgRGlzdHJpYnV0aW9uIEJpbmFyeQoJCS0gQXhpczIud2FyCgoJMS4gRG93bmxvYWQgSmV0dHk2IGZyb20gaHR0cDovL2pldHR5Lm1vcnRiYXkub3JnL2pldHR5Ni8KCSAgIEl0IHdpbGwgY29tZSBpbiAuemlwIGZpbGUuIFRoZW4gZXh0cmFjdCBpdCB0byBhIGNoaW9jZSBvZiBkaXJlY3RvcnkuCgkgICBUaGUgdG9wIGxldmVsIGRpcmVjdG9yaWVzIHNob3VsZCBsb29rIGxpa2UKIAkgICAJZXRjCQktIGlzIGEgZGlyZWN0b3J5IGZvciBqZXR0eSBjb25maWd1cmF0aW9uIGZpbGVzIHN1Y2ggYXMgamV0dHkueG1sCgkJZXhhbXBsZXMgIAoJCWxlZ2FsICAKCQlsaWIgIAoJCW1vZHVsZXMgIAoJCXBhdGNoZXMgIAoJCXBvbS54bWwgIAoJCXByb2plY3Qtc2l0ZSAgCgkJUkVBRE1FLnR4dCAgCgk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vcnRiYXkub3JnL2pldHR5Ni8KCQlbM10gaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29tL2F4aXMtdXNlciU0MHdzLmFwYWNoZS5vcmcvbXNnMTI5NjkuaHRtbAoJCVs0XSBodHRwOi8vandtYS5zb3VyY2Vmb3JnZS5uZXQvZGVwbG95bWVudC9qZXR0eV9ob3d0by5odG1sCgogIAoJCg==</my:file></my:pack>


it look exactly the same. I don't know how the server side cannot handle.

Thanks,

Wan




>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Fri, 21 Jul 2006 18:16:02 +0530
>
>Hi Wan,
>
>Can you please send me the output of the
>"System.out.println(element);" statement at the beginning of the
>method with _and_ without security
>
>>public class fileS {
>>
>>         public OMElement fileSecurity(OMElement element) throws Exception
>>         {
>>                 System.out.println(element);
>at this point -->
>
>
>Thanks,
>Ruchith
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Can you please send me the output of the
"System.out.println(element);" statement at the beginning of the
method with _and_ without security

> public class fileS {
>
>         public OMElement fileSecurity(OMElement element) throws Exception
>         {
>                 System.out.println(element);
 at this point -->


Thanks,
Ruchith

-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

      Yes, I still have the same exception. Is it possible that the 
exception is caused by the attemp to save the file on the server? I would 
like to show the code to you.

public class fileS {

	public OMElement fileSecurity(OMElement element) throws Exception
	{
		System.out.println(element);

		element.build();
		element.detach();


        try {



            Iterator children = element.getChildElements();

    		OMElement name = (OMElement)children.next();
    		OMElement content = (OMElement)children.next();

    		System.out.println("before creating OMText");

!!!!!!!!!!!!!!!at the server side is only run until this line and then throw 
exception !!!!!!!!!!!!

    		OMText fnode = (OMText)content.getFirstOMChild();

    		System.out.println(fnode);
    		System.out.println("after creating OMText");

    		//create data handler to extract the data handler of the OMText
    		DataHandler dfile;
    		System.out.println("before getDataHandler from OMText");


    		dfile = (DataHandler)fnode.getDataHandler();

    		System.out.println("after create datahandler for OMText");

    		FileOutputStream outfile = new  FileOutputStream(new 
File("/users/alice3/myFile"));

    		dfile.writeTo(outfile);



    		OMFactory fac = OMAbstractFactory.getOMFactory();
            OMNamespace ns = fac.createOMNamespace("urn://fakenamespace", 
"ns");
            OMElement ele = fac.createOMElement("response", ns);
            ele.setText("Data Saved");


            return ele;

        } catch (Exception e) {

            throw new AxisFault(e.getMessage());

        }


         I couldn't go further with my project. Your help is really 
appreciated.
         Great thanks,

         Wan



>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Fri, 21 Jul 2006 17:56:42 +0530
>
>Hi Wan,
>
>OK ... if you have the parameters set properly the the service method
>will receive the decrypted xml and it should work properly.
>
>Do u still get the same exception?
>
>Thanks,
>Ruchith
>
>On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>yes, Ruchith
>>my services.xml is look like this
>>
>><service name="FileSecurity">
>>         <description>
>>                 This is my service for sending file over server-client 
>>with security
>>setting
>>         </description>
>>         <parameter locked="false" 
>>name="ServiceClass">security.fileS</parameter>
>>         <operation name="fileSecurity">
>>                 <messageReceiver
>>class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>>         </operation>
>>
>>     <parameter name="InflowSecurity">
>>       <action>
>>         <items>Timestamp Signature Encrypt</items>
>>         
>><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>>         <signaturePropFile>sec.properties</signaturePropFile>
>>       </action>
>>     </parameter>
>>
>>     <parameter name="OutflowSecurity">
>>       <action>
>>         <items>Timestamp Signature Encrypt</items>
>>         <user>bob</user>
>>         
>><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>>         <signaturePropFile>sec.properties</signaturePropFile>
>>         <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>>         
>><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>>         <encryptionUser>alice</encryptionUser>
>>
>><!--optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>-->
>>       </action>
>>     </parameter>
>>
>></service>
>>
>>    Thank you very much,
>>
>>      Wan
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Fri, 21 Jul 2006 17:31:19 +0530
>> >
>> >Hi Wan,
>> >
>> >Did you add the "inflowConfiguration" and "outflowConfiguration"
>> >parameters into the services.xml file of the service?
>> >
>> >Adding <module ref="rampart" /> engages rampart ... but you have to
>> >_configure_ rampart as with the two parameters mentioned above.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>Dear Ruchith,
>> >>
>> >>         I do have some update about the test, I have debugged it by
>> >>printing
>> >>the message which sent at the client side and also the arrived message 
>>at
>> >>the server side and the both look exactly the same. However, while
>> >>comparing
>> >>it with TCPMon, the message is different. So we can conclude that on 
>>the
>> >>TCPMon is the secured message and the code at client and server are the
>> >>one
>> >>before encrypted and after decrypted.
>> >>
>> >>        The server code is run fine until reach this line.
>> >>
>> >>        OMText fnode = (OMText)content.getFirstOMChild();
>> >>
>> >>        So i think the security module is working fine. I have no idea
>> >>what
>> >>is causing the fault.
>> >>
>> >>        Best regards,
>> >>
>> >>        Wan
>> >>
>> >>
>> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >Reply-To: axis-user@ws.apache.org
>> >> >To: axis-user@ws.apache.org
>> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >Date: Fri, 21 Jul 2006 16:01:48 +0530
>> >> >
>> >> >Hi Wan,
>> >> >
>> >> >Have you engaged and configured rampart properly at the service?
>> >> >
>> >> >If you have not engaged rampart at the service, ... the your
>> >> >public OMElement fileSecurity(OMElement element) method will be fed
>> >> >with  an OMElement which is the "EncryptedData" element.
>> >> >
>> >> >Can you debug and see whether the element you receive into the 
>>service
>> >> >_with_ security is "EncryptedData"? If so you have not
>> >> >engaged/configured rampart at the service.
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >>Dear Ruchith,
>> >> >>
>> >> >>         I have tried put try-catch block in my service, the result
>> >>thrown
>> >> >>is
>> >> >>the same. The same service code is working well with the sending 
>>file
>> >> >>without the security issue. I have attached the service code with 
>>the
>> >> >>email
>> >> >>as well as the result thrown by TCPMon
>> >> >>
>> >> >>package security;
>> >> >>
>> >> >>import java.io.*;
>> >> >>import java.util.Iterator;
>> >> >>import org.apache.axiom.om.OMAbstractFactory;
>> >> >>import org.apache.axiom.om.OMElement;
>> >> >>import org.apache.axiom.om.OMFactory;
>> >> >>import org.apache.axiom.om.OMNamespace;
>> >> >>import org.apache.axiom.om.OMText;
>> >> >>import org.apache.axis2.AxisFault;
>> >> >>
>> >> >>import javax.activation.DataHandler;
>> >> >>//import javax.activation.FileDataSource;
>> >> >>/**
>> >> >>* @author alice3
>> >> >>*
>> >> >>* TODO To change the template for this generated type comment go to
>> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >>*/
>> >> >>public class fileS {
>> >> >>
>> >> >>         public OMElement fileSecurity(OMElement element) throws
>> >>Exception
>> >> >>         {
>> >> >>                 //System.out.println(element);
>> >> >>
>> >> >>                 element.build();
>> >> >>                 element.detach();
>> >> >>
>> >> >>                 //OMElement result;
>> >> >>
>> >> >>         try {
>> >> >>
>> >> >>             //result = (OMElement) method.invoke(obj, args);
>> >> >>
>> >> >>             Iterator children = element.getChildElements();
>> >> >>
>> >> >>                 OMElement name = (OMElement)children.next();
>> >> >>//get name of the file,
>> >> >>first element of element
>> >> >>                 OMElement content = (OMElement)children.next();
>> >>//get
>> >> >>text that
>> >> >>contains the file, second element
>> >> >>
>> >> >>                 System.out.println("before creating OMText");
>> >> >>                 OMText fnode = (OMText)content.getFirstOMChild();
>> >> >>                 System.out.println("after creating OMText");
>> >> >>//              fnode.setOptimize(true);
>> >> >>                 //String fname = name.getText();
>> >> >>
>> >> >>                 //create data handler to extract the data handler 
>>of
>> >>the
>> >> >>OMText
>> >> >>                 DataHandler dfile;
>> >> >>                 System.out.println("before getDataHandler from
>> >>OMText");
>> >> >>
>> >> >>                 //String cid = fnode.getContentID();
>> >> >>                 //System.out.println(cid);
>> >> >>
>> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
>> >> >>//getDataHandler() and
>> >> >>broken pipe
>> >> >>
>> >> >>                 System.out.println("after create datahandler for
>> >> >>OMText");
>> >> >>
>> >> >>                 FileOutputStream outfile = new  
>>FileOutputStream(new
>> >> >>File("/users/alice3/myFile"));
>> >> >>                 System.out.println("after create a 
>>fileoutputstream");
>> >> >>                 dfile.writeTo(outfile);
>> >> >>                 System.out.println("after writeTo()");
>> >> >>
>> >> >>                 //System.out.println("Successful Operation!");
>> >> >>
>> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>> >> >>             OMNamespace ns =
>> >>fac.createOMNamespace("urn://fakenamespace",
>> >> >>"ns");
>> >> >>             OMElement ele = fac.createOMElement("response", ns);
>> >> >>             ele.setText("Data Saved");
>> >> >>             return ele;
>> >> >>
>> >> >>         } catch (Exception e) {
>> >> >>
>> >> >>             throw new AxisFault(e.getMessage());
>> >> >>
>> >> >>         }
>> >> >>
>> >> >>     }
>> >> >>}
>> >> >>
>> >> >>          TCPMon:
>> >> >>
>> >> >>           HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >> >>Set-Cookie: JSESSIONID=2awjbkc0xv4ai;path=/axis2
>> >> >>Content-Type: text/xml; charset=UTF-8
>> >> >>Transfer-Encoding: chunked
>> >> >>Server: Jetty(6.0.x)
>> >> >>
>> >> >>2BE
>> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:C89C196EC8824AC14911534681397753</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo
>> >> 
>> >>wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:B7D986D0DD96E9306611534681329361</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >> >>22
>> >> >><faultstring>unknown</faultstring>
>> >> >>77A
>> >> >><detail><Exception>org.apache.axis2.AxisFault
>> >> >>         at
>> >> 
>> >>org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>> >> >>         at
>> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >>         at 
>>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >>         at
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >></Exception></detail>
>> >> >>32
>> >> >></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >> >>0
>> >> >>
>> >> >>        Regards,
>> >> >>
>> >> >>        Wan
>> >> >>
>> >> >>
>> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >> >Reply-To: axis-user@ws.apache.org
>> >> >> >To: axis-user@ws.apache.org
>> >> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >> >Date: Fri, 21 Jul 2006 13:01:47 +0530
>> >> >> >
>> >> >> >Hi Wan,
>> >> >> >
>> >> >> >Looking at your stack trace it seems that there's something wrong
>> >>with
>> >> >> >your service. The exception is throw at the point where the 
>>service
>> >> >> >method is invoked:
>> >> >> >
>> >> >> >                OMElement result;
>> >> >> >
>> >> >> >                try {
>> >> >> >
>> >> >> >                    result = (OMElement) method.invoke(obj, args);
>> >> >> >
>> >> >> >                } catch (Exception e) {
>> >> >> >
>> >> >> >                    throw new AxisFault(e.getMessage());
>> >> >> >
>> >> >> >                }
>> >> >> >
>> >> >> >Maybe the method is throwing an exception.
>> >> >> >
>> >> >> >Can you please check your service?
>> >> >> >
>> >> >> >Thanks,
>> >> >> >Ruchith
>> >> >> >
>> >> >> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >>Dear Ruchith,
>> >> >> >>
>> >> >> >>          my mistake, my message receiver in services.xml is
>> >> >> >>RAWXMLInOutMessageReceiver.
>> >> >> >>          what should i do now?
>> >> >> >>
>> >> >> >>          Best regards,
>> >> >> >>          Wan
>> >> >> >>
>> >> >> >>
>> >> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >> >> >Reply-To: axis-user@ws.apache.org
>> >> >> >> >To: axis-user@ws.apache.org
>> >> >> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >> >> >Date: Thu, 20 Jul 2006 17:46:18 +0530
>> >> >> >> >
>> >> >> >> >Hi Wan,
>> >> >> >> >
>> >> >> >> >Can you also change
>> >> >> >> ><parameter name="enableMTOM" locked="false">true</parameter>
>> >> >> >> >to
>> >> >> >> ><parameter name="enableMTOM" locked="false">false</parameter>
>> >> >> >> >
>> >> >> >> >in both axis2.xml s (client and server) and try again.
>> >> >> >> >
>> >> >> >> >And if this fails please send what you see in tcpmon and the
>> >> >>exception.
>> >> >> >> >
>> >> >> >> >Thanks,
>> >> >> >> >Ruchith
>> >> >> >> >
>> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >> >>Thank you Ruchith,
>> >> >> >> >>
>> >> >> >> >>        I have made change as your advice. However, i still 
>>got
>> >>the
>> >> >> >>same
>> >> >> >> >>error...
>> >> >> >> >>
>> >> >> >> >>        Any other possibility?
>> >> >> >> >>
>> >> >> >> >>        Best regards,
>> >> >> >> >>
>> >> >> >> >>         Wan
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >> >> >> >Reply-To: axis-user@ws.apache.org
>> >> >> >> >> >To: axis-user@ws.apache.org
>> >> >> >> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >> >> >> >Date: Thu, 20 Jul 2006 16:09:23 +0530
>> >> >> >> >> >
>> >> >> >> >> >Yes from your services.xml and the client's axis2.xml
>> >> >> >> >> >
>> >> >> >> >> >Thanks,
>> >> >> >> >> >Ruchith
>> >> >> >> >> >
>> >> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >> >> >>Dear Ruchith,
>> >> >> >> >> >>
>> >> >> >> >> >>    you means
>> >> >> >> >> >>remove :
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >> >>
>> >> >> >> >> >>     from my services.xml right? or other place?
>> >> >> >> >> >>
>> >> >> >> >> >>     Wan
>> >> >> >> >> >>
>> >> >> >> >> >> >
>> >> >> >> >> >> >Hi Wan,
>> >> >> >> >> >> >
>> >> >> >> >> >> >Please remove :
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >> >> >
>> >> >> >> >> >> >entry from your rampart configuration parameters and try
>> >>again.
>> >> >> >> >> >> >
>> >> >> >> >> >> >Thanks,
>> >> >> >> >> >> >Ruchith
>> >> >> >> >> >> >
>> >> >> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> 
>>wrote:
>> >> >> >> >> >> >>Dear All,
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>        I have been trying to combine the test about
>> >>sending
>> >> >>file
>> >> >> >> >>and
>> >> >> >> >> >> >>securing message.
>> >> >> >> >> >> >>        My environment is Axis2 v1.0, nightly build
>> >>released 4
>> >> >> >>June
>> >> >> >> >>06
>> >> >> >> >> >>on
>> >> >> >> >> >> >>the
>> >> >> >> >> >> >>Jetty Servlet.
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>        From other individual test such as sending text
>> >>file,
>> >> >>and
>> >> >> >> >> >>security
>> >> >> >> >> >> >>sample had no problem on this, however with the 
>>combination
>> >> >>one i
>> >> >> >> >>got
>> >> >> >> >> >>the
>> >> >> >> >> >> >>following error.
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>        Client code:
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>/*
>> >> >> >> >> >> >>* Created on 19.07.2006
>> >> >> >> >> >> >>*
>> >> >> >> >> >> >>* TODO To change the template for this generated file go 
>>to
>> >> >> >> >> >> >>* Window - Preferences - Java - Code Style - Code 
>>Templates
>> >> >> >> >> >> >>*/
>> >> >> >> >> >> >>package security;
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>/**
>> >> >> >> >> >> >>* @author alice3
>> >> >> >> >> >> >>*
>> >> >> >> >> >> >>* TODO To change the template for this generated type
>> >>comment
>> >> >>go
>> >> >> >>to
>> >> >> >> >> >> >>* Window - Preferences - Java - Code Style - Code 
>>Templates
>> >> >> >> >> >> >>*/
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>import org.apache.axiom.om.OMAbstractFactory;
>> >> >> >> >> >> >>import org.apache.axiom.om.OMElement;
>> >> >> >> >> >> >>import org.apache.axiom.om.OMFactory;
>> >> >> >> >> >> >>import org.apache.axiom.om.OMNamespace;
>> >> >> >> >> >> >>import org.apache.axiom.om.OMText;
>> >> >> >> >> >> >>import org.apache.axis2.AxisFault;
>> >> >> >> >> >> >>import org.apache.axis2.Constants;
>> >> >> >> >> >> >>import org.apache.axis2.addressing.EndpointReference;
>> >> >> >> >> >> >>import org.apache.axis2.client.Options;
>> >> >> >> >> >> >>import org.apache.axis2.client.ServiceClient;
>> >> >> >> >> >> >>import org.apache.axis2.context.ConfigurationContext;
>> >> >> >> >> >> >>import
>> >>org.apache.axis2.context.ConfigurationContextFactory;
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>//import org.apache.axis2.soapmonitor.*;
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>import javax.activation.DataHandler;
>> >> >> >> >> >> >>import javax.activation.FileDataSource;
>> >> >> >> >> >> >>import javax.xml.namespace.QName;
>> >> >> >> >> >> >>import javax.xml.stream.XMLOutputFactory;
>> >> >> >> >> >> >>import javax.xml.stream.XMLStreamException;
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>import java.io.File;
>> >> >> >> >> >> >>import java.io.StringWriter;
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>public class SecureClient {
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>     private File inputFile = null;
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>     private QName operationName = new
>> >>QName("fileSecurity");
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>     public static void main(String[] args) {
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         try {
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>             // Get the repository location from the 
>>args
>> >> >> >> >> >> >>             String repo = args[0];
>> >> >> >> >> >> >>             String port = args[1];
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>             OMElement payload =
>> >> >> >> >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >> >> >> >> >> >>             ConfigurationContext configContext =
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >> >> >> >> >> >>null);
>> >> >> >> >> >> >>             ServiceClient serviceClient = new
>> >> >> >> >> >> >>ServiceClient(configContext,
>> >> >> >> >> >> >>null);
>> >> >> >> >> >> >>             Options options = new Options();
>> >> >> >> >> >> >>             options.setTo(new
>> >> >> >>EndpointReference("http://127.0.0.1:"
>> >> >> >> >>+
>> >> >> >> >> >> >>port +
>> >> >> >> >> >> >>"/axis2/services/FileSecurity"));
>> >> >> >> >> >> >>             //options.setTo(new
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>> >> >> >> >> >> >>
>> >> >> >> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> >> >> >> >> >>
>> >> >> >> >>options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >> >> >> >> >> >>Constants.VALUE_TRUE);
>> >> >> >> >> >> >>             options.setAction("urn:fileSecurity");
>> >> >> >> >> >> >>             serviceClient.setOptions(options);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>             //Blocking invocation
>> >> >> >> >> >> >>             OMElement result =
>> >> >> >>serviceClient.sendReceive(payload);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>             StringWriter writer = new StringWriter();
>> >> >> >> >> >> >>
>> >>result.serialize(XMLOutputFactory.newInstance()
>> >> >> >> >> >> >>                     .createXMLStreamWriter(writer));
>> >> >> >> >> >> >>             writer.flush();
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>            //System.out.println("Response: " +
>> >> >> >>writer.toString());
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>             System.out.println("SecureService 
>>Invocation
>> >> >> >>successful
>> >> >> >> >> >> >>:-)");
>> >> >> >> >> >> >>         } catch (AxisFault axisFault) {
>> >> >> >> >> >> >>             axisFault.printStackTrace();
>> >> >> >> >> >> >>         } catch (XMLStreamException e) {
>> >> >> >> >> >> >>             e.printStackTrace();
>> >> >> >> >> >> >>         }
>> >> >> >> >> >> >>     }
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>     private static OMElement getEchoElement(String
>> >>fileName)
>> >> >>{
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         DataHandler dh;
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 OMFactory fac =
>> >> >> >>OMAbstractFactory.getOMFactory();
>> >> >> >> >> >> >>             OMNamespace omNs =
>> >> >> >> >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
>> >> >> >>"example1");
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         OMElement data =
>> >>fac.createOMElement("fileSecurity",
>> >> >> >>omNs);
>> >> >> >> >> >> >>         OMElement input = fac.createOMElement("file",
>> >>omNs);
>> >> >> >> >> >> >>             OMElement pack = 
>>fac.createOMElement("pack",
>> >> >>omNs);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>             FileDataSource f1 = new
>> >>FileDataSource(fileName);
>> >> >> >> >> >> >>         dh = new DataHandler(f1);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         OMElement filename =
>> >>fac.createOMElement("fileName",
>> >> >> >>omNs);
>> >> >> >> >> >> >>        // OMText textName = fac.createOMText(filename,
>> >> >> >> >>"myFile.txt");
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         OMText textData = fac.createOMText(dh, true);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         input.addChild(textData);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         pack.addChild(filename);
>> >> >> >> >> >> >>         pack.addChild(input);
>> >> >> >> >> >> >>         data.addChild(pack);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         //System.out.println(data);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>              return data;
>> >> >> >> >> >> >>         }
>> >> >> >> >> >> >>}
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         server code:
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>public class fileS {
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         public OMElement fileSecurity(OMElement 
>>element)
>> >> >>throws
>> >> >> >> >> >>Exception
>> >> >> >> >> >> >>         {
>> >> >> >> >> >> >>                 //System.out.println(element);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 element.build();
>> >> >> >> >> >> >>                 element.detach();
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>             Iterator children =
>> >>element.getChildElements();
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 OMElement name =
>> >>(OMElement)children.next();
>> >> >> >> >> >> >>//get name of the file,
>> >> >> >> >> >> >>first element of element
>> >> >> >> >> >> >>                 OMElement content =
>> >> >>(OMElement)children.next();
>> >> >> >> >> >>//get
>> >> >> >> >> >> >>text that
>> >> >> >> >> >> >>contains the file, second element
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 System.out.println("before creating
>> >>OMText");
>> >> >> >> >> >> >>                 OMText fnode =
>> >> >> >>(OMText)content.getFirstOMChild();
>> >> >> >> >> >> >>                 System.out.println("after creating
>> >>OMText");
>> >> >> >> >> >> >>//              fnode.setOptimize(true);
>> >> >> >> >> >> >>                 //String fname = name.getText();
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 //create data handler to extract the 
>>data
>> >> >> >>handler
>> >> >> >> >>of
>> >> >> >> >> >>the
>> >> >> >> >> >> >>OMText
>> >> >> >> >> >> >>                 DataHandler dfile;
>> >> >> >> >> >> >>                 System.out.println("before 
>>getDataHandler
>> >> >>from
>> >> >> >> >> >>OMText");
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 //String cid = fnode.getContentID();
>> >> >> >> >> >> >>                 //System.out.println(cid);
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 dfile =
>> >>(DataHandler)fnode.getDataHandler();
>> >> >> >> >> >> >>//getDataHandler() and
>> >> >> >> >> >> >>broken pipe
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 System.out.println("after create
>> >>datahandler
>> >> >>for
>> >> >> >> >> >> >>OMText");
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 FileOutputStream outfile = new
>> >> >> >> >>FileOutputStream(new
>> >> >> >> >> >> >>File("/users/alice3/myFile"));
>> >> >> >> >> >> >>                 System.out.println("after create a
>> >> >> >> >>fileoutputstream");
>> >> >> >> >> >> >>                 dfile.writeTo(outfile);
>> >> >> >> >> >> >>                 System.out.println("after writeTo()");
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 //System.out.println("Successful
>> >> >>Operation!");
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>                 OMFactory fac =
>> >> >> >>OMAbstractFactory.getOMFactory();
>> >> >> >> >> >> >>         OMNamespace ns =
>> >> >> >> >>fac.createOMNamespace("urn://fakenamespace",
>> >> >> >> >> >> >>"ns");
>> >> >> >> >> >> >>         OMElement ele = fac.createOMElement("response",
>> >>ns);
>> >> >> >> >> >> >>         ele.setText("Data Saved");
>> >> >> >> >> >> >>         return ele;
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         }
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>}
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>        services.xml:
>> >> >> >> >> >> >>
>> >> >> >> >> >> >><service name="FileSecurity" >
>> >> >> >> >> >> >>   <description>
>> >> >> >> >> >> >>                 This is my service for sending file 
>>over
>> >> >> >> >>server-client
>> >> >> >> >> >> >>with security
>> >> >> >> >> >> >>setting
>> >> >> >> >> >> >>         </description>
>> >> >> >> >> >> >>   <parameter locked="false" name="ServiceClass"
>> >> >> >> >> >> >> >security.fileS</parameter>
>> >> >> >> >> >> >>   <operation name="fileSecurity" >
>> >> >> >> >> >> >>     <messageReceiver
>> >> >> >> >> >> 
>> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"
>> >>/>
>> >> >> >> >> >> >>   </operation>
>> >> >> >> >> >> >>   <parameter name="InflowSecurity" >
>> >> >> >> >> >> >>     <action>
>> >> >> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >> >> >> >>
>> >> >> >> >>
>> >> >> 
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >> >> >> >>
>> >><signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >> >> >> >>     </action>
>> >> >> >> >> >> >>   </parameter>
>> >> >> >> >> >> >>   <parameter name="OutflowSecurity" >
>> >> >> >> >> >> >>     <action>
>> >> >> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >> >> >> >>       <user>bob</user>
>> >> >> >> >> >> >>
>> >> >> >> >>
>> >> >> 
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >> >> >> >>
>> >><signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >> >> >> >>
>> >> >> >> >>
>> >> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>> >> >> >> >> >> >>
>> >> >> >> >>
>> >> >> 
>> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>> >> >> >> >> >> >>       <encryptionUser>alice</encryptionUser>
>> >> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >> >> >>     </action>
>> >> >> >> >> >> >>   </parameter>
>> >> >> >> >> >> >></service>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>          and the .aar package is constucted as follow
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>         security/
>> >> >> >> >> >> >>                 security/PWCallback.class
>> >> >> >> >> >> >>                 security/fileS.class
>> >> >> >> >> >> >>         META-INF/
>> >> >> >> >> >> >>                 META-INF/services.xml
>> >> >> >> >> >> >>         sec.jks
>> >> >> >> >> >> >>         sec.properties
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>      and the result i get from the TCPMON is that at 
>>the
>> >> >>server
>> >> >> >> >>side
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >> >> >> >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >> >> >> >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
>> >> >> >> >> >> >>Content-Type: multipart/related;
>> >> >> >> >> >>
>> >> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
>> >> >> >> >> >> >>type="application/xop+xml";
>> >> >> >> >> >>
>> >> >> >>start="<0....@apache.org>";
>> >> >> >> >> >> >>start-info="text/xml"; charset=UTF-8
>> >> >> >> >> >> >>Transfer-Encoding: chunked
>> >> >> >> >> >> >>Server: Jetty(6.0.x)
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>2DA
>> >> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
>> >> >>type="text/xml";
>> >> >> >> >> >> >>content-transfer-encoding:binary
>> >> >> >> >> >>
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >> >> 
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >> >> >> >> >> >>35B
>> >> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
>> >> >>type="text/xml";
>> >> >> >> >> >> >>content-transfer-encoding:binary
>> >> >> >> >> >>
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >> >> 
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >> >> >>security processing failed</faultstring>
>> >> >> >> >> >> >>1383
>> >> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
>> >> >>type="text/xml";
>> >> >> >> >> >> >>content-transfer-encoding:binary
>> >> >> >> >> >>
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >> >> 
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >> >> >>security processing
>> >> >> >> >> >>
>> >> >> >>
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >> >> >> >>WSDoAllReceiver: security processing failed; nested
>> >>exception
>> >> >>is:
>> >> >> >> >> >> >>         org.apache.ws.security.WSSecurityException: 
>>Cannot
>> >> >> >> >> >> >>encrypt/decrypt data;
>> >> >> >> >> >> >>nested exception is:
>> >> >> >> >> >> >>
>> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >> >>Error
>> >> >> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>Original Exception was
>> >> >> >> >> >> 
>> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >> >>Error
>> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >> >> >> >>         at
>> >> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >> >> >> >>         at
>> >> >> >> >> 
>> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >> >> >> >>         at
>> >> >> >> >> 
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >> >> >> >>         at
>> >> >> >> >> 
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >> >> >> >>         at
>> >>org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >> >> >> >>         at
>> >> >> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException:
>> >>Cannot
>> >> >> >> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >> >> >> >>
>> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >> >>Error
>> >> >> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>Original Exception was
>> >> >> >> >> >> 
>> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >> >>Error
>> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >> >> >> >>         ... 24 more
>> >> >> >> >> >> >>Caused by:
>> >> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >> >> >>Error
>> >> >> >> >> >> >>while decoding
>> >> >> >> >> >> >>Original Exception was
>> >> >> >> >> >> 
>> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >> >>Error
>> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >> >> >> >>         ... 30 more
>> >> >> >> >> >> >></Exception></detail>
>> >> >> >> >> >> >>13B5
>> >> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
>> >> >>type="text/xml";
>> >> >> >> >> >> >>content-transfer-encoding:binary
>> >> >> >> >> >>
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >> >> 
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >> >> >>security processing
>> >> >> >> >> >>
>> >> >> >>
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >> >> >> >>WSDoAllReceiver: security processing failed; nested
>> >>exception
>> >> >>is:
>> >> >> >> >> >> >>         org.apache.ws.security.WSSecurityException: 
>>Cannot
>> >> >> >> >> >> >>encrypt/decrypt data;
>> >> >> >> >> >> >>nested exception is:
>> >> >> >> >> >> >>
>> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >> >>Error
>> >> >> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>Original Exception was
>> >> >> >> >> >> 
>> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >> >>Error
>> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >> >> >> >>         at
>> >> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >> >> >> >>         at
>> >> >> >> >> 
>> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >> >> >> >>         at
>> >> >> >> >> 
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >> >> >> >>         at
>> >> >> >> >> 
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >> >> >> >>         at
>> >>org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >> >> >> >>         at
>> >> >> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException:
>> >>Cannot
>> >> >> >> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >> >> >> >>
>> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >> >>Error
>> >> >> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>Original Exception was
>> >> >> >> >> >> 
>> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >> >>Error
>> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >> >> >> >>         ... 24 more
>> >> >> >> >> >> >>Caused by:
>> >> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >> >> >>Error
>> >> >> >> >> >> >>while decoding
>> >> >> >> >> >> >>Original Exception was
>> >> >> >> >> >> 
>> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >> >>Error
>> >> >> >> >>while
>> >> >> >> >> >> >>decoding
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >> >> >> >>Source)
>> >> >> >> >> >> >>         at
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >> >> >> >>         ... 30 more
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >> >> >> >> >> >>3B
>> >> >> >> >> >> >>
>> >> >> >> >> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
>> >> >> >> >> >> >>0
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>           The client side message seems to be ok, with 
>>all
>> >> >>the
>> >> >> >> >> >>encypted
>> >> >> >> >> >> >>document.
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>           Is there any idea what can cause the fault?
>> >>Greatly
>> >> >> >> >> >>appreciate,
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>          Wan
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >> >> >> >>To unsubscribe, e-mail: 
>>axis-user-unsubscribe@ws.apache.org
>> >> >> >> >> >> >>For additional commands, e-mail:
>> >>axis-user-help@ws.apache.org
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >--
>> >> >> >> >> >> >www.ruchith.org
>> >> >> >> >> >> >
>> >> >> >> >> >>
>> >> >> >>
>> >> >---------------------------------------------------------------------
>> >> >> >> >> >> >To unsubscribe, e-mail: 
>>axis-user-unsubscribe@ws.apache.org
>> >> >> >> >> >> >For additional commands, e-mail:
>> >>axis-user-help@ws.apache.org
>> >> >> >> >> >> >
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >> >>For additional commands, e-mail: 
>>axis-user-help@ws.apache.org
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >--
>> >> >> >> >> >www.ruchith.org
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> 
>> >---------------------------------------------------------------------
>> >> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >> >For additional commands, e-mail: 
>>axis-user-help@ws.apache.org
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >--
>> >> >> >> >www.ruchith.org
>> >> >> >> >
>> >> >> >>
>> >> >---------------------------------------------------------------------
>> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >www.ruchith.org
>> >> >> >
>> >> >> 
>> >---------------------------------------------------------------------
>> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

OK ... if you have the parameters set properly the the service method
will receive the decrypted xml and it should work properly.

Do u still get the same exception?

Thanks,
Ruchith

On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> yes, Ruchith
> my services.xml is look like this
>
> <service name="FileSecurity">
>         <description>
>                 This is my service for sending file over server-client with security
> setting
>         </description>
>         <parameter locked="false" name="ServiceClass">security.fileS</parameter>
>         <operation name="fileSecurity">
>                 <messageReceiver
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>         </operation>
>
>     <parameter name="InflowSecurity">
>       <action>
>         <items>Timestamp Signature Encrypt</items>
>         <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>         <signaturePropFile>sec.properties</signaturePropFile>
>       </action>
>     </parameter>
>
>     <parameter name="OutflowSecurity">
>       <action>
>         <items>Timestamp Signature Encrypt</items>
>         <user>bob</user>
>         <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>         <signaturePropFile>sec.properties</signaturePropFile>
>         <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>         <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>         <encryptionUser>alice</encryptionUser>
>
> <!--optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>-->
>       </action>
>     </parameter>
>
> </service>
>
>    Thank you very much,
>
>      Wan
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] send file with security
> >Date: Fri, 21 Jul 2006 17:31:19 +0530
> >
> >Hi Wan,
> >
> >Did you add the "inflowConfiguration" and "outflowConfiguration"
> >parameters into the services.xml file of the service?
> >
> >Adding <module ref="rampart" /> engages rampart ... but you have to
> >_configure_ rampart as with the two parameters mentioned above.
> >
> >Thanks,
> >Ruchith
> >
> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>Dear Ruchith,
> >>
> >>         I do have some update about the test, I have debugged it by
> >>printing
> >>the message which sent at the client side and also the arrived message at
> >>the server side and the both look exactly the same. However, while
> >>comparing
> >>it with TCPMon, the message is different. So we can conclude that on the
> >>TCPMon is the secured message and the code at client and server are the
> >>one
> >>before encrypted and after decrypted.
> >>
> >>        The server code is run fine until reach this line.
> >>
> >>        OMText fnode = (OMText)content.getFirstOMChild();
> >>
> >>        So i think the security module is working fine. I have no idea
> >>what
> >>is causing the fault.
> >>
> >>        Best regards,
> >>
> >>        Wan
> >>
> >>
> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >Date: Fri, 21 Jul 2006 16:01:48 +0530
> >> >
> >> >Hi Wan,
> >> >
> >> >Have you engaged and configured rampart properly at the service?
> >> >
> >> >If you have not engaged rampart at the service, ... the your
> >> >public OMElement fileSecurity(OMElement element) method will be fed
> >> >with  an OMElement which is the "EncryptedData" element.
> >> >
> >> >Can you debug and see whether the element you receive into the service
> >> >_with_ security is "EncryptedData"? If so you have not
> >> >engaged/configured rampart at the service.
> >> >
> >> >Thanks,
> >> >Ruchith
> >> >
> >> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >>Dear Ruchith,
> >> >>
> >> >>         I have tried put try-catch block in my service, the result
> >>thrown
> >> >>is
> >> >>the same. The same service code is working well with the sending file
> >> >>without the security issue. I have attached the service code with the
> >> >>email
> >> >>as well as the result thrown by TCPMon
> >> >>
> >> >>package security;
> >> >>
> >> >>import java.io.*;
> >> >>import java.util.Iterator;
> >> >>import org.apache.axiom.om.OMAbstractFactory;
> >> >>import org.apache.axiom.om.OMElement;
> >> >>import org.apache.axiom.om.OMFactory;
> >> >>import org.apache.axiom.om.OMNamespace;
> >> >>import org.apache.axiom.om.OMText;
> >> >>import org.apache.axis2.AxisFault;
> >> >>
> >> >>import javax.activation.DataHandler;
> >> >>//import javax.activation.FileDataSource;
> >> >>/**
> >> >>* @author alice3
> >> >>*
> >> >>* TODO To change the template for this generated type comment go to
> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >>*/
> >> >>public class fileS {
> >> >>
> >> >>         public OMElement fileSecurity(OMElement element) throws
> >>Exception
> >> >>         {
> >> >>                 //System.out.println(element);
> >> >>
> >> >>                 element.build();
> >> >>                 element.detach();
> >> >>
> >> >>                 //OMElement result;
> >> >>
> >> >>         try {
> >> >>
> >> >>             //result = (OMElement) method.invoke(obj, args);
> >> >>
> >> >>             Iterator children = element.getChildElements();
> >> >>
> >> >>                 OMElement name = (OMElement)children.next();
> >> >>//get name of the file,
> >> >>first element of element
> >> >>                 OMElement content = (OMElement)children.next();
> >>//get
> >> >>text that
> >> >>contains the file, second element
> >> >>
> >> >>                 System.out.println("before creating OMText");
> >> >>                 OMText fnode = (OMText)content.getFirstOMChild();
> >> >>                 System.out.println("after creating OMText");
> >> >>//              fnode.setOptimize(true);
> >> >>                 //String fname = name.getText();
> >> >>
> >> >>                 //create data handler to extract the data handler of
> >>the
> >> >>OMText
> >> >>                 DataHandler dfile;
> >> >>                 System.out.println("before getDataHandler from
> >>OMText");
> >> >>
> >> >>                 //String cid = fnode.getContentID();
> >> >>                 //System.out.println(cid);
> >> >>
> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
> >> >>//getDataHandler() and
> >> >>broken pipe
> >> >>
> >> >>                 System.out.println("after create datahandler for
> >> >>OMText");
> >> >>
> >> >>                 FileOutputStream outfile = new  FileOutputStream(new
> >> >>File("/users/alice3/myFile"));
> >> >>                 System.out.println("after create a fileoutputstream");
> >> >>                 dfile.writeTo(outfile);
> >> >>                 System.out.println("after writeTo()");
> >> >>
> >> >>                 //System.out.println("Successful Operation!");
> >> >>
> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >>             OMNamespace ns =
> >>fac.createOMNamespace("urn://fakenamespace",
> >> >>"ns");
> >> >>             OMElement ele = fac.createOMElement("response", ns);
> >> >>             ele.setText("Data Saved");
> >> >>             return ele;
> >> >>
> >> >>         } catch (Exception e) {
> >> >>
> >> >>             throw new AxisFault(e.getMessage());
> >> >>
> >> >>         }
> >> >>
> >> >>     }
> >> >>}
> >> >>
> >> >>          TCPMon:
> >> >>
> >> >>           HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
> >> >>Set-Cookie: JSESSIONID=2awjbkc0xv4ai;path=/axis2
> >> >>Content-Type: text/xml; charset=UTF-8
> >> >>Transfer-Encoding: chunked
> >> >>Server: Jetty(6.0.x)
> >> >>
> >> >>2BE
> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:C89C196EC8824AC14911534681397753</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo
> >> >>wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:B7D986D0DD96E9306611534681329361</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> >> >>22
> >> >><faultstring>unknown</faultstring>
> >> >>77A
> >> >><detail><Exception>org.apache.axis2.AxisFault
> >> >>         at
> >> >>org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
> >> >>         at
> >> >>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
> >> >>         at
> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
> >> >>         at
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >>         at
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >>         at
> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >>         at
> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >>         at
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >>         at
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >>         at
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >>         at
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >>         at
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >>         at
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >>         at
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >>         at
> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >>         at
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >>         at
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >></Exception></detail>
> >> >>32
> >> >></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> >> >>0
> >> >>
> >> >>        Regards,
> >> >>
> >> >>        Wan
> >> >>
> >> >>
> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >> >Reply-To: axis-user@ws.apache.org
> >> >> >To: axis-user@ws.apache.org
> >> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >> >Date: Fri, 21 Jul 2006 13:01:47 +0530
> >> >> >
> >> >> >Hi Wan,
> >> >> >
> >> >> >Looking at your stack trace it seems that there's something wrong
> >>with
> >> >> >your service. The exception is throw at the point where the service
> >> >> >method is invoked:
> >> >> >
> >> >> >                OMElement result;
> >> >> >
> >> >> >                try {
> >> >> >
> >> >> >                    result = (OMElement) method.invoke(obj, args);
> >> >> >
> >> >> >                } catch (Exception e) {
> >> >> >
> >> >> >                    throw new AxisFault(e.getMessage());
> >> >> >
> >> >> >                }
> >> >> >
> >> >> >Maybe the method is throwing an exception.
> >> >> >
> >> >> >Can you please check your service?
> >> >> >
> >> >> >Thanks,
> >> >> >Ruchith
> >> >> >
> >> >> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >>Dear Ruchith,
> >> >> >>
> >> >> >>          my mistake, my message receiver in services.xml is
> >> >> >>RAWXMLInOutMessageReceiver.
> >> >> >>          what should i do now?
> >> >> >>
> >> >> >>          Best regards,
> >> >> >>          Wan
> >> >> >>
> >> >> >>
> >> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >> >> >Reply-To: axis-user@ws.apache.org
> >> >> >> >To: axis-user@ws.apache.org
> >> >> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >> >> >Date: Thu, 20 Jul 2006 17:46:18 +0530
> >> >> >> >
> >> >> >> >Hi Wan,
> >> >> >> >
> >> >> >> >Can you also change
> >> >> >> ><parameter name="enableMTOM" locked="false">true</parameter>
> >> >> >> >to
> >> >> >> ><parameter name="enableMTOM" locked="false">false</parameter>
> >> >> >> >
> >> >> >> >in both axis2.xml s (client and server) and try again.
> >> >> >> >
> >> >> >> >And if this fails please send what you see in tcpmon and the
> >> >>exception.
> >> >> >> >
> >> >> >> >Thanks,
> >> >> >> >Ruchith
> >> >> >> >
> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >> >>Thank you Ruchith,
> >> >> >> >>
> >> >> >> >>        I have made change as your advice. However, i still got
> >>the
> >> >> >>same
> >> >> >> >>error...
> >> >> >> >>
> >> >> >> >>        Any other possibility?
> >> >> >> >>
> >> >> >> >>        Best regards,
> >> >> >> >>
> >> >> >> >>         Wan
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >> >> >> >Reply-To: axis-user@ws.apache.org
> >> >> >> >> >To: axis-user@ws.apache.org
> >> >> >> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >> >> >> >Date: Thu, 20 Jul 2006 16:09:23 +0530
> >> >> >> >> >
> >> >> >> >> >Yes from your services.xml and the client's axis2.xml
> >> >> >> >> >
> >> >> >> >> >Thanks,
> >> >> >> >> >Ruchith
> >> >> >> >> >
> >> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >> >> >>Dear Ruchith,
> >> >> >> >> >>
> >> >> >> >> >>    you means
> >> >> >> >> >>remove :
> >> >> >> >>
> >> >> >>
> >> >>
> >> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >> >> >>
> >> >> >> >> >>     from my services.xml right? or other place?
> >> >> >> >> >>
> >> >> >> >> >>     Wan
> >> >> >> >> >>
> >> >> >> >> >> >
> >> >> >> >> >> >Hi Wan,
> >> >> >> >> >> >
> >> >> >> >> >> >Please remove :
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >> >> >> >
> >> >> >> >> >> >entry from your rampart configuration parameters and try
> >>again.
> >> >> >> >> >> >
> >> >> >> >> >> >Thanks,
> >> >> >> >> >> >Ruchith
> >> >> >> >> >> >
> >> >> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >> >> >> >>Dear All,
> >> >> >> >> >> >>
> >> >> >> >> >> >>        I have been trying to combine the test about
> >>sending
> >> >>file
> >> >> >> >>and
> >> >> >> >> >> >>securing message.
> >> >> >> >> >> >>        My environment is Axis2 v1.0, nightly build
> >>released 4
> >> >> >>June
> >> >> >> >>06
> >> >> >> >> >>on
> >> >> >> >> >> >>the
> >> >> >> >> >> >>Jetty Servlet.
> >> >> >> >> >> >>
> >> >> >> >> >> >>        From other individual test such as sending text
> >>file,
> >> >>and
> >> >> >> >> >>security
> >> >> >> >> >> >>sample had no problem on this, however with the combination
> >> >>one i
> >> >> >> >>got
> >> >> >> >> >>the
> >> >> >> >> >> >>following error.
> >> >> >> >> >> >>
> >> >> >> >> >> >>        Client code:
> >> >> >> >> >> >>
> >> >> >> >> >> >>/*
> >> >> >> >> >> >>* Created on 19.07.2006
> >> >> >> >> >> >>*
> >> >> >> >> >> >>* TODO To change the template for this generated file go to
> >> >> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >> >> >> >> >>*/
> >> >> >> >> >> >>package security;
> >> >> >> >> >> >>
> >> >> >> >> >> >>/**
> >> >> >> >> >> >>* @author alice3
> >> >> >> >> >> >>*
> >> >> >> >> >> >>* TODO To change the template for this generated type
> >>comment
> >> >>go
> >> >> >>to
> >> >> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >> >> >> >> >>*/
> >> >> >> >> >> >>
> >> >> >> >> >> >>import org.apache.axiom.om.OMAbstractFactory;
> >> >> >> >> >> >>import org.apache.axiom.om.OMElement;
> >> >> >> >> >> >>import org.apache.axiom.om.OMFactory;
> >> >> >> >> >> >>import org.apache.axiom.om.OMNamespace;
> >> >> >> >> >> >>import org.apache.axiom.om.OMText;
> >> >> >> >> >> >>import org.apache.axis2.AxisFault;
> >> >> >> >> >> >>import org.apache.axis2.Constants;
> >> >> >> >> >> >>import org.apache.axis2.addressing.EndpointReference;
> >> >> >> >> >> >>import org.apache.axis2.client.Options;
> >> >> >> >> >> >>import org.apache.axis2.client.ServiceClient;
> >> >> >> >> >> >>import org.apache.axis2.context.ConfigurationContext;
> >> >> >> >> >> >>import
> >>org.apache.axis2.context.ConfigurationContextFactory;
> >> >> >> >> >> >>
> >> >> >> >> >> >>//import org.apache.axis2.soapmonitor.*;
> >> >> >> >> >> >>
> >> >> >> >> >> >>import javax.activation.DataHandler;
> >> >> >> >> >> >>import javax.activation.FileDataSource;
> >> >> >> >> >> >>import javax.xml.namespace.QName;
> >> >> >> >> >> >>import javax.xml.stream.XMLOutputFactory;
> >> >> >> >> >> >>import javax.xml.stream.XMLStreamException;
> >> >> >> >> >> >>
> >> >> >> >> >> >>import java.io.File;
> >> >> >> >> >> >>import java.io.StringWriter;
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>public class SecureClient {
> >> >> >> >> >> >>
> >> >> >> >> >> >>     private File inputFile = null;
> >> >> >> >> >> >>
> >> >> >> >> >> >>     private QName operationName = new
> >>QName("fileSecurity");
> >> >> >> >> >> >>
> >> >> >> >> >> >>     public static void main(String[] args) {
> >> >> >> >> >> >>
> >> >> >> >> >> >>         try {
> >> >> >> >> >> >>
> >> >> >> >> >> >>             // Get the repository location from the args
> >> >> >> >> >> >>             String repo = args[0];
> >> >> >> >> >> >>             String port = args[1];
> >> >> >> >> >> >>
> >> >> >> >> >> >>             OMElement payload =
> >> >> >> >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >> >> >> >> >> >>             ConfigurationContext configContext =
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> >> >> >> >> >> >>null);
> >> >> >> >> >> >>             ServiceClient serviceClient = new
> >> >> >> >> >> >>ServiceClient(configContext,
> >> >> >> >> >> >>null);
> >> >> >> >> >> >>             Options options = new Options();
> >> >> >> >> >> >>             options.setTo(new
> >> >> >>EndpointReference("http://127.0.0.1:"
> >> >> >> >>+
> >> >> >> >> >> >>port +
> >> >> >> >> >> >>"/axis2/services/FileSecurity"));
> >> >> >> >> >> >>             //options.setTo(new
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
> >> >> >> >> >> >>
> >> >> >> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >> >> >> >> >>
> >> >> >> >>options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >> >> >> >> >>Constants.VALUE_TRUE);
> >> >> >> >> >> >>             options.setAction("urn:fileSecurity");
> >> >> >> >> >> >>             serviceClient.setOptions(options);
> >> >> >> >> >> >>
> >> >> >> >> >> >>             //Blocking invocation
> >> >> >> >> >> >>             OMElement result =
> >> >> >>serviceClient.sendReceive(payload);
> >> >> >> >> >> >>
> >> >> >> >> >> >>             StringWriter writer = new StringWriter();
> >> >> >> >> >> >>
> >>result.serialize(XMLOutputFactory.newInstance()
> >> >> >> >> >> >>                     .createXMLStreamWriter(writer));
> >> >> >> >> >> >>             writer.flush();
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>            //System.out.println("Response: " +
> >> >> >>writer.toString());
> >> >> >> >> >> >>
> >> >> >> >> >> >>             System.out.println("SecureService Invocation
> >> >> >>successful
> >> >> >> >> >> >>:-)");
> >> >> >> >> >> >>         } catch (AxisFault axisFault) {
> >> >> >> >> >> >>             axisFault.printStackTrace();
> >> >> >> >> >> >>         } catch (XMLStreamException e) {
> >> >> >> >> >> >>             e.printStackTrace();
> >> >> >> >> >> >>         }
> >> >> >> >> >> >>     }
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>     private static OMElement getEchoElement(String
> >>fileName)
> >> >>{
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>         DataHandler dh;
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 OMFactory fac =
> >> >> >>OMAbstractFactory.getOMFactory();
> >> >> >> >> >> >>             OMNamespace omNs =
> >> >> >> >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
> >> >> >>"example1");
> >> >> >> >> >> >>
> >> >> >> >> >> >>         OMElement data =
> >>fac.createOMElement("fileSecurity",
> >> >> >>omNs);
> >> >> >> >> >> >>         OMElement input = fac.createOMElement("file",
> >>omNs);
> >> >> >> >> >> >>             OMElement pack = fac.createOMElement("pack",
> >> >>omNs);
> >> >> >> >> >> >>
> >> >> >> >> >> >>             FileDataSource f1 = new
> >>FileDataSource(fileName);
> >> >> >> >> >> >>         dh = new DataHandler(f1);
> >> >> >> >> >> >>
> >> >> >> >> >> >>         OMElement filename =
> >>fac.createOMElement("fileName",
> >> >> >>omNs);
> >> >> >> >> >> >>        // OMText textName = fac.createOMText(filename,
> >> >> >> >>"myFile.txt");
> >> >> >> >> >> >>
> >> >> >> >> >> >>         OMText textData = fac.createOMText(dh, true);
> >> >> >> >> >> >>
> >> >> >> >> >> >>         input.addChild(textData);
> >> >> >> >> >> >>
> >> >> >> >> >> >>         pack.addChild(filename);
> >> >> >> >> >> >>         pack.addChild(input);
> >> >> >> >> >> >>         data.addChild(pack);
> >> >> >> >> >> >>
> >> >> >> >> >> >>         //System.out.println(data);
> >> >> >> >> >> >>
> >> >> >> >> >> >>              return data;
> >> >> >> >> >> >>         }
> >> >> >> >> >> >>}
> >> >> >> >> >> >>
> >> >> >> >> >> >>         server code:
> >> >> >> >> >> >>
> >> >> >> >> >> >>public class fileS {
> >> >> >> >> >> >>
> >> >> >> >> >> >>         public OMElement fileSecurity(OMElement element)
> >> >>throws
> >> >> >> >> >>Exception
> >> >> >> >> >> >>         {
> >> >> >> >> >> >>                 //System.out.println(element);
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 element.build();
> >> >> >> >> >> >>                 element.detach();
> >> >> >> >> >> >>
> >> >> >> >> >> >>             Iterator children =
> >>element.getChildElements();
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 OMElement name =
> >>(OMElement)children.next();
> >> >> >> >> >> >>//get name of the file,
> >> >> >> >> >> >>first element of element
> >> >> >> >> >> >>                 OMElement content =
> >> >>(OMElement)children.next();
> >> >> >> >> >>//get
> >> >> >> >> >> >>text that
> >> >> >> >> >> >>contains the file, second element
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 System.out.println("before creating
> >>OMText");
> >> >> >> >> >> >>                 OMText fnode =
> >> >> >>(OMText)content.getFirstOMChild();
> >> >> >> >> >> >>                 System.out.println("after creating
> >>OMText");
> >> >> >> >> >> >>//              fnode.setOptimize(true);
> >> >> >> >> >> >>                 //String fname = name.getText();
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 //create data handler to extract the data
> >> >> >>handler
> >> >> >> >>of
> >> >> >> >> >>the
> >> >> >> >> >> >>OMText
> >> >> >> >> >> >>                 DataHandler dfile;
> >> >> >> >> >> >>                 System.out.println("before getDataHandler
> >> >>from
> >> >> >> >> >>OMText");
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 //String cid = fnode.getContentID();
> >> >> >> >> >> >>                 //System.out.println(cid);
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 dfile =
> >>(DataHandler)fnode.getDataHandler();
> >> >> >> >> >> >>//getDataHandler() and
> >> >> >> >> >> >>broken pipe
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 System.out.println("after create
> >>datahandler
> >> >>for
> >> >> >> >> >> >>OMText");
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 FileOutputStream outfile = new
> >> >> >> >>FileOutputStream(new
> >> >> >> >> >> >>File("/users/alice3/myFile"));
> >> >> >> >> >> >>                 System.out.println("after create a
> >> >> >> >>fileoutputstream");
> >> >> >> >> >> >>                 dfile.writeTo(outfile);
> >> >> >> >> >> >>                 System.out.println("after writeTo()");
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 //System.out.println("Successful
> >> >>Operation!");
> >> >> >> >> >> >>
> >> >> >> >> >> >>                 OMFactory fac =
> >> >> >>OMAbstractFactory.getOMFactory();
> >> >> >> >> >> >>         OMNamespace ns =
> >> >> >> >>fac.createOMNamespace("urn://fakenamespace",
> >> >> >> >> >> >>"ns");
> >> >> >> >> >> >>         OMElement ele = fac.createOMElement("response",
> >>ns);
> >> >> >> >> >> >>         ele.setText("Data Saved");
> >> >> >> >> >> >>         return ele;
> >> >> >> >> >> >>
> >> >> >> >> >> >>         }
> >> >> >> >> >> >>
> >> >> >> >> >> >>}
> >> >> >> >> >> >>
> >> >> >> >> >> >>        services.xml:
> >> >> >> >> >> >>
> >> >> >> >> >> >><service name="FileSecurity" >
> >> >> >> >> >> >>   <description>
> >> >> >> >> >> >>                 This is my service for sending file over
> >> >> >> >>server-client
> >> >> >> >> >> >>with security
> >> >> >> >> >> >>setting
> >> >> >> >> >> >>         </description>
> >> >> >> >> >> >>   <parameter locked="false" name="ServiceClass"
> >> >> >> >> >> >> >security.fileS</parameter>
> >> >> >> >> >> >>   <operation name="fileSecurity" >
> >> >> >> >> >> >>     <messageReceiver
> >> >> >> >> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"
> >>/>
> >> >> >> >> >> >>   </operation>
> >> >> >> >> >> >>   <parameter name="InflowSecurity" >
> >> >> >> >> >> >>     <action>
> >> >> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >> >> >> >> >>
> >> >> >> >>
> >> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >> >> >> >> >>
> >><signaturePropFile>sec.properties</signaturePropFile>
> >> >> >> >> >> >>     </action>
> >> >> >> >> >> >>   </parameter>
> >> >> >> >> >> >>   <parameter name="OutflowSecurity" >
> >> >> >> >> >> >>     <action>
> >> >> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >> >> >> >> >>       <user>bob</user>
> >> >> >> >> >> >>
> >> >> >> >>
> >> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >> >> >> >> >>
> >><signaturePropFile>sec.properties</signaturePropFile>
> >> >> >> >> >> >>
> >> >> >> >>
> >> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
> >> >> >> >> >> >>
> >> >> >> >>
> >> >> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
> >> >> >> >> >> >>       <encryptionUser>alice</encryptionUser>
> >> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >> >> >> >>     </action>
> >> >> >> >> >> >>   </parameter>
> >> >> >> >> >> >></service>
> >> >> >> >> >> >>
> >> >> >> >> >> >>          and the .aar package is constucted as follow
> >> >> >> >> >> >>
> >> >> >> >> >> >>         security/
> >> >> >> >> >> >>                 security/PWCallback.class
> >> >> >> >> >> >>                 security/fileS.class
> >> >> >> >> >> >>         META-INF/
> >> >> >> >> >> >>                 META-INF/services.xml
> >> >> >> >> >> >>         sec.jks
> >> >> >> >> >> >>         sec.properties
> >> >> >> >> >> >>
> >> >> >> >> >> >>      and the result i get from the TCPMON is that at the
> >> >>server
> >> >> >> >>side
> >> >> >> >> >> >>
> >> >> >> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> >> >> >> >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
> >> >> >> >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
> >> >> >> >> >> >>Content-Type: multipart/related;
> >> >> >> >> >>
> >> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
> >> >> >> >> >> >>type="application/xop+xml";
> >> >> >> >> >>
> >> >> >>start="<0....@apache.org>";
> >> >> >> >> >> >>start-info="text/xml"; charset=UTF-8
> >> >> >> >> >> >>Transfer-Encoding: chunked
> >> >> >> >> >> >>Server: Jetty(6.0.x)
> >> >> >> >> >> >>
> >> >> >> >> >> >>2DA
> >> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
> >> >>type="text/xml";
> >> >> >> >> >> >>content-transfer-encoding:binary
> >> >> >> >> >>
> >> >> >>
> >> >>content-id:<0....@apache.org>
> >> >> >> >> >> >>
> >> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> >> >> >> >> >> >>35B
> >> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
> >> >>type="text/xml";
> >> >> >> >> >> >>content-transfer-encoding:binary
> >> >> >> >> >>
> >> >> >>
> >> >>content-id:<0....@apache.org>
> >> >> >> >> >> >>
> >> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >> >> >> >>security processing failed</faultstring>
> >> >> >> >> >> >>1383
> >> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
> >> >>type="text/xml";
> >> >> >> >> >> >>content-transfer-encoding:binary
> >> >> >> >> >>
> >> >> >>
> >> >>content-id:<0....@apache.org>
> >> >> >> >> >> >>
> >> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >> >> >> >>security processing
> >> >> >> >> >>
> >> >> >>
> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >> >> >> >> >>WSDoAllReceiver: security processing failed; nested
> >>exception
> >> >>is:
> >> >> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >> >> >>encrypt/decrypt data;
> >> >> >> >> >> >>nested exception is:
> >> >> >> >> >> >>
> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >> >>Error
> >> >> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>Original Exception was
> >> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >> >>Error
> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >> >> >> >> >>         at
> >> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >> >> >> >> >>         at
> >> >> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >> >> >> >> >>         at
> >> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >> >> >> >> >>         at
> >> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >> >> >> >> >>         at
> >>org.mortbay.jetty.Server.handle(Server.java:245)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>
> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >> >> >> >> >>         at
> >> >> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException:
> >>Cannot
> >> >> >> >> >> >>encrypt/decrypt data; nested exception is:
> >> >> >> >> >> >>
> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >> >>Error
> >> >> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>Original Exception was
> >> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >> >>Error
> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >> >> >> >> >>         ... 24 more
> >> >> >> >> >> >>Caused by:
> >> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >> >> >>Error
> >> >> >> >> >> >>while decoding
> >> >> >> >> >> >>Original Exception was
> >> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >> >>Error
> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >> >> >> >> >>         ... 30 more
> >> >> >> >> >> >></Exception></detail>
> >> >> >> >> >> >>13B5
> >> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
> >> >>type="text/xml";
> >> >> >> >> >> >>content-transfer-encoding:binary
> >> >> >> >> >>
> >> >> >>
> >> >>content-id:<0....@apache.org>
> >> >> >> >> >> >>
> >> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >> >> >> >>security processing
> >> >> >> >> >>
> >> >> >>
> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >> >> >> >> >>WSDoAllReceiver: security processing failed; nested
> >>exception
> >> >>is:
> >> >> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >> >> >>encrypt/decrypt data;
> >> >> >> >> >> >>nested exception is:
> >> >> >> >> >> >>
> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >> >>Error
> >> >> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>Original Exception was
> >> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >> >>Error
> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >> >> >> >> >>         at
> >> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >> >> >> >> >>         at
> >> >> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >> >> >> >> >>         at
> >> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >> >> >> >> >>         at
> >> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >> >> >> >> >>         at
> >>org.mortbay.jetty.Server.handle(Server.java:245)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>
> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >> >> >> >> >>         at
> >> >> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException:
> >>Cannot
> >> >> >> >> >> >>encrypt/decrypt data; nested exception is:
> >> >> >> >> >> >>
> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >> >>Error
> >> >> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>Original Exception was
> >> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >> >>Error
> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >> >> >> >> >>         ... 24 more
> >> >> >> >> >> >>Caused by:
> >> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >> >> >>Error
> >> >> >> >> >> >>while decoding
> >> >> >> >> >> >>Original Exception was
> >> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >> >>Error
> >> >> >> >>while
> >> >> >> >> >> >>decoding
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >> >> >> >> >>Source)
> >> >> >> >> >> >>         at
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >> >> >> >> >>         ... 30 more
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> >> >> >> >> >> >>3B
> >> >> >> >> >> >>
> >> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
> >> >> >> >> >> >>0
> >> >> >> >> >> >>
> >> >> >> >> >> >>           The client side message seems to be ok, with all
> >> >>the
> >> >> >> >> >>encypted
> >> >> >> >> >> >>document.
> >> >> >> >> >> >>
> >> >> >> >> >> >>           Is there any idea what can cause the fault?
> >>Greatly
> >> >> >> >> >>appreciate,
> >> >> >> >> >> >>
> >> >> >> >> >> >>          Wan
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >> >> >>For additional commands, e-mail:
> >>axis-user-help@ws.apache.org
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >--
> >> >> >> >> >> >www.ruchith.org
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >>
> >> >---------------------------------------------------------------------
> >> >> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >> >> >For additional commands, e-mail:
> >>axis-user-help@ws.apache.org
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >--
> >> >> >> >> >www.ruchith.org
> >> >> >> >> >
> >> >> >> >>
> >> >> >---------------------------------------------------------------------
> >> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >--
> >> >> >> >www.ruchith.org
> >> >> >> >
> >> >> >>
> >> >---------------------------------------------------------------------
> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> >--
> >> >> >www.ruchith.org
> >> >> >
> >> >> >---------------------------------------------------------------------
> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >www.ruchith.org
> >> >
> >> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
yes, Ruchith
my services.xml is look like this

<service name="FileSecurity">
	<description>
		This is my service for sending file over server-client with security 
setting
	</description>
	<parameter locked="false" name="ServiceClass">security.fileS</parameter>
	<operation name="fileSecurity">
		<messageReceiver 
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
	</operation>

    <parameter name="InflowSecurity">
      <action>
        <items>Timestamp Signature Encrypt</items>
        <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
        <signaturePropFile>sec.properties</signaturePropFile>
      </action>
    </parameter>

    <parameter name="OutflowSecurity">
      <action>
        <items>Timestamp Signature Encrypt</items>
        <user>bob</user>
        <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
        <signaturePropFile>sec.properties</signaturePropFile>
        <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
        <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
        <encryptionUser>alice</encryptionUser>
        
<!--optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>-->
      </action>
    </parameter>

</service>

   Thank you very much,

     Wan


>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Fri, 21 Jul 2006 17:31:19 +0530
>
>Hi Wan,
>
>Did you add the "inflowConfiguration" and "outflowConfiguration"
>parameters into the services.xml file of the service?
>
>Adding <module ref="rampart" /> engages rampart ... but you have to
>_configure_ rampart as with the two parameters mentioned above.
>
>Thanks,
>Ruchith
>
>On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Dear Ruchith,
>>
>>         I do have some update about the test, I have debugged it by 
>>printing
>>the message which sent at the client side and also the arrived message at
>>the server side and the both look exactly the same. However, while 
>>comparing
>>it with TCPMon, the message is different. So we can conclude that on the
>>TCPMon is the secured message and the code at client and server are the 
>>one
>>before encrypted and after decrypted.
>>
>>        The server code is run fine until reach this line.
>>
>>        OMText fnode = (OMText)content.getFirstOMChild();
>>
>>        So i think the security module is working fine. I have no idea 
>>what
>>is causing the fault.
>>
>>        Best regards,
>>
>>        Wan
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Fri, 21 Jul 2006 16:01:48 +0530
>> >
>> >Hi Wan,
>> >
>> >Have you engaged and configured rampart properly at the service?
>> >
>> >If you have not engaged rampart at the service, ... the your
>> >public OMElement fileSecurity(OMElement element) method will be fed
>> >with  an OMElement which is the "EncryptedData" element.
>> >
>> >Can you debug and see whether the element you receive into the service
>> >_with_ security is "EncryptedData"? If so you have not
>> >engaged/configured rampart at the service.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>Dear Ruchith,
>> >>
>> >>         I have tried put try-catch block in my service, the result 
>>thrown
>> >>is
>> >>the same. The same service code is working well with the sending file
>> >>without the security issue. I have attached the service code with the
>> >>email
>> >>as well as the result thrown by TCPMon
>> >>
>> >>package security;
>> >>
>> >>import java.io.*;
>> >>import java.util.Iterator;
>> >>import org.apache.axiom.om.OMAbstractFactory;
>> >>import org.apache.axiom.om.OMElement;
>> >>import org.apache.axiom.om.OMFactory;
>> >>import org.apache.axiom.om.OMNamespace;
>> >>import org.apache.axiom.om.OMText;
>> >>import org.apache.axis2.AxisFault;
>> >>
>> >>import javax.activation.DataHandler;
>> >>//import javax.activation.FileDataSource;
>> >>/**
>> >>* @author alice3
>> >>*
>> >>* TODO To change the template for this generated type comment go to
>> >>* Window - Preferences - Java - Code Style - Code Templates
>> >>*/
>> >>public class fileS {
>> >>
>> >>         public OMElement fileSecurity(OMElement element) throws 
>>Exception
>> >>         {
>> >>                 //System.out.println(element);
>> >>
>> >>                 element.build();
>> >>                 element.detach();
>> >>
>> >>                 //OMElement result;
>> >>
>> >>         try {
>> >>
>> >>             //result = (OMElement) method.invoke(obj, args);
>> >>
>> >>             Iterator children = element.getChildElements();
>> >>
>> >>                 OMElement name = (OMElement)children.next();
>> >>//get name of the file,
>> >>first element of element
>> >>                 OMElement content = (OMElement)children.next();     
>>//get
>> >>text that
>> >>contains the file, second element
>> >>
>> >>                 System.out.println("before creating OMText");
>> >>                 OMText fnode = (OMText)content.getFirstOMChild();
>> >>                 System.out.println("after creating OMText");
>> >>//              fnode.setOptimize(true);
>> >>                 //String fname = name.getText();
>> >>
>> >>                 //create data handler to extract the data handler of 
>>the
>> >>OMText
>> >>                 DataHandler dfile;
>> >>                 System.out.println("before getDataHandler from 
>>OMText");
>> >>
>> >>                 //String cid = fnode.getContentID();
>> >>                 //System.out.println(cid);
>> >>
>> >>                 dfile = (DataHandler)fnode.getDataHandler();
>> >>//getDataHandler() and
>> >>broken pipe
>> >>
>> >>                 System.out.println("after create datahandler for
>> >>OMText");
>> >>
>> >>                 FileOutputStream outfile = new  FileOutputStream(new
>> >>File("/users/alice3/myFile"));
>> >>                 System.out.println("after create a fileoutputstream");
>> >>                 dfile.writeTo(outfile);
>> >>                 System.out.println("after writeTo()");
>> >>
>> >>                 //System.out.println("Successful Operation!");
>> >>
>> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>> >>             OMNamespace ns = 
>>fac.createOMNamespace("urn://fakenamespace",
>> >>"ns");
>> >>             OMElement ele = fac.createOMElement("response", ns);
>> >>             ele.setText("Data Saved");
>> >>             return ele;
>> >>
>> >>         } catch (Exception e) {
>> >>
>> >>             throw new AxisFault(e.getMessage());
>> >>
>> >>         }
>> >>
>> >>     }
>> >>}
>> >>
>> >>          TCPMon:
>> >>
>> >>           HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >>Set-Cookie: JSESSIONID=2awjbkc0xv4ai;path=/axis2
>> >>Content-Type: text/xml; charset=UTF-8
>> >>Transfer-Encoding: chunked
>> >>Server: Jetty(6.0.x)
>> >>
>> >>2BE
>> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:C89C196EC8824AC14911534681397753</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo
>> >>wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:B7D986D0DD96E9306611534681329361</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >>22
>> >><faultstring>unknown</faultstring>
>> >>77A
>> >><detail><Exception>org.apache.axis2.AxisFault
>> >>         at
>> >>org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
>> >>         at
>> >>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>> >>         at
>> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
>> >>         at
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >>         at
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >>         at 
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >>         at 
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >>         at
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >>         at
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >>         at
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >>         at
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >>         at
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >>         at
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >>         at
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >>         at
>> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >>         at
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >>         at
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >></Exception></detail>
>> >>32
>> >></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >>0
>> >>
>> >>        Regards,
>> >>
>> >>        Wan
>> >>
>> >>
>> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >Reply-To: axis-user@ws.apache.org
>> >> >To: axis-user@ws.apache.org
>> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >Date: Fri, 21 Jul 2006 13:01:47 +0530
>> >> >
>> >> >Hi Wan,
>> >> >
>> >> >Looking at your stack trace it seems that there's something wrong 
>>with
>> >> >your service. The exception is throw at the point where the service
>> >> >method is invoked:
>> >> >
>> >> >                OMElement result;
>> >> >
>> >> >                try {
>> >> >
>> >> >                    result = (OMElement) method.invoke(obj, args);
>> >> >
>> >> >                } catch (Exception e) {
>> >> >
>> >> >                    throw new AxisFault(e.getMessage());
>> >> >
>> >> >                }
>> >> >
>> >> >Maybe the method is throwing an exception.
>> >> >
>> >> >Can you please check your service?
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >>Dear Ruchith,
>> >> >>
>> >> >>          my mistake, my message receiver in services.xml is
>> >> >>RAWXMLInOutMessageReceiver.
>> >> >>          what should i do now?
>> >> >>
>> >> >>          Best regards,
>> >> >>          Wan
>> >> >>
>> >> >>
>> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >> >Reply-To: axis-user@ws.apache.org
>> >> >> >To: axis-user@ws.apache.org
>> >> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >> >Date: Thu, 20 Jul 2006 17:46:18 +0530
>> >> >> >
>> >> >> >Hi Wan,
>> >> >> >
>> >> >> >Can you also change
>> >> >> ><parameter name="enableMTOM" locked="false">true</parameter>
>> >> >> >to
>> >> >> ><parameter name="enableMTOM" locked="false">false</parameter>
>> >> >> >
>> >> >> >in both axis2.xml s (client and server) and try again.
>> >> >> >
>> >> >> >And if this fails please send what you see in tcpmon and the
>> >>exception.
>> >> >> >
>> >> >> >Thanks,
>> >> >> >Ruchith
>> >> >> >
>> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >>Thank you Ruchith,
>> >> >> >>
>> >> >> >>        I have made change as your advice. However, i still got 
>>the
>> >> >>same
>> >> >> >>error...
>> >> >> >>
>> >> >> >>        Any other possibility?
>> >> >> >>
>> >> >> >>        Best regards,
>> >> >> >>
>> >> >> >>         Wan
>> >> >> >>
>> >> >> >>
>> >> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >> >> >Reply-To: axis-user@ws.apache.org
>> >> >> >> >To: axis-user@ws.apache.org
>> >> >> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >> >> >Date: Thu, 20 Jul 2006 16:09:23 +0530
>> >> >> >> >
>> >> >> >> >Yes from your services.xml and the client's axis2.xml
>> >> >> >> >
>> >> >> >> >Thanks,
>> >> >> >> >Ruchith
>> >> >> >> >
>> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >> >>Dear Ruchith,
>> >> >> >> >>
>> >> >> >> >>    you means
>> >> >> >> >>remove :
>> >> >> >>
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >>
>> >> >> >> >>     from my services.xml right? or other place?
>> >> >> >> >>
>> >> >> >> >>     Wan
>> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >Hi Wan,
>> >> >> >> >> >
>> >> >> >> >> >Please remove :
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >> >
>> >> >> >> >> >entry from your rampart configuration parameters and try 
>>again.
>> >> >> >> >> >
>> >> >> >> >> >Thanks,
>> >> >> >> >> >Ruchith
>> >> >> >> >> >
>> >> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >> >> >>Dear All,
>> >> >> >> >> >>
>> >> >> >> >> >>        I have been trying to combine the test about 
>>sending
>> >>file
>> >> >> >>and
>> >> >> >> >> >>securing message.
>> >> >> >> >> >>        My environment is Axis2 v1.0, nightly build 
>>released 4
>> >> >>June
>> >> >> >>06
>> >> >> >> >>on
>> >> >> >> >> >>the
>> >> >> >> >> >>Jetty Servlet.
>> >> >> >> >> >>
>> >> >> >> >> >>        From other individual test such as sending text 
>>file,
>> >>and
>> >> >> >> >>security
>> >> >> >> >> >>sample had no problem on this, however with the combination
>> >>one i
>> >> >> >>got
>> >> >> >> >>the
>> >> >> >> >> >>following error.
>> >> >> >> >> >>
>> >> >> >> >> >>        Client code:
>> >> >> >> >> >>
>> >> >> >> >> >>/*
>> >> >> >> >> >>* Created on 19.07.2006
>> >> >> >> >> >>*
>> >> >> >> >> >>* TODO To change the template for this generated file go to
>> >> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >> >> >> >>*/
>> >> >> >> >> >>package security;
>> >> >> >> >> >>
>> >> >> >> >> >>/**
>> >> >> >> >> >>* @author alice3
>> >> >> >> >> >>*
>> >> >> >> >> >>* TODO To change the template for this generated type 
>>comment
>> >>go
>> >> >>to
>> >> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >> >> >> >>*/
>> >> >> >> >> >>
>> >> >> >> >> >>import org.apache.axiom.om.OMAbstractFactory;
>> >> >> >> >> >>import org.apache.axiom.om.OMElement;
>> >> >> >> >> >>import org.apache.axiom.om.OMFactory;
>> >> >> >> >> >>import org.apache.axiom.om.OMNamespace;
>> >> >> >> >> >>import org.apache.axiom.om.OMText;
>> >> >> >> >> >>import org.apache.axis2.AxisFault;
>> >> >> >> >> >>import org.apache.axis2.Constants;
>> >> >> >> >> >>import org.apache.axis2.addressing.EndpointReference;
>> >> >> >> >> >>import org.apache.axis2.client.Options;
>> >> >> >> >> >>import org.apache.axis2.client.ServiceClient;
>> >> >> >> >> >>import org.apache.axis2.context.ConfigurationContext;
>> >> >> >> >> >>import 
>>org.apache.axis2.context.ConfigurationContextFactory;
>> >> >> >> >> >>
>> >> >> >> >> >>//import org.apache.axis2.soapmonitor.*;
>> >> >> >> >> >>
>> >> >> >> >> >>import javax.activation.DataHandler;
>> >> >> >> >> >>import javax.activation.FileDataSource;
>> >> >> >> >> >>import javax.xml.namespace.QName;
>> >> >> >> >> >>import javax.xml.stream.XMLOutputFactory;
>> >> >> >> >> >>import javax.xml.stream.XMLStreamException;
>> >> >> >> >> >>
>> >> >> >> >> >>import java.io.File;
>> >> >> >> >> >>import java.io.StringWriter;
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>public class SecureClient {
>> >> >> >> >> >>
>> >> >> >> >> >>     private File inputFile = null;
>> >> >> >> >> >>
>> >> >> >> >> >>     private QName operationName = new 
>>QName("fileSecurity");
>> >> >> >> >> >>
>> >> >> >> >> >>     public static void main(String[] args) {
>> >> >> >> >> >>
>> >> >> >> >> >>         try {
>> >> >> >> >> >>
>> >> >> >> >> >>             // Get the repository location from the args
>> >> >> >> >> >>             String repo = args[0];
>> >> >> >> >> >>             String port = args[1];
>> >> >> >> >> >>
>> >> >> >> >> >>             OMElement payload =
>> >> >> >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >> >> >> >> >>             ConfigurationContext configContext =
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >> >> >> >> >>null);
>> >> >> >> >> >>             ServiceClient serviceClient = new
>> >> >> >> >> >>ServiceClient(configContext,
>> >> >> >> >> >>null);
>> >> >> >> >> >>             Options options = new Options();
>> >> >> >> >> >>             options.setTo(new
>> >> >>EndpointReference("http://127.0.0.1:"
>> >> >> >>+
>> >> >> >> >> >>port +
>> >> >> >> >> >>"/axis2/services/FileSecurity"));
>> >> >> >> >> >>             //options.setTo(new
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>> >> >> >> >> >>
>> >> >> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> >> >> >> >>
>> >> >> >>options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >> >> >> >> >>Constants.VALUE_TRUE);
>> >> >> >> >> >>             options.setAction("urn:fileSecurity");
>> >> >> >> >> >>             serviceClient.setOptions(options);
>> >> >> >> >> >>
>> >> >> >> >> >>             //Blocking invocation
>> >> >> >> >> >>             OMElement result =
>> >> >>serviceClient.sendReceive(payload);
>> >> >> >> >> >>
>> >> >> >> >> >>             StringWriter writer = new StringWriter();
>> >> >> >> >> >>             
>>result.serialize(XMLOutputFactory.newInstance()
>> >> >> >> >> >>                     .createXMLStreamWriter(writer));
>> >> >> >> >> >>             writer.flush();
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>            //System.out.println("Response: " +
>> >> >>writer.toString());
>> >> >> >> >> >>
>> >> >> >> >> >>             System.out.println("SecureService Invocation
>> >> >>successful
>> >> >> >> >> >>:-)");
>> >> >> >> >> >>         } catch (AxisFault axisFault) {
>> >> >> >> >> >>             axisFault.printStackTrace();
>> >> >> >> >> >>         } catch (XMLStreamException e) {
>> >> >> >> >> >>             e.printStackTrace();
>> >> >> >> >> >>         }
>> >> >> >> >> >>     }
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>     private static OMElement getEchoElement(String 
>>fileName)
>> >>{
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>         DataHandler dh;
>> >> >> >> >> >>
>> >> >> >> >> >>                 OMFactory fac =
>> >> >>OMAbstractFactory.getOMFactory();
>> >> >> >> >> >>             OMNamespace omNs =
>> >> >> >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
>> >> >>"example1");
>> >> >> >> >> >>
>> >> >> >> >> >>         OMElement data = 
>>fac.createOMElement("fileSecurity",
>> >> >>omNs);
>> >> >> >> >> >>         OMElement input = fac.createOMElement("file", 
>>omNs);
>> >> >> >> >> >>             OMElement pack = fac.createOMElement("pack",
>> >>omNs);
>> >> >> >> >> >>
>> >> >> >> >> >>             FileDataSource f1 = new 
>>FileDataSource(fileName);
>> >> >> >> >> >>         dh = new DataHandler(f1);
>> >> >> >> >> >>
>> >> >> >> >> >>         OMElement filename = 
>>fac.createOMElement("fileName",
>> >> >>omNs);
>> >> >> >> >> >>        // OMText textName = fac.createOMText(filename,
>> >> >> >>"myFile.txt");
>> >> >> >> >> >>
>> >> >> >> >> >>         OMText textData = fac.createOMText(dh, true);
>> >> >> >> >> >>
>> >> >> >> >> >>         input.addChild(textData);
>> >> >> >> >> >>
>> >> >> >> >> >>         pack.addChild(filename);
>> >> >> >> >> >>         pack.addChild(input);
>> >> >> >> >> >>         data.addChild(pack);
>> >> >> >> >> >>
>> >> >> >> >> >>         //System.out.println(data);
>> >> >> >> >> >>
>> >> >> >> >> >>              return data;
>> >> >> >> >> >>         }
>> >> >> >> >> >>}
>> >> >> >> >> >>
>> >> >> >> >> >>         server code:
>> >> >> >> >> >>
>> >> >> >> >> >>public class fileS {
>> >> >> >> >> >>
>> >> >> >> >> >>         public OMElement fileSecurity(OMElement element)
>> >>throws
>> >> >> >> >>Exception
>> >> >> >> >> >>         {
>> >> >> >> >> >>                 //System.out.println(element);
>> >> >> >> >> >>
>> >> >> >> >> >>                 element.build();
>> >> >> >> >> >>                 element.detach();
>> >> >> >> >> >>
>> >> >> >> >> >>             Iterator children = 
>>element.getChildElements();
>> >> >> >> >> >>
>> >> >> >> >> >>                 OMElement name = 
>>(OMElement)children.next();
>> >> >> >> >> >>//get name of the file,
>> >> >> >> >> >>first element of element
>> >> >> >> >> >>                 OMElement content =
>> >>(OMElement)children.next();
>> >> >> >> >>//get
>> >> >> >> >> >>text that
>> >> >> >> >> >>contains the file, second element
>> >> >> >> >> >>
>> >> >> >> >> >>                 System.out.println("before creating 
>>OMText");
>> >> >> >> >> >>                 OMText fnode =
>> >> >>(OMText)content.getFirstOMChild();
>> >> >> >> >> >>                 System.out.println("after creating 
>>OMText");
>> >> >> >> >> >>//              fnode.setOptimize(true);
>> >> >> >> >> >>                 //String fname = name.getText();
>> >> >> >> >> >>
>> >> >> >> >> >>                 //create data handler to extract the data
>> >> >>handler
>> >> >> >>of
>> >> >> >> >>the
>> >> >> >> >> >>OMText
>> >> >> >> >> >>                 DataHandler dfile;
>> >> >> >> >> >>                 System.out.println("before getDataHandler
>> >>from
>> >> >> >> >>OMText");
>> >> >> >> >> >>
>> >> >> >> >> >>                 //String cid = fnode.getContentID();
>> >> >> >> >> >>                 //System.out.println(cid);
>> >> >> >> >> >>
>> >> >> >> >> >>                 dfile = 
>>(DataHandler)fnode.getDataHandler();
>> >> >> >> >> >>//getDataHandler() and
>> >> >> >> >> >>broken pipe
>> >> >> >> >> >>
>> >> >> >> >> >>                 System.out.println("after create 
>>datahandler
>> >>for
>> >> >> >> >> >>OMText");
>> >> >> >> >> >>
>> >> >> >> >> >>                 FileOutputStream outfile = new
>> >> >> >>FileOutputStream(new
>> >> >> >> >> >>File("/users/alice3/myFile"));
>> >> >> >> >> >>                 System.out.println("after create a
>> >> >> >>fileoutputstream");
>> >> >> >> >> >>                 dfile.writeTo(outfile);
>> >> >> >> >> >>                 System.out.println("after writeTo()");
>> >> >> >> >> >>
>> >> >> >> >> >>                 //System.out.println("Successful
>> >>Operation!");
>> >> >> >> >> >>
>> >> >> >> >> >>                 OMFactory fac =
>> >> >>OMAbstractFactory.getOMFactory();
>> >> >> >> >> >>         OMNamespace ns =
>> >> >> >>fac.createOMNamespace("urn://fakenamespace",
>> >> >> >> >> >>"ns");
>> >> >> >> >> >>         OMElement ele = fac.createOMElement("response", 
>>ns);
>> >> >> >> >> >>         ele.setText("Data Saved");
>> >> >> >> >> >>         return ele;
>> >> >> >> >> >>
>> >> >> >> >> >>         }
>> >> >> >> >> >>
>> >> >> >> >> >>}
>> >> >> >> >> >>
>> >> >> >> >> >>        services.xml:
>> >> >> >> >> >>
>> >> >> >> >> >><service name="FileSecurity" >
>> >> >> >> >> >>   <description>
>> >> >> >> >> >>                 This is my service for sending file over
>> >> >> >>server-client
>> >> >> >> >> >>with security
>> >> >> >> >> >>setting
>> >> >> >> >> >>         </description>
>> >> >> >> >> >>   <parameter locked="false" name="ServiceClass"
>> >> >> >> >> >> >security.fileS</parameter>
>> >> >> >> >> >>   <operation name="fileSecurity" >
>> >> >> >> >> >>     <messageReceiver
>> >> >> >> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" 
>>/>
>> >> >> >> >> >>   </operation>
>> >> >> >> >> >>   <parameter name="InflowSecurity" >
>> >> >> >> >> >>     <action>
>> >> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >> >> >>
>> >> >> >>
>> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >> >> >>       
>><signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >> >> >>     </action>
>> >> >> >> >> >>   </parameter>
>> >> >> >> >> >>   <parameter name="OutflowSecurity" >
>> >> >> >> >> >>     <action>
>> >> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >> >> >>       <user>bob</user>
>> >> >> >> >> >>
>> >> >> >>
>> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >> >> >>       
>><signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >> >> >>
>> >> >> >> 
>> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>> >> >> >> >> >>
>> >> >> >>
>> >> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>> >> >> >> >> >>       <encryptionUser>alice</encryptionUser>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >> >>     </action>
>> >> >> >> >> >>   </parameter>
>> >> >> >> >> >></service>
>> >> >> >> >> >>
>> >> >> >> >> >>          and the .aar package is constucted as follow
>> >> >> >> >> >>
>> >> >> >> >> >>         security/
>> >> >> >> >> >>                 security/PWCallback.class
>> >> >> >> >> >>                 security/fileS.class
>> >> >> >> >> >>         META-INF/
>> >> >> >> >> >>                 META-INF/services.xml
>> >> >> >> >> >>         sec.jks
>> >> >> >> >> >>         sec.properties
>> >> >> >> >> >>
>> >> >> >> >> >>      and the result i get from the TCPMON is that at the
>> >>server
>> >> >> >>side
>> >> >> >> >> >>
>> >> >> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >> >> >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >> >> >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
>> >> >> >> >> >>Content-Type: multipart/related;
>> >> >> >> >>
>> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
>> >> >> >> >> >>type="application/xop+xml";
>> >> >> >> >>
>> >> >>start="<0....@apache.org>";
>> >> >> >> >> >>start-info="text/xml"; charset=UTF-8
>> >> >> >> >> >>Transfer-Encoding: chunked
>> >> >> >> >> >>Server: Jetty(6.0.x)
>> >> >> >> >> >>
>> >> >> >> >> >>2DA
>> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
>> >>type="text/xml";
>> >> >> >> >> >>content-transfer-encoding:binary
>> >> >> >> >>
>> >> >> 
>> >>content-id:<0....@apache.org>
>> >> >> >> >> >>
>> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >> >> >> >> >>35B
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
>> >>type="text/xml";
>> >> >> >> >> >>content-transfer-encoding:binary
>> >> >> >> >>
>> >> >> 
>> >>content-id:<0....@apache.org>
>> >> >> >> >> >>
>> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >> >>security processing failed</faultstring>
>> >> >> >> >> >>1383
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
>> >>type="text/xml";
>> >> >> >> >> >>content-transfer-encoding:binary
>> >> >> >> >>
>> >> >> 
>> >>content-id:<0....@apache.org>
>> >> >> >> >> >>
>> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >> >>security processing
>> >> >> >> >>
>> >> >> 
>> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >> >> >>WSDoAllReceiver: security processing failed; nested 
>>exception
>> >>is:
>> >> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >> >>encrypt/decrypt data;
>> >> >> >> >> >>nested exception is:
>> >> >> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >>Error
>> >> >> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>Original Exception was
>> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >>Error
>> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >> >> >>         at
>> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >> >> >>         at
>> >> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >> >> >>         at
>> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >> >> >>         at
>> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >> >> >>         at 
>>org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> 
>> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >> >> >>         at
>> >> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: 
>>Cannot
>> >> >> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >>Error
>> >> >> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>Original Exception was
>> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >>Error
>> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >> >> >>         ... 24 more
>> >> >> >> >> >>Caused by:
>> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >> >>Error
>> >> >> >> >> >>while decoding
>> >> >> >> >> >>Original Exception was
>> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >>Error
>> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >> >> >>         ... 30 more
>> >> >> >> >> >></Exception></detail>
>> >> >> >> >> >>13B5
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
>> >>type="text/xml";
>> >> >> >> >> >>content-transfer-encoding:binary
>> >> >> >> >>
>> >> >> 
>> >>content-id:<0....@apache.org>
>> >> >> >> >> >>
>> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >> >>security processing
>> >> >> >> >>
>> >> >> 
>> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >> >> >>WSDoAllReceiver: security processing failed; nested 
>>exception
>> >>is:
>> >> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >> >>encrypt/decrypt data;
>> >> >> >> >> >>nested exception is:
>> >> >> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >>Error
>> >> >> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>Original Exception was
>> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >>Error
>> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >> >> >>         at
>> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >> >> >>         at
>> >> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >> >> >>         at
>> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >> >> >>         at
>> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >> >> >>         at 
>>org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> 
>> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >> >> >>         at
>> >> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: 
>>Cannot
>> >> >> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >>Error
>> >> >> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>Original Exception was
>> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >>Error
>> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >> >> >>         ... 24 more
>> >> >> >> >> >>Caused by:
>> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >> >>Error
>> >> >> >> >> >>while decoding
>> >> >> >> >> >>Original Exception was
>> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
>> >>Error
>> >> >> >>while
>> >> >> >> >> >>decoding
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >> >> >>Source)
>> >> >> >> >> >>         at
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >> >> >>         ... 30 more
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >> >> >> >> >>3B
>> >> >> >> >> >>
>> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
>> >> >> >> >> >>0
>> >> >> >> >> >>
>> >> >> >> >> >>           The client side message seems to be ok, with all
>> >>the
>> >> >> >> >>encypted
>> >> >> >> >> >>document.
>> >> >> >> >> >>
>> >> >> >> >> >>           Is there any idea what can cause the fault? 
>>Greatly
>> >> >> >> >>appreciate,
>> >> >> >> >> >>
>> >> >> >> >> >>          Wan
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >> >>For additional commands, e-mail: 
>>axis-user-help@ws.apache.org
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >--
>> >> >> >> >> >www.ruchith.org
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> 
>> >---------------------------------------------------------------------
>> >> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >> >For additional commands, e-mail: 
>>axis-user-help@ws.apache.org
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >--
>> >> >> >> >www.ruchith.org
>> >> >> >> >
>> >> >> >>
>> >> >---------------------------------------------------------------------
>> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >www.ruchith.org
>> >> >> >
>> >> >> 
>> >---------------------------------------------------------------------
>> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Did you add the "inflowConfiguration" and "outflowConfiguration"
parameters into the services.xml file of the service?

Adding <module ref="rampart" /> engages rampart ... but you have to
_configure_ rampart as with the two parameters mentioned above.

Thanks,
Ruchith

On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Dear Ruchith,
>
>         I do have some update about the test, I have debugged it by printing
> the message which sent at the client side and also the arrived message at
> the server side and the both look exactly the same. However, while comparing
> it with TCPMon, the message is different. So we can conclude that on the
> TCPMon is the secured message and the code at client and server are the one
> before encrypted and after decrypted.
>
>        The server code is run fine until reach this line.
>
>        OMText fnode = (OMText)content.getFirstOMChild();
>
>        So i think the security module is working fine. I have no idea what
> is causing the fault.
>
>        Best regards,
>
>        Wan
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] send file with security
> >Date: Fri, 21 Jul 2006 16:01:48 +0530
> >
> >Hi Wan,
> >
> >Have you engaged and configured rampart properly at the service?
> >
> >If you have not engaged rampart at the service, ... the your
> >public OMElement fileSecurity(OMElement element) method will be fed
> >with  an OMElement which is the "EncryptedData" element.
> >
> >Can you debug and see whether the element you receive into the service
> >_with_ security is "EncryptedData"? If so you have not
> >engaged/configured rampart at the service.
> >
> >Thanks,
> >Ruchith
> >
> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>Dear Ruchith,
> >>
> >>         I have tried put try-catch block in my service, the result thrown
> >>is
> >>the same. The same service code is working well with the sending file
> >>without the security issue. I have attached the service code with the
> >>email
> >>as well as the result thrown by TCPMon
> >>
> >>package security;
> >>
> >>import java.io.*;
> >>import java.util.Iterator;
> >>import org.apache.axiom.om.OMAbstractFactory;
> >>import org.apache.axiom.om.OMElement;
> >>import org.apache.axiom.om.OMFactory;
> >>import org.apache.axiom.om.OMNamespace;
> >>import org.apache.axiom.om.OMText;
> >>import org.apache.axis2.AxisFault;
> >>
> >>import javax.activation.DataHandler;
> >>//import javax.activation.FileDataSource;
> >>/**
> >>* @author alice3
> >>*
> >>* TODO To change the template for this generated type comment go to
> >>* Window - Preferences - Java - Code Style - Code Templates
> >>*/
> >>public class fileS {
> >>
> >>         public OMElement fileSecurity(OMElement element) throws Exception
> >>         {
> >>                 //System.out.println(element);
> >>
> >>                 element.build();
> >>                 element.detach();
> >>
> >>                 //OMElement result;
> >>
> >>         try {
> >>
> >>             //result = (OMElement) method.invoke(obj, args);
> >>
> >>             Iterator children = element.getChildElements();
> >>
> >>                 OMElement name = (OMElement)children.next();
> >>//get name of the file,
> >>first element of element
> >>                 OMElement content = (OMElement)children.next();     //get
> >>text that
> >>contains the file, second element
> >>
> >>                 System.out.println("before creating OMText");
> >>                 OMText fnode = (OMText)content.getFirstOMChild();
> >>                 System.out.println("after creating OMText");
> >>//              fnode.setOptimize(true);
> >>                 //String fname = name.getText();
> >>
> >>                 //create data handler to extract the data handler of the
> >>OMText
> >>                 DataHandler dfile;
> >>                 System.out.println("before getDataHandler from OMText");
> >>
> >>                 //String cid = fnode.getContentID();
> >>                 //System.out.println(cid);
> >>
> >>                 dfile = (DataHandler)fnode.getDataHandler();
> >>//getDataHandler() and
> >>broken pipe
> >>
> >>                 System.out.println("after create datahandler for
> >>OMText");
> >>
> >>                 FileOutputStream outfile = new  FileOutputStream(new
> >>File("/users/alice3/myFile"));
> >>                 System.out.println("after create a fileoutputstream");
> >>                 dfile.writeTo(outfile);
> >>                 System.out.println("after writeTo()");
> >>
> >>                 //System.out.println("Successful Operation!");
> >>
> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >>             OMNamespace ns = fac.createOMNamespace("urn://fakenamespace",
> >>"ns");
> >>             OMElement ele = fac.createOMElement("response", ns);
> >>             ele.setText("Data Saved");
> >>             return ele;
> >>
> >>         } catch (Exception e) {
> >>
> >>             throw new AxisFault(e.getMessage());
> >>
> >>         }
> >>
> >>     }
> >>}
> >>
> >>          TCPMon:
> >>
> >>           HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
> >>Set-Cookie: JSESSIONID=2awjbkc0xv4ai;path=/axis2
> >>Content-Type: text/xml; charset=UTF-8
> >>Transfer-Encoding: chunked
> >>Server: Jetty(6.0.x)
> >>
> >>2BE
> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:C89C196EC8824AC14911534681397753</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo
> >>wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:B7D986D0DD96E9306611534681329361</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> >>22
> >><faultstring>unknown</faultstring>
> >>77A
> >><detail><Exception>org.apache.axis2.AxisFault
> >>         at
> >>org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
> >>         at
> >>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
> >>         at
> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
> >>         at
> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >>         at
> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >>         at
> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >>         at
> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >>         at
> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >>         at
> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >>         at
> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >>         at
> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >>         at
> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >>         at
> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >>         at
> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >>         at
> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >>         at
> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >>         at
> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >>         at
> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >>         at
> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >></Exception></detail>
> >>32
> >></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> >>0
> >>
> >>        Regards,
> >>
> >>        Wan
> >>
> >>
> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >Date: Fri, 21 Jul 2006 13:01:47 +0530
> >> >
> >> >Hi Wan,
> >> >
> >> >Looking at your stack trace it seems that there's something wrong with
> >> >your service. The exception is throw at the point where the service
> >> >method is invoked:
> >> >
> >> >                OMElement result;
> >> >
> >> >                try {
> >> >
> >> >                    result = (OMElement) method.invoke(obj, args);
> >> >
> >> >                } catch (Exception e) {
> >> >
> >> >                    throw new AxisFault(e.getMessage());
> >> >
> >> >                }
> >> >
> >> >Maybe the method is throwing an exception.
> >> >
> >> >Can you please check your service?
> >> >
> >> >Thanks,
> >> >Ruchith
> >> >
> >> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >>Dear Ruchith,
> >> >>
> >> >>          my mistake, my message receiver in services.xml is
> >> >>RAWXMLInOutMessageReceiver.
> >> >>          what should i do now?
> >> >>
> >> >>          Best regards,
> >> >>          Wan
> >> >>
> >> >>
> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >> >Reply-To: axis-user@ws.apache.org
> >> >> >To: axis-user@ws.apache.org
> >> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >> >Date: Thu, 20 Jul 2006 17:46:18 +0530
> >> >> >
> >> >> >Hi Wan,
> >> >> >
> >> >> >Can you also change
> >> >> ><parameter name="enableMTOM" locked="false">true</parameter>
> >> >> >to
> >> >> ><parameter name="enableMTOM" locked="false">false</parameter>
> >> >> >
> >> >> >in both axis2.xml s (client and server) and try again.
> >> >> >
> >> >> >And if this fails please send what you see in tcpmon and the
> >>exception.
> >> >> >
> >> >> >Thanks,
> >> >> >Ruchith
> >> >> >
> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >>Thank you Ruchith,
> >> >> >>
> >> >> >>        I have made change as your advice. However, i still got the
> >> >>same
> >> >> >>error...
> >> >> >>
> >> >> >>        Any other possibility?
> >> >> >>
> >> >> >>        Best regards,
> >> >> >>
> >> >> >>         Wan
> >> >> >>
> >> >> >>
> >> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >> >> >Reply-To: axis-user@ws.apache.org
> >> >> >> >To: axis-user@ws.apache.org
> >> >> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >> >> >Date: Thu, 20 Jul 2006 16:09:23 +0530
> >> >> >> >
> >> >> >> >Yes from your services.xml and the client's axis2.xml
> >> >> >> >
> >> >> >> >Thanks,
> >> >> >> >Ruchith
> >> >> >> >
> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >> >>Dear Ruchith,
> >> >> >> >>
> >> >> >> >>    you means
> >> >> >> >>remove :
> >> >> >>
> >> >>
> >> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >> >>
> >> >> >> >>     from my services.xml right? or other place?
> >> >> >> >>
> >> >> >> >>     Wan
> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >Hi Wan,
> >> >> >> >> >
> >> >> >> >> >Please remove :
> >> >> >> >>
> >> >> >>
> >> >>
> >> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >> >> >
> >> >> >> >> >entry from your rampart configuration parameters and try again.
> >> >> >> >> >
> >> >> >> >> >Thanks,
> >> >> >> >> >Ruchith
> >> >> >> >> >
> >> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >> >> >>Dear All,
> >> >> >> >> >>
> >> >> >> >> >>        I have been trying to combine the test about sending
> >>file
> >> >> >>and
> >> >> >> >> >>securing message.
> >> >> >> >> >>        My environment is Axis2 v1.0, nightly build released 4
> >> >>June
> >> >> >>06
> >> >> >> >>on
> >> >> >> >> >>the
> >> >> >> >> >>Jetty Servlet.
> >> >> >> >> >>
> >> >> >> >> >>        From other individual test such as sending text file,
> >>and
> >> >> >> >>security
> >> >> >> >> >>sample had no problem on this, however with the combination
> >>one i
> >> >> >>got
> >> >> >> >>the
> >> >> >> >> >>following error.
> >> >> >> >> >>
> >> >> >> >> >>        Client code:
> >> >> >> >> >>
> >> >> >> >> >>/*
> >> >> >> >> >>* Created on 19.07.2006
> >> >> >> >> >>*
> >> >> >> >> >>* TODO To change the template for this generated file go to
> >> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >> >> >> >>*/
> >> >> >> >> >>package security;
> >> >> >> >> >>
> >> >> >> >> >>/**
> >> >> >> >> >>* @author alice3
> >> >> >> >> >>*
> >> >> >> >> >>* TODO To change the template for this generated type comment
> >>go
> >> >>to
> >> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >> >> >> >>*/
> >> >> >> >> >>
> >> >> >> >> >>import org.apache.axiom.om.OMAbstractFactory;
> >> >> >> >> >>import org.apache.axiom.om.OMElement;
> >> >> >> >> >>import org.apache.axiom.om.OMFactory;
> >> >> >> >> >>import org.apache.axiom.om.OMNamespace;
> >> >> >> >> >>import org.apache.axiom.om.OMText;
> >> >> >> >> >>import org.apache.axis2.AxisFault;
> >> >> >> >> >>import org.apache.axis2.Constants;
> >> >> >> >> >>import org.apache.axis2.addressing.EndpointReference;
> >> >> >> >> >>import org.apache.axis2.client.Options;
> >> >> >> >> >>import org.apache.axis2.client.ServiceClient;
> >> >> >> >> >>import org.apache.axis2.context.ConfigurationContext;
> >> >> >> >> >>import org.apache.axis2.context.ConfigurationContextFactory;
> >> >> >> >> >>
> >> >> >> >> >>//import org.apache.axis2.soapmonitor.*;
> >> >> >> >> >>
> >> >> >> >> >>import javax.activation.DataHandler;
> >> >> >> >> >>import javax.activation.FileDataSource;
> >> >> >> >> >>import javax.xml.namespace.QName;
> >> >> >> >> >>import javax.xml.stream.XMLOutputFactory;
> >> >> >> >> >>import javax.xml.stream.XMLStreamException;
> >> >> >> >> >>
> >> >> >> >> >>import java.io.File;
> >> >> >> >> >>import java.io.StringWriter;
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>public class SecureClient {
> >> >> >> >> >>
> >> >> >> >> >>     private File inputFile = null;
> >> >> >> >> >>
> >> >> >> >> >>     private QName operationName = new QName("fileSecurity");
> >> >> >> >> >>
> >> >> >> >> >>     public static void main(String[] args) {
> >> >> >> >> >>
> >> >> >> >> >>         try {
> >> >> >> >> >>
> >> >> >> >> >>             // Get the repository location from the args
> >> >> >> >> >>             String repo = args[0];
> >> >> >> >> >>             String port = args[1];
> >> >> >> >> >>
> >> >> >> >> >>             OMElement payload =
> >> >> >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >> >> >> >> >>             ConfigurationContext configContext =
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> >> >> >> >> >>null);
> >> >> >> >> >>             ServiceClient serviceClient = new
> >> >> >> >> >>ServiceClient(configContext,
> >> >> >> >> >>null);
> >> >> >> >> >>             Options options = new Options();
> >> >> >> >> >>             options.setTo(new
> >> >>EndpointReference("http://127.0.0.1:"
> >> >> >>+
> >> >> >> >> >>port +
> >> >> >> >> >>"/axis2/services/FileSecurity"));
> >> >> >> >> >>             //options.setTo(new
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
> >> >> >> >> >>
> >> >> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >> >> >> >>
> >> >> >>options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >> >> >> >>Constants.VALUE_TRUE);
> >> >> >> >> >>             options.setAction("urn:fileSecurity");
> >> >> >> >> >>             serviceClient.setOptions(options);
> >> >> >> >> >>
> >> >> >> >> >>             //Blocking invocation
> >> >> >> >> >>             OMElement result =
> >> >>serviceClient.sendReceive(payload);
> >> >> >> >> >>
> >> >> >> >> >>             StringWriter writer = new StringWriter();
> >> >> >> >> >>             result.serialize(XMLOutputFactory.newInstance()
> >> >> >> >> >>                     .createXMLStreamWriter(writer));
> >> >> >> >> >>             writer.flush();
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>            //System.out.println("Response: " +
> >> >>writer.toString());
> >> >> >> >> >>
> >> >> >> >> >>             System.out.println("SecureService Invocation
> >> >>successful
> >> >> >> >> >>:-)");
> >> >> >> >> >>         } catch (AxisFault axisFault) {
> >> >> >> >> >>             axisFault.printStackTrace();
> >> >> >> >> >>         } catch (XMLStreamException e) {
> >> >> >> >> >>             e.printStackTrace();
> >> >> >> >> >>         }
> >> >> >> >> >>     }
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>     private static OMElement getEchoElement(String fileName)
> >>{
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>         DataHandler dh;
> >> >> >> >> >>
> >> >> >> >> >>                 OMFactory fac =
> >> >>OMAbstractFactory.getOMFactory();
> >> >> >> >> >>             OMNamespace omNs =
> >> >> >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
> >> >>"example1");
> >> >> >> >> >>
> >> >> >> >> >>         OMElement data = fac.createOMElement("fileSecurity",
> >> >>omNs);
> >> >> >> >> >>         OMElement input = fac.createOMElement("file", omNs);
> >> >> >> >> >>             OMElement pack = fac.createOMElement("pack",
> >>omNs);
> >> >> >> >> >>
> >> >> >> >> >>             FileDataSource f1 = new FileDataSource(fileName);
> >> >> >> >> >>         dh = new DataHandler(f1);
> >> >> >> >> >>
> >> >> >> >> >>         OMElement filename = fac.createOMElement("fileName",
> >> >>omNs);
> >> >> >> >> >>        // OMText textName = fac.createOMText(filename,
> >> >> >>"myFile.txt");
> >> >> >> >> >>
> >> >> >> >> >>         OMText textData = fac.createOMText(dh, true);
> >> >> >> >> >>
> >> >> >> >> >>         input.addChild(textData);
> >> >> >> >> >>
> >> >> >> >> >>         pack.addChild(filename);
> >> >> >> >> >>         pack.addChild(input);
> >> >> >> >> >>         data.addChild(pack);
> >> >> >> >> >>
> >> >> >> >> >>         //System.out.println(data);
> >> >> >> >> >>
> >> >> >> >> >>              return data;
> >> >> >> >> >>         }
> >> >> >> >> >>}
> >> >> >> >> >>
> >> >> >> >> >>         server code:
> >> >> >> >> >>
> >> >> >> >> >>public class fileS {
> >> >> >> >> >>
> >> >> >> >> >>         public OMElement fileSecurity(OMElement element)
> >>throws
> >> >> >> >>Exception
> >> >> >> >> >>         {
> >> >> >> >> >>                 //System.out.println(element);
> >> >> >> >> >>
> >> >> >> >> >>                 element.build();
> >> >> >> >> >>                 element.detach();
> >> >> >> >> >>
> >> >> >> >> >>             Iterator children = element.getChildElements();
> >> >> >> >> >>
> >> >> >> >> >>                 OMElement name = (OMElement)children.next();
> >> >> >> >> >>//get name of the file,
> >> >> >> >> >>first element of element
> >> >> >> >> >>                 OMElement content =
> >>(OMElement)children.next();
> >> >> >> >>//get
> >> >> >> >> >>text that
> >> >> >> >> >>contains the file, second element
> >> >> >> >> >>
> >> >> >> >> >>                 System.out.println("before creating OMText");
> >> >> >> >> >>                 OMText fnode =
> >> >>(OMText)content.getFirstOMChild();
> >> >> >> >> >>                 System.out.println("after creating OMText");
> >> >> >> >> >>//              fnode.setOptimize(true);
> >> >> >> >> >>                 //String fname = name.getText();
> >> >> >> >> >>
> >> >> >> >> >>                 //create data handler to extract the data
> >> >>handler
> >> >> >>of
> >> >> >> >>the
> >> >> >> >> >>OMText
> >> >> >> >> >>                 DataHandler dfile;
> >> >> >> >> >>                 System.out.println("before getDataHandler
> >>from
> >> >> >> >>OMText");
> >> >> >> >> >>
> >> >> >> >> >>                 //String cid = fnode.getContentID();
> >> >> >> >> >>                 //System.out.println(cid);
> >> >> >> >> >>
> >> >> >> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
> >> >> >> >> >>//getDataHandler() and
> >> >> >> >> >>broken pipe
> >> >> >> >> >>
> >> >> >> >> >>                 System.out.println("after create datahandler
> >>for
> >> >> >> >> >>OMText");
> >> >> >> >> >>
> >> >> >> >> >>                 FileOutputStream outfile = new
> >> >> >>FileOutputStream(new
> >> >> >> >> >>File("/users/alice3/myFile"));
> >> >> >> >> >>                 System.out.println("after create a
> >> >> >>fileoutputstream");
> >> >> >> >> >>                 dfile.writeTo(outfile);
> >> >> >> >> >>                 System.out.println("after writeTo()");
> >> >> >> >> >>
> >> >> >> >> >>                 //System.out.println("Successful
> >>Operation!");
> >> >> >> >> >>
> >> >> >> >> >>                 OMFactory fac =
> >> >>OMAbstractFactory.getOMFactory();
> >> >> >> >> >>         OMNamespace ns =
> >> >> >>fac.createOMNamespace("urn://fakenamespace",
> >> >> >> >> >>"ns");
> >> >> >> >> >>         OMElement ele = fac.createOMElement("response", ns);
> >> >> >> >> >>         ele.setText("Data Saved");
> >> >> >> >> >>         return ele;
> >> >> >> >> >>
> >> >> >> >> >>         }
> >> >> >> >> >>
> >> >> >> >> >>}
> >> >> >> >> >>
> >> >> >> >> >>        services.xml:
> >> >> >> >> >>
> >> >> >> >> >><service name="FileSecurity" >
> >> >> >> >> >>   <description>
> >> >> >> >> >>                 This is my service for sending file over
> >> >> >>server-client
> >> >> >> >> >>with security
> >> >> >> >> >>setting
> >> >> >> >> >>         </description>
> >> >> >> >> >>   <parameter locked="false" name="ServiceClass"
> >> >> >> >> >> >security.fileS</parameter>
> >> >> >> >> >>   <operation name="fileSecurity" >
> >> >> >> >> >>     <messageReceiver
> >> >> >> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
> >> >> >> >> >>   </operation>
> >> >> >> >> >>   <parameter name="InflowSecurity" >
> >> >> >> >> >>     <action>
> >> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >> >> >> >>
> >> >> >>
> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >> >> >> >> >>     </action>
> >> >> >> >> >>   </parameter>
> >> >> >> >> >>   <parameter name="OutflowSecurity" >
> >> >> >> >> >>     <action>
> >> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >> >> >> >>       <user>bob</user>
> >> >> >> >> >>
> >> >> >>
> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >> >> >> >> >>
> >> >> >> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
> >> >> >> >> >>
> >> >> >>
> >> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
> >> >> >> >> >>       <encryptionUser>alice</encryptionUser>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >> >> >>     </action>
> >> >> >> >> >>   </parameter>
> >> >> >> >> >></service>
> >> >> >> >> >>
> >> >> >> >> >>          and the .aar package is constucted as follow
> >> >> >> >> >>
> >> >> >> >> >>         security/
> >> >> >> >> >>                 security/PWCallback.class
> >> >> >> >> >>                 security/fileS.class
> >> >> >> >> >>         META-INF/
> >> >> >> >> >>                 META-INF/services.xml
> >> >> >> >> >>         sec.jks
> >> >> >> >> >>         sec.properties
> >> >> >> >> >>
> >> >> >> >> >>      and the result i get from the TCPMON is that at the
> >>server
> >> >> >>side
> >> >> >> >> >>
> >> >> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> >> >> >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
> >> >> >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
> >> >> >> >> >>Content-Type: multipart/related;
> >> >> >> >>
> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
> >> >> >> >> >>type="application/xop+xml";
> >> >> >> >>
> >> >>start="<0....@apache.org>";
> >> >> >> >> >>start-info="text/xml"; charset=UTF-8
> >> >> >> >> >>Transfer-Encoding: chunked
> >> >> >> >> >>Server: Jetty(6.0.x)
> >> >> >> >> >>
> >> >> >> >> >>2DA
> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
> >>type="text/xml";
> >> >> >> >> >>content-transfer-encoding:binary
> >> >> >> >>
> >> >> >>content-id:<0....@apache.org>
> >> >> >> >> >>
> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> >> >> >> >> >>35B
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
> >>type="text/xml";
> >> >> >> >> >>content-transfer-encoding:binary
> >> >> >> >>
> >> >> >>content-id:<0....@apache.org>
> >> >> >> >> >>
> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >> >> >>security processing failed</faultstring>
> >> >> >> >> >>1383
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
> >>type="text/xml";
> >> >> >> >> >>content-transfer-encoding:binary
> >> >> >> >>
> >> >> >>content-id:<0....@apache.org>
> >> >> >> >> >>
> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >> >> >>security processing
> >> >> >> >>
> >> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >> >> >> >>WSDoAllReceiver: security processing failed; nested exception
> >>is:
> >> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >> >>encrypt/decrypt data;
> >> >> >> >> >>nested exception is:
> >> >> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >>Error
> >> >> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>Original Exception was
> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >>Error
> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >> >> >> >>         at
> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >> >> >> >>         at
> >> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >> >> >> >>         at
> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >> >> >> >>         at
> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >> >> >> >>         at
> >> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >> >>encrypt/decrypt data; nested exception is:
> >> >> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >>Error
> >> >> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>Original Exception was
> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >>Error
> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >> >> >> >>         ... 24 more
> >> >> >> >> >>Caused by:
> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >> >>Error
> >> >> >> >> >>while decoding
> >> >> >> >> >>Original Exception was
> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >>Error
> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >> >> >> >>         ... 30 more
> >> >> >> >> >></Exception></detail>
> >> >> >> >> >>13B5
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >> >>content-type:application/xop+xml; charset=UTF-8;
> >>type="text/xml";
> >> >> >> >> >>content-transfer-encoding:binary
> >> >> >> >>
> >> >> >>content-id:<0....@apache.org>
> >> >> >> >> >>
> >> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >> >> >>security processing
> >> >> >> >>
> >> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >> >> >> >>WSDoAllReceiver: security processing failed; nested exception
> >>is:
> >> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >> >>encrypt/decrypt data;
> >> >> >> >> >>nested exception is:
> >> >> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >>Error
> >> >> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>Original Exception was
> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >>Error
> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >> >> >> >>         at
> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >> >> >> >>         at
> >> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >> >> >> >>         at
> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >> >> >> >>         at
> >> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >> >> >> >>         at
> >> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >> >>encrypt/decrypt data; nested exception is:
> >> >> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >>Error
> >> >> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>Original Exception was
> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >>Error
> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >> >> >> >>         ... 24 more
> >> >> >> >> >>Caused by:
> >> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >> >>Error
> >> >> >> >> >>while decoding
> >> >> >> >> >>Original Exception was
> >> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException:
> >>Error
> >> >> >>while
> >> >> >> >> >>decoding
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >> >> >> >>Source)
> >> >> >> >> >>         at
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >> >> >> >>         ... 30 more
> >> >> >> >>
> >> >> >>
> >> >>
> >> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> >> >> >> >> >>3B
> >> >> >> >> >>
> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
> >> >> >> >> >>0
> >> >> >> >> >>
> >> >> >> >> >>           The client side message seems to be ok, with all
> >>the
> >> >> >> >>encypted
> >> >> >> >> >>document.
> >> >> >> >> >>
> >> >> >> >> >>           Is there any idea what can cause the fault? Greatly
> >> >> >> >>appreciate,
> >> >> >> >> >>
> >> >> >> >> >>          Wan
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >--
> >> >> >> >> >www.ruchith.org
> >> >> >> >> >
> >> >> >> >>
> >> >> >---------------------------------------------------------------------
> >> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >--
> >> >> >> >www.ruchith.org
> >> >> >> >
> >> >> >>
> >> >---------------------------------------------------------------------
> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> >--
> >> >> >www.ruchith.org
> >> >> >
> >> >> >---------------------------------------------------------------------
> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >www.ruchith.org
> >> >
> >> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

        I do have some update about the test, I have debugged it by printing 
the message which sent at the client side and also the arrived message at 
the server side and the both look exactly the same. However, while comparing 
it with TCPMon, the message is different. So we can conclude that on the 
TCPMon is the secured message and the code at client and server are the one 
before encrypted and after decrypted.

       The server code is run fine until reach this line.

       OMText fnode = (OMText)content.getFirstOMChild();

       So i think the security module is working fine. I have no idea what 
is causing the fault.

       Best regards,

       Wan


>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Fri, 21 Jul 2006 16:01:48 +0530
>
>Hi Wan,
>
>Have you engaged and configured rampart properly at the service?
>
>If you have not engaged rampart at the service, ... the your
>public OMElement fileSecurity(OMElement element) method will be fed
>with  an OMElement which is the "EncryptedData" element.
>
>Can you debug and see whether the element you receive into the service
>_with_ security is "EncryptedData"? If so you have not
>engaged/configured rampart at the service.
>
>Thanks,
>Ruchith
>
>On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Dear Ruchith,
>>
>>         I have tried put try-catch block in my service, the result thrown 
>>is
>>the same. The same service code is working well with the sending file
>>without the security issue. I have attached the service code with the 
>>email
>>as well as the result thrown by TCPMon
>>
>>package security;
>>
>>import java.io.*;
>>import java.util.Iterator;
>>import org.apache.axiom.om.OMAbstractFactory;
>>import org.apache.axiom.om.OMElement;
>>import org.apache.axiom.om.OMFactory;
>>import org.apache.axiom.om.OMNamespace;
>>import org.apache.axiom.om.OMText;
>>import org.apache.axis2.AxisFault;
>>
>>import javax.activation.DataHandler;
>>//import javax.activation.FileDataSource;
>>/**
>>* @author alice3
>>*
>>* TODO To change the template for this generated type comment go to
>>* Window - Preferences - Java - Code Style - Code Templates
>>*/
>>public class fileS {
>>
>>         public OMElement fileSecurity(OMElement element) throws Exception
>>         {
>>                 //System.out.println(element);
>>
>>                 element.build();
>>                 element.detach();
>>
>>                 //OMElement result;
>>
>>         try {
>>
>>             //result = (OMElement) method.invoke(obj, args);
>>
>>             Iterator children = element.getChildElements();
>>
>>                 OMElement name = (OMElement)children.next();            
>>//get name of the file,
>>first element of element
>>                 OMElement content = (OMElement)children.next();     //get 
>>text that
>>contains the file, second element
>>
>>                 System.out.println("before creating OMText");
>>                 OMText fnode = (OMText)content.getFirstOMChild();
>>                 System.out.println("after creating OMText");
>>//              fnode.setOptimize(true);
>>                 //String fname = name.getText();
>>
>>                 //create data handler to extract the data handler of the 
>>OMText
>>                 DataHandler dfile;
>>                 System.out.println("before getDataHandler from OMText");
>>
>>                 //String cid = fnode.getContentID();
>>                 //System.out.println(cid);
>>
>>                 dfile = (DataHandler)fnode.getDataHandler();  
>>//getDataHandler() and
>>broken pipe
>>
>>                 System.out.println("after create datahandler for 
>>OMText");
>>
>>                 FileOutputStream outfile = new  FileOutputStream(new
>>File("/users/alice3/myFile"));
>>                 System.out.println("after create a fileoutputstream");
>>                 dfile.writeTo(outfile);
>>                 System.out.println("after writeTo()");
>>
>>                 //System.out.println("Successful Operation!");
>>
>>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>>             OMNamespace ns = fac.createOMNamespace("urn://fakenamespace",
>>"ns");
>>             OMElement ele = fac.createOMElement("response", ns);
>>             ele.setText("Data Saved");
>>             return ele;
>>
>>         } catch (Exception e) {
>>
>>             throw new AxisFault(e.getMessage());
>>
>>         }
>>
>>     }
>>}
>>
>>          TCPMon:
>>
>>           HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>>Set-Cookie: JSESSIONID=2awjbkc0xv4ai;path=/axis2
>>Content-Type: text/xml; charset=UTF-8
>>Transfer-Encoding: chunked
>>Server: Jetty(6.0.x)
>>
>>2BE
>><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:C89C196EC8824AC14911534681397753</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo
>>wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:B7D986D0DD96E9306611534681329361</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>>22
>><faultstring>unknown</faultstring>
>>77A
>><detail><Exception>org.apache.axis2.AxisFault
>>         at
>>org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
>>         at
>>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>>         at 
>>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
>>         at
>>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>>         at 
>>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>>         at 
>>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>>         at 
>>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>>         at 
>>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>>         at 
>>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>>         at
>>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>>         at
>>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>>         at 
>>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>>         at org.mortbay.jetty.Server.handle(Server.java:245)
>>         at 
>>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>>         at 
>>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>>         at
>>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>>         at 
>>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>>         at 
>>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>>         at
>>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>>         at
>>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>></Exception></detail>
>>32
>></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>>0
>>
>>        Regards,
>>
>>        Wan
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Fri, 21 Jul 2006 13:01:47 +0530
>> >
>> >Hi Wan,
>> >
>> >Looking at your stack trace it seems that there's something wrong with
>> >your service. The exception is throw at the point where the service
>> >method is invoked:
>> >
>> >                OMElement result;
>> >
>> >                try {
>> >
>> >                    result = (OMElement) method.invoke(obj, args);
>> >
>> >                } catch (Exception e) {
>> >
>> >                    throw new AxisFault(e.getMessage());
>> >
>> >                }
>> >
>> >Maybe the method is throwing an exception.
>> >
>> >Can you please check your service?
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>Dear Ruchith,
>> >>
>> >>          my mistake, my message receiver in services.xml is
>> >>RAWXMLInOutMessageReceiver.
>> >>          what should i do now?
>> >>
>> >>          Best regards,
>> >>          Wan
>> >>
>> >>
>> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >Reply-To: axis-user@ws.apache.org
>> >> >To: axis-user@ws.apache.org
>> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >Date: Thu, 20 Jul 2006 17:46:18 +0530
>> >> >
>> >> >Hi Wan,
>> >> >
>> >> >Can you also change
>> >> ><parameter name="enableMTOM" locked="false">true</parameter>
>> >> >to
>> >> ><parameter name="enableMTOM" locked="false">false</parameter>
>> >> >
>> >> >in both axis2.xml s (client and server) and try again.
>> >> >
>> >> >And if this fails please send what you see in tcpmon and the 
>>exception.
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >>Thank you Ruchith,
>> >> >>
>> >> >>        I have made change as your advice. However, i still got the
>> >>same
>> >> >>error...
>> >> >>
>> >> >>        Any other possibility?
>> >> >>
>> >> >>        Best regards,
>> >> >>
>> >> >>         Wan
>> >> >>
>> >> >>
>> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >> >Reply-To: axis-user@ws.apache.org
>> >> >> >To: axis-user@ws.apache.org
>> >> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >> >Date: Thu, 20 Jul 2006 16:09:23 +0530
>> >> >> >
>> >> >> >Yes from your services.xml and the client's axis2.xml
>> >> >> >
>> >> >> >Thanks,
>> >> >> >Ruchith
>> >> >> >
>> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >>Dear Ruchith,
>> >> >> >>
>> >> >> >>    you means
>> >> >> >>remove :
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >>
>> >> >> >>     from my services.xml right? or other place?
>> >> >> >>
>> >> >> >>     Wan
>> >> >> >>
>> >> >> >> >
>> >> >> >> >Hi Wan,
>> >> >> >> >
>> >> >> >> >Please remove :
>> >> >> >>
>> >> >>
>> >> 
>> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >
>> >> >> >> >entry from your rampart configuration parameters and try again.
>> >> >> >> >
>> >> >> >> >Thanks,
>> >> >> >> >Ruchith
>> >> >> >> >
>> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >> >>Dear All,
>> >> >> >> >>
>> >> >> >> >>        I have been trying to combine the test about sending 
>>file
>> >> >>and
>> >> >> >> >>securing message.
>> >> >> >> >>        My environment is Axis2 v1.0, nightly build released 4
>> >>June
>> >> >>06
>> >> >> >>on
>> >> >> >> >>the
>> >> >> >> >>Jetty Servlet.
>> >> >> >> >>
>> >> >> >> >>        From other individual test such as sending text file, 
>>and
>> >> >> >>security
>> >> >> >> >>sample had no problem on this, however with the combination 
>>one i
>> >> >>got
>> >> >> >>the
>> >> >> >> >>following error.
>> >> >> >> >>
>> >> >> >> >>        Client code:
>> >> >> >> >>
>> >> >> >> >>/*
>> >> >> >> >>* Created on 19.07.2006
>> >> >> >> >>*
>> >> >> >> >>* TODO To change the template for this generated file go to
>> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >> >> >>*/
>> >> >> >> >>package security;
>> >> >> >> >>
>> >> >> >> >>/**
>> >> >> >> >>* @author alice3
>> >> >> >> >>*
>> >> >> >> >>* TODO To change the template for this generated type comment 
>>go
>> >>to
>> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >> >> >>*/
>> >> >> >> >>
>> >> >> >> >>import org.apache.axiom.om.OMAbstractFactory;
>> >> >> >> >>import org.apache.axiom.om.OMElement;
>> >> >> >> >>import org.apache.axiom.om.OMFactory;
>> >> >> >> >>import org.apache.axiom.om.OMNamespace;
>> >> >> >> >>import org.apache.axiom.om.OMText;
>> >> >> >> >>import org.apache.axis2.AxisFault;
>> >> >> >> >>import org.apache.axis2.Constants;
>> >> >> >> >>import org.apache.axis2.addressing.EndpointReference;
>> >> >> >> >>import org.apache.axis2.client.Options;
>> >> >> >> >>import org.apache.axis2.client.ServiceClient;
>> >> >> >> >>import org.apache.axis2.context.ConfigurationContext;
>> >> >> >> >>import org.apache.axis2.context.ConfigurationContextFactory;
>> >> >> >> >>
>> >> >> >> >>//import org.apache.axis2.soapmonitor.*;
>> >> >> >> >>
>> >> >> >> >>import javax.activation.DataHandler;
>> >> >> >> >>import javax.activation.FileDataSource;
>> >> >> >> >>import javax.xml.namespace.QName;
>> >> >> >> >>import javax.xml.stream.XMLOutputFactory;
>> >> >> >> >>import javax.xml.stream.XMLStreamException;
>> >> >> >> >>
>> >> >> >> >>import java.io.File;
>> >> >> >> >>import java.io.StringWriter;
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>public class SecureClient {
>> >> >> >> >>
>> >> >> >> >>     private File inputFile = null;
>> >> >> >> >>
>> >> >> >> >>     private QName operationName = new QName("fileSecurity");
>> >> >> >> >>
>> >> >> >> >>     public static void main(String[] args) {
>> >> >> >> >>
>> >> >> >> >>         try {
>> >> >> >> >>
>> >> >> >> >>             // Get the repository location from the args
>> >> >> >> >>             String repo = args[0];
>> >> >> >> >>             String port = args[1];
>> >> >> >> >>
>> >> >> >> >>             OMElement payload =
>> >> >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >> >> >> >>             ConfigurationContext configContext =
>> >> >> >>
>> >> >>
>> >> 
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >> >> >> >>null);
>> >> >> >> >>             ServiceClient serviceClient = new
>> >> >> >> >>ServiceClient(configContext,
>> >> >> >> >>null);
>> >> >> >> >>             Options options = new Options();
>> >> >> >> >>             options.setTo(new
>> >>EndpointReference("http://127.0.0.1:"
>> >> >>+
>> >> >> >> >>port +
>> >> >> >> >>"/axis2/services/FileSecurity"));
>> >> >> >> >>             //options.setTo(new
>> >> >> >>
>> >> >>
>> >> 
>> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>> >> >> >> >>
>> >> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> >> >> >>
>> >> >>options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >> >> >> >>Constants.VALUE_TRUE);
>> >> >> >> >>             options.setAction("urn:fileSecurity");
>> >> >> >> >>             serviceClient.setOptions(options);
>> >> >> >> >>
>> >> >> >> >>             //Blocking invocation
>> >> >> >> >>             OMElement result =
>> >>serviceClient.sendReceive(payload);
>> >> >> >> >>
>> >> >> >> >>             StringWriter writer = new StringWriter();
>> >> >> >> >>             result.serialize(XMLOutputFactory.newInstance()
>> >> >> >> >>                     .createXMLStreamWriter(writer));
>> >> >> >> >>             writer.flush();
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>            //System.out.println("Response: " +
>> >>writer.toString());
>> >> >> >> >>
>> >> >> >> >>             System.out.println("SecureService Invocation
>> >>successful
>> >> >> >> >>:-)");
>> >> >> >> >>         } catch (AxisFault axisFault) {
>> >> >> >> >>             axisFault.printStackTrace();
>> >> >> >> >>         } catch (XMLStreamException e) {
>> >> >> >> >>             e.printStackTrace();
>> >> >> >> >>         }
>> >> >> >> >>     }
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>     private static OMElement getEchoElement(String fileName) 
>>{
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>         DataHandler dh;
>> >> >> >> >>
>> >> >> >> >>                 OMFactory fac =
>> >>OMAbstractFactory.getOMFactory();
>> >> >> >> >>             OMNamespace omNs =
>> >> >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
>> >>"example1");
>> >> >> >> >>
>> >> >> >> >>         OMElement data = fac.createOMElement("fileSecurity",
>> >>omNs);
>> >> >> >> >>         OMElement input = fac.createOMElement("file", omNs);
>> >> >> >> >>             OMElement pack = fac.createOMElement("pack", 
>>omNs);
>> >> >> >> >>
>> >> >> >> >>             FileDataSource f1 = new FileDataSource(fileName);
>> >> >> >> >>         dh = new DataHandler(f1);
>> >> >> >> >>
>> >> >> >> >>         OMElement filename = fac.createOMElement("fileName",
>> >>omNs);
>> >> >> >> >>        // OMText textName = fac.createOMText(filename,
>> >> >>"myFile.txt");
>> >> >> >> >>
>> >> >> >> >>         OMText textData = fac.createOMText(dh, true);
>> >> >> >> >>
>> >> >> >> >>         input.addChild(textData);
>> >> >> >> >>
>> >> >> >> >>         pack.addChild(filename);
>> >> >> >> >>         pack.addChild(input);
>> >> >> >> >>         data.addChild(pack);
>> >> >> >> >>
>> >> >> >> >>         //System.out.println(data);
>> >> >> >> >>
>> >> >> >> >>              return data;
>> >> >> >> >>         }
>> >> >> >> >>}
>> >> >> >> >>
>> >> >> >> >>         server code:
>> >> >> >> >>
>> >> >> >> >>public class fileS {
>> >> >> >> >>
>> >> >> >> >>         public OMElement fileSecurity(OMElement element) 
>>throws
>> >> >> >>Exception
>> >> >> >> >>         {
>> >> >> >> >>                 //System.out.println(element);
>> >> >> >> >>
>> >> >> >> >>                 element.build();
>> >> >> >> >>                 element.detach();
>> >> >> >> >>
>> >> >> >> >>             Iterator children = element.getChildElements();
>> >> >> >> >>
>> >> >> >> >>                 OMElement name = (OMElement)children.next();
>> >> >> >> >>//get name of the file,
>> >> >> >> >>first element of element
>> >> >> >> >>                 OMElement content = 
>>(OMElement)children.next();
>> >> >> >>//get
>> >> >> >> >>text that
>> >> >> >> >>contains the file, second element
>> >> >> >> >>
>> >> >> >> >>                 System.out.println("before creating OMText");
>> >> >> >> >>                 OMText fnode =
>> >>(OMText)content.getFirstOMChild();
>> >> >> >> >>                 System.out.println("after creating OMText");
>> >> >> >> >>//              fnode.setOptimize(true);
>> >> >> >> >>                 //String fname = name.getText();
>> >> >> >> >>
>> >> >> >> >>                 //create data handler to extract the data
>> >>handler
>> >> >>of
>> >> >> >>the
>> >> >> >> >>OMText
>> >> >> >> >>                 DataHandler dfile;
>> >> >> >> >>                 System.out.println("before getDataHandler 
>>from
>> >> >> >>OMText");
>> >> >> >> >>
>> >> >> >> >>                 //String cid = fnode.getContentID();
>> >> >> >> >>                 //System.out.println(cid);
>> >> >> >> >>
>> >> >> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
>> >> >> >> >>//getDataHandler() and
>> >> >> >> >>broken pipe
>> >> >> >> >>
>> >> >> >> >>                 System.out.println("after create datahandler 
>>for
>> >> >> >> >>OMText");
>> >> >> >> >>
>> >> >> >> >>                 FileOutputStream outfile = new
>> >> >>FileOutputStream(new
>> >> >> >> >>File("/users/alice3/myFile"));
>> >> >> >> >>                 System.out.println("after create a
>> >> >>fileoutputstream");
>> >> >> >> >>                 dfile.writeTo(outfile);
>> >> >> >> >>                 System.out.println("after writeTo()");
>> >> >> >> >>
>> >> >> >> >>                 //System.out.println("Successful 
>>Operation!");
>> >> >> >> >>
>> >> >> >> >>                 OMFactory fac =
>> >>OMAbstractFactory.getOMFactory();
>> >> >> >> >>         OMNamespace ns =
>> >> >>fac.createOMNamespace("urn://fakenamespace",
>> >> >> >> >>"ns");
>> >> >> >> >>         OMElement ele = fac.createOMElement("response", ns);
>> >> >> >> >>         ele.setText("Data Saved");
>> >> >> >> >>         return ele;
>> >> >> >> >>
>> >> >> >> >>         }
>> >> >> >> >>
>> >> >> >> >>}
>> >> >> >> >>
>> >> >> >> >>        services.xml:
>> >> >> >> >>
>> >> >> >> >><service name="FileSecurity" >
>> >> >> >> >>   <description>
>> >> >> >> >>                 This is my service for sending file over
>> >> >>server-client
>> >> >> >> >>with security
>> >> >> >> >>setting
>> >> >> >> >>         </description>
>> >> >> >> >>   <parameter locked="false" name="ServiceClass"
>> >> >> >> >> >security.fileS</parameter>
>> >> >> >> >>   <operation name="fileSecurity" >
>> >> >> >> >>     <messageReceiver
>> >> >> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>> >> >> >> >>   </operation>
>> >> >> >> >>   <parameter name="InflowSecurity" >
>> >> >> >> >>     <action>
>> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >> >>
>> >> >> 
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >> >>     </action>
>> >> >> >> >>   </parameter>
>> >> >> >> >>   <parameter name="OutflowSecurity" >
>> >> >> >> >>     <action>
>> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >> >>       <user>bob</user>
>> >> >> >> >>
>> >> >> 
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >> >>
>> >> >> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>> >> >> >> >>
>> >> >> 
>> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>> >> >> >> >>       <encryptionUser>alice</encryptionUser>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >>     </action>
>> >> >> >> >>   </parameter>
>> >> >> >> >></service>
>> >> >> >> >>
>> >> >> >> >>          and the .aar package is constucted as follow
>> >> >> >> >>
>> >> >> >> >>         security/
>> >> >> >> >>                 security/PWCallback.class
>> >> >> >> >>                 security/fileS.class
>> >> >> >> >>         META-INF/
>> >> >> >> >>                 META-INF/services.xml
>> >> >> >> >>         sec.jks
>> >> >> >> >>         sec.properties
>> >> >> >> >>
>> >> >> >> >>      and the result i get from the TCPMON is that at the 
>>server
>> >> >>side
>> >> >> >> >>
>> >> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >> >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >> >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
>> >> >> >> >>Content-Type: multipart/related;
>> >> >> >> 
>> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
>> >> >> >> >>type="application/xop+xml";
>> >> >> >> 
>> >>start="<0....@apache.org>";
>> >> >> >> >>start-info="text/xml"; charset=UTF-8
>> >> >> >> >>Transfer-Encoding: chunked
>> >> >> >> >>Server: Jetty(6.0.x)
>> >> >> >> >>
>> >> >> >> >>2DA
>> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; 
>>type="text/xml";
>> >> >> >> >>content-transfer-encoding:binary
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >>
>> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >> >> >> >>35B
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; 
>>type="text/xml";
>> >> >> >> >>content-transfer-encoding:binary
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >>
>> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >>security processing failed</faultstring>
>> >> >> >> >>1383
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; 
>>type="text/xml";
>> >> >> >> >>content-transfer-encoding:binary
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >>
>> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >>security processing
>> >> >> >>
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >> >>WSDoAllReceiver: security processing failed; nested exception 
>>is:
>> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >>encrypt/decrypt data;
>> >> >> >> >>nested exception is:
>> >> >> >> >>
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >> >>         at 
>>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >> >>         at
>> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >> >>         at
>> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >> >>         at
>> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >> >>         at
>> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >> >>
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >> >>         ... 24 more
>> >> >> >> >>Caused by:
>> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >>Error
>> >> >> >> >>while decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >> >>         ... 30 more
>> >> >> >> >></Exception></detail>
>> >> >> >> >>13B5
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; 
>>type="text/xml";
>> >> >> >> >>content-transfer-encoding:binary
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >>
>> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >>security processing
>> >> >> >>
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >> >>WSDoAllReceiver: security processing failed; nested exception 
>>is:
>> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >>encrypt/decrypt data;
>> >> >> >> >>nested exception is:
>> >> >> >> >>
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >> >>         at 
>>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >> >>         at
>> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >> >>         at
>> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >> >>         at
>> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >> >>         at
>> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >> >>
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >> >>         ... 24 more
>> >> >> >> >>Caused by:
>> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >>Error
>> >> >> >> >>while decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >> >>         ... 30 more
>> >> >> >>
>> >> >>
>> >> 
>> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >> >> >> >>3B
>> >> >> >> >>
>> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
>> >> >> >> >>0
>> >> >> >> >>
>> >> >> >> >>           The client side message seems to be ok, with all 
>>the
>> >> >> >>encypted
>> >> >> >> >>document.
>> >> >> >> >>
>> >> >> >> >>           Is there any idea what can cause the fault? Greatly
>> >> >> >>appreciate,
>> >> >> >> >>
>> >> >> >> >>          Wan
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >--
>> >> >> >> >www.ruchith.org
>> >> >> >> >
>> >> >> >>
>> >> >---------------------------------------------------------------------
>> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >www.ruchith.org
>> >> >> >
>> >> >> 
>> >---------------------------------------------------------------------
>> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

       I don't quite understand your last email, the rampart configuration 
you mentioned, is it the module configuration in Axis2.xml at the server 
side, isn't it?

       I had configured
    <module ref="addressing"/>
    <module ref="rampart"/>

      in my server axis2.xml.

      from the debug, the server seems to accept the message ok but it can't 
restallation the OMText at the server side.

      Regards,

      Wan

>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Fri, 21 Jul 2006 16:01:48 +0530
>
>Hi Wan,
>
>Have you engaged and configured rampart properly at the service?
>
>If you have not engaged rampart at the service, ... the your
>public OMElement fileSecurity(OMElement element) method will be fed
>with  an OMElement which is the "EncryptedData" element.
>
>Can you debug and see whether the element you receive into the service
>_with_ security is "EncryptedData"? If so you have not
>engaged/configured rampart at the service.
>
>Thanks,
>Ruchith
>
>On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Dear Ruchith,
>>
>>         I have tried put try-catch block in my service, the result thrown 
>>is
>>the same. The same service code is working well with the sending file
>>without the security issue. I have attached the service code with the 
>>email
>>as well as the result thrown by TCPMon
>>
>>package security;
>>
>>import java.io.*;
>>import java.util.Iterator;
>>import org.apache.axiom.om.OMAbstractFactory;
>>import org.apache.axiom.om.OMElement;
>>import org.apache.axiom.om.OMFactory;
>>import org.apache.axiom.om.OMNamespace;
>>import org.apache.axiom.om.OMText;
>>import org.apache.axis2.AxisFault;
>>
>>import javax.activation.DataHandler;
>>//import javax.activation.FileDataSource;
>>/**
>>* @author alice3
>>*
>>* TODO To change the template for this generated type comment go to
>>* Window - Preferences - Java - Code Style - Code Templates
>>*/
>>public class fileS {
>>
>>         public OMElement fileSecurity(OMElement element) throws Exception
>>         {
>>                 //System.out.println(element);
>>
>>                 element.build();
>>                 element.detach();
>>
>>                 //OMElement result;
>>
>>         try {
>>
>>             //result = (OMElement) method.invoke(obj, args);
>>
>>             Iterator children = element.getChildElements();
>>
>>                 OMElement name = (OMElement)children.next();            
>>//get name of the file,
>>first element of element
>>                 OMElement content = (OMElement)children.next();     //get 
>>text that
>>contains the file, second element
>>
>>                 System.out.println("before creating OMText");
>>                 OMText fnode = (OMText)content.getFirstOMChild();
>>                 System.out.println("after creating OMText");
>>//              fnode.setOptimize(true);
>>                 //String fname = name.getText();
>>
>>                 //create data handler to extract the data handler of the 
>>OMText
>>                 DataHandler dfile;
>>                 System.out.println("before getDataHandler from OMText");
>>
>>                 //String cid = fnode.getContentID();
>>                 //System.out.println(cid);
>>
>>                 dfile = (DataHandler)fnode.getDataHandler();  
>>//getDataHandler() and
>>broken pipe
>>
>>                 System.out.println("after create datahandler for 
>>OMText");
>>
>>                 FileOutputStream outfile = new  FileOutputStream(new
>>File("/users/alice3/myFile"));
>>                 System.out.println("after create a fileoutputstream");
>>                 dfile.writeTo(outfile);
>>                 System.out.println("after writeTo()");
>>
>>                 //System.out.println("Successful Operation!");
>>
>>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>>             OMNamespace ns = fac.createOMNamespace("urn://fakenamespace",
>>"ns");
>>             OMElement ele = fac.createOMElement("response", ns);
>>             ele.setText("Data Saved");
>>             return ele;
>>
>>         } catch (Exception e) {
>>
>>             throw new AxisFault(e.getMessage());
>>
>>         }
>>
>>     }
>>}
>>
>>          TCPMon:
>>
>>           HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>>Set-Cookie: JSESSIONID=2awjbkc0xv4ai;path=/axis2
>>Content-Type: text/xml; charset=UTF-8
>>Transfer-Encoding: chunked
>>Server: Jetty(6.0.x)
>>
>>2BE
>><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:C89C196EC8824AC14911534681397753</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo
>>wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:B7D986D0DD96E9306611534681329361</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>>22
>><faultstring>unknown</faultstring>
>>77A
>><detail><Exception>org.apache.axis2.AxisFault
>>         at
>>org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
>>         at
>>org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>>         at 
>>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
>>         at
>>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>>         at 
>>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>>         at 
>>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>>         at 
>>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>>         at 
>>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>>         at 
>>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>>         at
>>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>>         at
>>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>>         at 
>>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>>         at org.mortbay.jetty.Server.handle(Server.java:245)
>>         at 
>>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>>         at 
>>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>>         at
>>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>>         at 
>>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>>         at 
>>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>>         at
>>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>>         at
>>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>></Exception></detail>
>>32
>></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>>0
>>
>>        Regards,
>>
>>        Wan
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Fri, 21 Jul 2006 13:01:47 +0530
>> >
>> >Hi Wan,
>> >
>> >Looking at your stack trace it seems that there's something wrong with
>> >your service. The exception is throw at the point where the service
>> >method is invoked:
>> >
>> >                OMElement result;
>> >
>> >                try {
>> >
>> >                    result = (OMElement) method.invoke(obj, args);
>> >
>> >                } catch (Exception e) {
>> >
>> >                    throw new AxisFault(e.getMessage());
>> >
>> >                }
>> >
>> >Maybe the method is throwing an exception.
>> >
>> >Can you please check your service?
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>Dear Ruchith,
>> >>
>> >>          my mistake, my message receiver in services.xml is
>> >>RAWXMLInOutMessageReceiver.
>> >>          what should i do now?
>> >>
>> >>          Best regards,
>> >>          Wan
>> >>
>> >>
>> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >Reply-To: axis-user@ws.apache.org
>> >> >To: axis-user@ws.apache.org
>> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >Date: Thu, 20 Jul 2006 17:46:18 +0530
>> >> >
>> >> >Hi Wan,
>> >> >
>> >> >Can you also change
>> >> ><parameter name="enableMTOM" locked="false">true</parameter>
>> >> >to
>> >> ><parameter name="enableMTOM" locked="false">false</parameter>
>> >> >
>> >> >in both axis2.xml s (client and server) and try again.
>> >> >
>> >> >And if this fails please send what you see in tcpmon and the 
>>exception.
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >>Thank you Ruchith,
>> >> >>
>> >> >>        I have made change as your advice. However, i still got the
>> >>same
>> >> >>error...
>> >> >>
>> >> >>        Any other possibility?
>> >> >>
>> >> >>        Best regards,
>> >> >>
>> >> >>         Wan
>> >> >>
>> >> >>
>> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >> >Reply-To: axis-user@ws.apache.org
>> >> >> >To: axis-user@ws.apache.org
>> >> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >> >Date: Thu, 20 Jul 2006 16:09:23 +0530
>> >> >> >
>> >> >> >Yes from your services.xml and the client's axis2.xml
>> >> >> >
>> >> >> >Thanks,
>> >> >> >Ruchith
>> >> >> >
>> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >>Dear Ruchith,
>> >> >> >>
>> >> >> >>    you means
>> >> >> >>remove :
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >>
>> >> >> >>     from my services.xml right? or other place?
>> >> >> >>
>> >> >> >>     Wan
>> >> >> >>
>> >> >> >> >
>> >> >> >> >Hi Wan,
>> >> >> >> >
>> >> >> >> >Please remove :
>> >> >> >>
>> >> >>
>> >> 
>> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >
>> >> >> >> >entry from your rampart configuration parameters and try again.
>> >> >> >> >
>> >> >> >> >Thanks,
>> >> >> >> >Ruchith
>> >> >> >> >
>> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >> >>Dear All,
>> >> >> >> >>
>> >> >> >> >>        I have been trying to combine the test about sending 
>>file
>> >> >>and
>> >> >> >> >>securing message.
>> >> >> >> >>        My environment is Axis2 v1.0, nightly build released 4
>> >>June
>> >> >>06
>> >> >> >>on
>> >> >> >> >>the
>> >> >> >> >>Jetty Servlet.
>> >> >> >> >>
>> >> >> >> >>        From other individual test such as sending text file, 
>>and
>> >> >> >>security
>> >> >> >> >>sample had no problem on this, however with the combination 
>>one i
>> >> >>got
>> >> >> >>the
>> >> >> >> >>following error.
>> >> >> >> >>
>> >> >> >> >>        Client code:
>> >> >> >> >>
>> >> >> >> >>/*
>> >> >> >> >>* Created on 19.07.2006
>> >> >> >> >>*
>> >> >> >> >>* TODO To change the template for this generated file go to
>> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >> >> >>*/
>> >> >> >> >>package security;
>> >> >> >> >>
>> >> >> >> >>/**
>> >> >> >> >>* @author alice3
>> >> >> >> >>*
>> >> >> >> >>* TODO To change the template for this generated type comment 
>>go
>> >>to
>> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >> >> >>*/
>> >> >> >> >>
>> >> >> >> >>import org.apache.axiom.om.OMAbstractFactory;
>> >> >> >> >>import org.apache.axiom.om.OMElement;
>> >> >> >> >>import org.apache.axiom.om.OMFactory;
>> >> >> >> >>import org.apache.axiom.om.OMNamespace;
>> >> >> >> >>import org.apache.axiom.om.OMText;
>> >> >> >> >>import org.apache.axis2.AxisFault;
>> >> >> >> >>import org.apache.axis2.Constants;
>> >> >> >> >>import org.apache.axis2.addressing.EndpointReference;
>> >> >> >> >>import org.apache.axis2.client.Options;
>> >> >> >> >>import org.apache.axis2.client.ServiceClient;
>> >> >> >> >>import org.apache.axis2.context.ConfigurationContext;
>> >> >> >> >>import org.apache.axis2.context.ConfigurationContextFactory;
>> >> >> >> >>
>> >> >> >> >>//import org.apache.axis2.soapmonitor.*;
>> >> >> >> >>
>> >> >> >> >>import javax.activation.DataHandler;
>> >> >> >> >>import javax.activation.FileDataSource;
>> >> >> >> >>import javax.xml.namespace.QName;
>> >> >> >> >>import javax.xml.stream.XMLOutputFactory;
>> >> >> >> >>import javax.xml.stream.XMLStreamException;
>> >> >> >> >>
>> >> >> >> >>import java.io.File;
>> >> >> >> >>import java.io.StringWriter;
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>public class SecureClient {
>> >> >> >> >>
>> >> >> >> >>     private File inputFile = null;
>> >> >> >> >>
>> >> >> >> >>     private QName operationName = new QName("fileSecurity");
>> >> >> >> >>
>> >> >> >> >>     public static void main(String[] args) {
>> >> >> >> >>
>> >> >> >> >>         try {
>> >> >> >> >>
>> >> >> >> >>             // Get the repository location from the args
>> >> >> >> >>             String repo = args[0];
>> >> >> >> >>             String port = args[1];
>> >> >> >> >>
>> >> >> >> >>             OMElement payload =
>> >> >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >> >> >> >>             ConfigurationContext configContext =
>> >> >> >>
>> >> >>
>> >> 
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >> >> >> >>null);
>> >> >> >> >>             ServiceClient serviceClient = new
>> >> >> >> >>ServiceClient(configContext,
>> >> >> >> >>null);
>> >> >> >> >>             Options options = new Options();
>> >> >> >> >>             options.setTo(new
>> >>EndpointReference("http://127.0.0.1:"
>> >> >>+
>> >> >> >> >>port +
>> >> >> >> >>"/axis2/services/FileSecurity"));
>> >> >> >> >>             //options.setTo(new
>> >> >> >>
>> >> >>
>> >> 
>> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>> >> >> >> >>
>> >> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> >> >> >>
>> >> >>options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >> >> >> >>Constants.VALUE_TRUE);
>> >> >> >> >>             options.setAction("urn:fileSecurity");
>> >> >> >> >>             serviceClient.setOptions(options);
>> >> >> >> >>
>> >> >> >> >>             //Blocking invocation
>> >> >> >> >>             OMElement result =
>> >>serviceClient.sendReceive(payload);
>> >> >> >> >>
>> >> >> >> >>             StringWriter writer = new StringWriter();
>> >> >> >> >>             result.serialize(XMLOutputFactory.newInstance()
>> >> >> >> >>                     .createXMLStreamWriter(writer));
>> >> >> >> >>             writer.flush();
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>            //System.out.println("Response: " +
>> >>writer.toString());
>> >> >> >> >>
>> >> >> >> >>             System.out.println("SecureService Invocation
>> >>successful
>> >> >> >> >>:-)");
>> >> >> >> >>         } catch (AxisFault axisFault) {
>> >> >> >> >>             axisFault.printStackTrace();
>> >> >> >> >>         } catch (XMLStreamException e) {
>> >> >> >> >>             e.printStackTrace();
>> >> >> >> >>         }
>> >> >> >> >>     }
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>     private static OMElement getEchoElement(String fileName) 
>>{
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>         DataHandler dh;
>> >> >> >> >>
>> >> >> >> >>                 OMFactory fac =
>> >>OMAbstractFactory.getOMFactory();
>> >> >> >> >>             OMNamespace omNs =
>> >> >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
>> >>"example1");
>> >> >> >> >>
>> >> >> >> >>         OMElement data = fac.createOMElement("fileSecurity",
>> >>omNs);
>> >> >> >> >>         OMElement input = fac.createOMElement("file", omNs);
>> >> >> >> >>             OMElement pack = fac.createOMElement("pack", 
>>omNs);
>> >> >> >> >>
>> >> >> >> >>             FileDataSource f1 = new FileDataSource(fileName);
>> >> >> >> >>         dh = new DataHandler(f1);
>> >> >> >> >>
>> >> >> >> >>         OMElement filename = fac.createOMElement("fileName",
>> >>omNs);
>> >> >> >> >>        // OMText textName = fac.createOMText(filename,
>> >> >>"myFile.txt");
>> >> >> >> >>
>> >> >> >> >>         OMText textData = fac.createOMText(dh, true);
>> >> >> >> >>
>> >> >> >> >>         input.addChild(textData);
>> >> >> >> >>
>> >> >> >> >>         pack.addChild(filename);
>> >> >> >> >>         pack.addChild(input);
>> >> >> >> >>         data.addChild(pack);
>> >> >> >> >>
>> >> >> >> >>         //System.out.println(data);
>> >> >> >> >>
>> >> >> >> >>              return data;
>> >> >> >> >>         }
>> >> >> >> >>}
>> >> >> >> >>
>> >> >> >> >>         server code:
>> >> >> >> >>
>> >> >> >> >>public class fileS {
>> >> >> >> >>
>> >> >> >> >>         public OMElement fileSecurity(OMElement element) 
>>throws
>> >> >> >>Exception
>> >> >> >> >>         {
>> >> >> >> >>                 //System.out.println(element);
>> >> >> >> >>
>> >> >> >> >>                 element.build();
>> >> >> >> >>                 element.detach();
>> >> >> >> >>
>> >> >> >> >>             Iterator children = element.getChildElements();
>> >> >> >> >>
>> >> >> >> >>                 OMElement name = (OMElement)children.next();
>> >> >> >> >>//get name of the file,
>> >> >> >> >>first element of element
>> >> >> >> >>                 OMElement content = 
>>(OMElement)children.next();
>> >> >> >>//get
>> >> >> >> >>text that
>> >> >> >> >>contains the file, second element
>> >> >> >> >>
>> >> >> >> >>                 System.out.println("before creating OMText");
>> >> >> >> >>                 OMText fnode =
>> >>(OMText)content.getFirstOMChild();
>> >> >> >> >>                 System.out.println("after creating OMText");
>> >> >> >> >>//              fnode.setOptimize(true);
>> >> >> >> >>                 //String fname = name.getText();
>> >> >> >> >>
>> >> >> >> >>                 //create data handler to extract the data
>> >>handler
>> >> >>of
>> >> >> >>the
>> >> >> >> >>OMText
>> >> >> >> >>                 DataHandler dfile;
>> >> >> >> >>                 System.out.println("before getDataHandler 
>>from
>> >> >> >>OMText");
>> >> >> >> >>
>> >> >> >> >>                 //String cid = fnode.getContentID();
>> >> >> >> >>                 //System.out.println(cid);
>> >> >> >> >>
>> >> >> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
>> >> >> >> >>//getDataHandler() and
>> >> >> >> >>broken pipe
>> >> >> >> >>
>> >> >> >> >>                 System.out.println("after create datahandler 
>>for
>> >> >> >> >>OMText");
>> >> >> >> >>
>> >> >> >> >>                 FileOutputStream outfile = new
>> >> >>FileOutputStream(new
>> >> >> >> >>File("/users/alice3/myFile"));
>> >> >> >> >>                 System.out.println("after create a
>> >> >>fileoutputstream");
>> >> >> >> >>                 dfile.writeTo(outfile);
>> >> >> >> >>                 System.out.println("after writeTo()");
>> >> >> >> >>
>> >> >> >> >>                 //System.out.println("Successful 
>>Operation!");
>> >> >> >> >>
>> >> >> >> >>                 OMFactory fac =
>> >>OMAbstractFactory.getOMFactory();
>> >> >> >> >>         OMNamespace ns =
>> >> >>fac.createOMNamespace("urn://fakenamespace",
>> >> >> >> >>"ns");
>> >> >> >> >>         OMElement ele = fac.createOMElement("response", ns);
>> >> >> >> >>         ele.setText("Data Saved");
>> >> >> >> >>         return ele;
>> >> >> >> >>
>> >> >> >> >>         }
>> >> >> >> >>
>> >> >> >> >>}
>> >> >> >> >>
>> >> >> >> >>        services.xml:
>> >> >> >> >>
>> >> >> >> >><service name="FileSecurity" >
>> >> >> >> >>   <description>
>> >> >> >> >>                 This is my service for sending file over
>> >> >>server-client
>> >> >> >> >>with security
>> >> >> >> >>setting
>> >> >> >> >>         </description>
>> >> >> >> >>   <parameter locked="false" name="ServiceClass"
>> >> >> >> >> >security.fileS</parameter>
>> >> >> >> >>   <operation name="fileSecurity" >
>> >> >> >> >>     <messageReceiver
>> >> >> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>> >> >> >> >>   </operation>
>> >> >> >> >>   <parameter name="InflowSecurity" >
>> >> >> >> >>     <action>
>> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >> >>
>> >> >> 
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >> >>     </action>
>> >> >> >> >>   </parameter>
>> >> >> >> >>   <parameter name="OutflowSecurity" >
>> >> >> >> >>     <action>
>> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >> >>       <user>bob</user>
>> >> >> >> >>
>> >> >> 
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >> >>
>> >> >> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>> >> >> >> >>
>> >> >> 
>> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>> >> >> >> >>       <encryptionUser>alice</encryptionUser>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >> >>     </action>
>> >> >> >> >>   </parameter>
>> >> >> >> >></service>
>> >> >> >> >>
>> >> >> >> >>          and the .aar package is constucted as follow
>> >> >> >> >>
>> >> >> >> >>         security/
>> >> >> >> >>                 security/PWCallback.class
>> >> >> >> >>                 security/fileS.class
>> >> >> >> >>         META-INF/
>> >> >> >> >>                 META-INF/services.xml
>> >> >> >> >>         sec.jks
>> >> >> >> >>         sec.properties
>> >> >> >> >>
>> >> >> >> >>      and the result i get from the TCPMON is that at the 
>>server
>> >> >>side
>> >> >> >> >>
>> >> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >> >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >> >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
>> >> >> >> >>Content-Type: multipart/related;
>> >> >> >> 
>> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
>> >> >> >> >>type="application/xop+xml";
>> >> >> >> 
>> >>start="<0....@apache.org>";
>> >> >> >> >>start-info="text/xml"; charset=UTF-8
>> >> >> >> >>Transfer-Encoding: chunked
>> >> >> >> >>Server: Jetty(6.0.x)
>> >> >> >> >>
>> >> >> >> >>2DA
>> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; 
>>type="text/xml";
>> >> >> >> >>content-transfer-encoding:binary
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >>
>> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >> >> >> >>35B
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; 
>>type="text/xml";
>> >> >> >> >>content-transfer-encoding:binary
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >>
>> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >>security processing failed</faultstring>
>> >> >> >> >>1383
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; 
>>type="text/xml";
>> >> >> >> >>content-transfer-encoding:binary
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >>
>> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >>security processing
>> >> >> >>
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >> >>WSDoAllReceiver: security processing failed; nested exception 
>>is:
>> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >>encrypt/decrypt data;
>> >> >> >> >>nested exception is:
>> >> >> >> >>
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >> >>         at 
>>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >> >>         at
>> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >> >>         at
>> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >> >>         at
>> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >> >>         at
>> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >> >>
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >> >>         ... 24 more
>> >> >> >> >>Caused by:
>> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >>Error
>> >> >> >> >>while decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >> >>         ... 30 more
>> >> >> >> >></Exception></detail>
>> >> >> >> >>13B5
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; 
>>type="text/xml";
>> >> >> >> >>content-transfer-encoding:binary
>> >> >> >>
>> >> >>content-id:<0....@apache.org>
>> >> >> >> >>
>> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >> >>
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >> >>security processing
>> >> >> >>
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >> >>WSDoAllReceiver: security processing failed; nested exception 
>>is:
>> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >>encrypt/decrypt data;
>> >> >> >> >>nested exception is:
>> >> >> >> >>
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >> >>         at 
>>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >> >>         at
>> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >> >>         at
>> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >> >>         at
>> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >> >>         at
>> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >> >>         at
>> >> >> >> 
>> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >> >>
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >> >>         ... 24 more
>> >> >> >> >>Caused by:
>> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >> >>Error
>> >> >> >> >>while decoding
>> >> >> >> >>Original Exception was
>> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: 
>>Error
>> >> >>while
>> >> >> >> >>decoding
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >> >>Source)
>> >> >> >> >>         at
>> >> >> >>
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >> >>         ... 30 more
>> >> >> >>
>> >> >>
>> >> 
>> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >> >> >> >>3B
>> >> >> >> >>
>> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
>> >> >> >> >>0
>> >> >> >> >>
>> >> >> >> >>           The client side message seems to be ok, with all 
>>the
>> >> >> >>encypted
>> >> >> >> >>document.
>> >> >> >> >>
>> >> >> >> >>           Is there any idea what can cause the fault? Greatly
>> >> >> >>appreciate,
>> >> >> >> >>
>> >> >> >> >>          Wan
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >--
>> >> >> >> >www.ruchith.org
>> >> >> >> >
>> >> >> >>
>> >> >---------------------------------------------------------------------
>> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >www.ruchith.org
>> >> >> >
>> >> >> 
>> >---------------------------------------------------------------------
>> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Have you engaged and configured rampart properly at the service?

If you have not engaged rampart at the service, ... the your
public OMElement fileSecurity(OMElement element) method will be fed
with  an OMElement which is the "EncryptedData" element.

Can you debug and see whether the element you receive into the service
_with_ security is "EncryptedData"? If so you have not
engaged/configured rampart at the service.

Thanks,
Ruchith

On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Dear Ruchith,
>
>         I have tried put try-catch block in my service, the result thrown is
> the same. The same service code is working well with the sending file
> without the security issue. I have attached the service code with the email
> as well as the result thrown by TCPMon
>
> package security;
>
> import java.io.*;
> import java.util.Iterator;
> import org.apache.axiom.om.OMAbstractFactory;
> import org.apache.axiom.om.OMElement;
> import org.apache.axiom.om.OMFactory;
> import org.apache.axiom.om.OMNamespace;
> import org.apache.axiom.om.OMText;
> import org.apache.axis2.AxisFault;
>
> import javax.activation.DataHandler;
> //import javax.activation.FileDataSource;
> /**
> * @author alice3
> *
> * TODO To change the template for this generated type comment go to
> * Window - Preferences - Java - Code Style - Code Templates
> */
> public class fileS {
>
>         public OMElement fileSecurity(OMElement element) throws Exception
>         {
>                 //System.out.println(element);
>
>                 element.build();
>                 element.detach();
>
>                 //OMElement result;
>
>         try {
>
>             //result = (OMElement) method.invoke(obj, args);
>
>             Iterator children = element.getChildElements();
>
>                 OMElement name = (OMElement)children.next();            //get name of the file,
> first element of element
>                 OMElement content = (OMElement)children.next();     //get text that
> contains the file, second element
>
>                 System.out.println("before creating OMText");
>                 OMText fnode = (OMText)content.getFirstOMChild();
>                 System.out.println("after creating OMText");
> //              fnode.setOptimize(true);
>                 //String fname = name.getText();
>
>                 //create data handler to extract the data handler of the OMText
>                 DataHandler dfile;
>                 System.out.println("before getDataHandler from OMText");
>
>                 //String cid = fnode.getContentID();
>                 //System.out.println(cid);
>
>                 dfile = (DataHandler)fnode.getDataHandler();  //getDataHandler() and
> broken pipe
>
>                 System.out.println("after create datahandler for OMText");
>
>                 FileOutputStream outfile = new  FileOutputStream(new
> File("/users/alice3/myFile"));
>                 System.out.println("after create a fileoutputstream");
>                 dfile.writeTo(outfile);
>                 System.out.println("after writeTo()");
>
>                 //System.out.println("Successful Operation!");
>
>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>             OMNamespace ns = fac.createOMNamespace("urn://fakenamespace",
> "ns");
>             OMElement ele = fac.createOMElement("response", ns);
>             ele.setText("Data Saved");
>             return ele;
>
>         } catch (Exception e) {
>
>             throw new AxisFault(e.getMessage());
>
>         }
>
>     }
> }
>
>          TCPMon:
>
>           HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Set-Cookie: JSESSIONID=2awjbkc0xv4ai;path=/axis2
> Content-Type: text/xml; charset=UTF-8
> Transfer-Encoding: chunked
> Server: Jetty(6.0.x)
>
> 2BE
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:C89C196EC8824AC14911534681397753</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo
> wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:B7D986D0DD96E9306611534681329361</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> 22
> <faultstring>unknown</faultstring>
> 77A
> <detail><Exception>org.apache.axis2.AxisFault
>         at
> org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
>         at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>         at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>         at org.mortbay.jetty.Server.handle(Server.java:245)
>         at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>         at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>         at
> org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>         at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> </Exception></detail>
> 32
> </soapenv:Fault></soapenv:Body></soapenv:Envelope>
> 0
>
>        Regards,
>
>        Wan
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] send file with security
> >Date: Fri, 21 Jul 2006 13:01:47 +0530
> >
> >Hi Wan,
> >
> >Looking at your stack trace it seems that there's something wrong with
> >your service. The exception is throw at the point where the service
> >method is invoked:
> >
> >                OMElement result;
> >
> >                try {
> >
> >                    result = (OMElement) method.invoke(obj, args);
> >
> >                } catch (Exception e) {
> >
> >                    throw new AxisFault(e.getMessage());
> >
> >                }
> >
> >Maybe the method is throwing an exception.
> >
> >Can you please check your service?
> >
> >Thanks,
> >Ruchith
> >
> >On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>Dear Ruchith,
> >>
> >>          my mistake, my message receiver in services.xml is
> >>RAWXMLInOutMessageReceiver.
> >>          what should i do now?
> >>
> >>          Best regards,
> >>          Wan
> >>
> >>
> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >Date: Thu, 20 Jul 2006 17:46:18 +0530
> >> >
> >> >Hi Wan,
> >> >
> >> >Can you also change
> >> ><parameter name="enableMTOM" locked="false">true</parameter>
> >> >to
> >> ><parameter name="enableMTOM" locked="false">false</parameter>
> >> >
> >> >in both axis2.xml s (client and server) and try again.
> >> >
> >> >And if this fails please send what you see in tcpmon and the exception.
> >> >
> >> >Thanks,
> >> >Ruchith
> >> >
> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >>Thank you Ruchith,
> >> >>
> >> >>        I have made change as your advice. However, i still got the
> >>same
> >> >>error...
> >> >>
> >> >>        Any other possibility?
> >> >>
> >> >>        Best regards,
> >> >>
> >> >>         Wan
> >> >>
> >> >>
> >> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >> >Reply-To: axis-user@ws.apache.org
> >> >> >To: axis-user@ws.apache.org
> >> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >> >Date: Thu, 20 Jul 2006 16:09:23 +0530
> >> >> >
> >> >> >Yes from your services.xml and the client's axis2.xml
> >> >> >
> >> >> >Thanks,
> >> >> >Ruchith
> >> >> >
> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >>Dear Ruchith,
> >> >> >>
> >> >> >>    you means
> >> >> >>remove :
> >> >>
> >> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >>
> >> >> >>     from my services.xml right? or other place?
> >> >> >>
> >> >> >>     Wan
> >> >> >>
> >> >> >> >
> >> >> >> >Hi Wan,
> >> >> >> >
> >> >> >> >Please remove :
> >> >> >>
> >> >>
> >> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >> >
> >> >> >> >entry from your rampart configuration parameters and try again.
> >> >> >> >
> >> >> >> >Thanks,
> >> >> >> >Ruchith
> >> >> >> >
> >> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >> >>Dear All,
> >> >> >> >>
> >> >> >> >>        I have been trying to combine the test about sending file
> >> >>and
> >> >> >> >>securing message.
> >> >> >> >>        My environment is Axis2 v1.0, nightly build released 4
> >>June
> >> >>06
> >> >> >>on
> >> >> >> >>the
> >> >> >> >>Jetty Servlet.
> >> >> >> >>
> >> >> >> >>        From other individual test such as sending text file, and
> >> >> >>security
> >> >> >> >>sample had no problem on this, however with the combination one i
> >> >>got
> >> >> >>the
> >> >> >> >>following error.
> >> >> >> >>
> >> >> >> >>        Client code:
> >> >> >> >>
> >> >> >> >>/*
> >> >> >> >>* Created on 19.07.2006
> >> >> >> >>*
> >> >> >> >>* TODO To change the template for this generated file go to
> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >> >> >>*/
> >> >> >> >>package security;
> >> >> >> >>
> >> >> >> >>/**
> >> >> >> >>* @author alice3
> >> >> >> >>*
> >> >> >> >>* TODO To change the template for this generated type comment go
> >>to
> >> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >> >> >>*/
> >> >> >> >>
> >> >> >> >>import org.apache.axiom.om.OMAbstractFactory;
> >> >> >> >>import org.apache.axiom.om.OMElement;
> >> >> >> >>import org.apache.axiom.om.OMFactory;
> >> >> >> >>import org.apache.axiom.om.OMNamespace;
> >> >> >> >>import org.apache.axiom.om.OMText;
> >> >> >> >>import org.apache.axis2.AxisFault;
> >> >> >> >>import org.apache.axis2.Constants;
> >> >> >> >>import org.apache.axis2.addressing.EndpointReference;
> >> >> >> >>import org.apache.axis2.client.Options;
> >> >> >> >>import org.apache.axis2.client.ServiceClient;
> >> >> >> >>import org.apache.axis2.context.ConfigurationContext;
> >> >> >> >>import org.apache.axis2.context.ConfigurationContextFactory;
> >> >> >> >>
> >> >> >> >>//import org.apache.axis2.soapmonitor.*;
> >> >> >> >>
> >> >> >> >>import javax.activation.DataHandler;
> >> >> >> >>import javax.activation.FileDataSource;
> >> >> >> >>import javax.xml.namespace.QName;
> >> >> >> >>import javax.xml.stream.XMLOutputFactory;
> >> >> >> >>import javax.xml.stream.XMLStreamException;
> >> >> >> >>
> >> >> >> >>import java.io.File;
> >> >> >> >>import java.io.StringWriter;
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>public class SecureClient {
> >> >> >> >>
> >> >> >> >>     private File inputFile = null;
> >> >> >> >>
> >> >> >> >>     private QName operationName = new QName("fileSecurity");
> >> >> >> >>
> >> >> >> >>     public static void main(String[] args) {
> >> >> >> >>
> >> >> >> >>         try {
> >> >> >> >>
> >> >> >> >>             // Get the repository location from the args
> >> >> >> >>             String repo = args[0];
> >> >> >> >>             String port = args[1];
> >> >> >> >>
> >> >> >> >>             OMElement payload =
> >> >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >> >> >> >>             ConfigurationContext configContext =
> >> >> >>
> >> >>
> >> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> >> >> >> >>null);
> >> >> >> >>             ServiceClient serviceClient = new
> >> >> >> >>ServiceClient(configContext,
> >> >> >> >>null);
> >> >> >> >>             Options options = new Options();
> >> >> >> >>             options.setTo(new
> >>EndpointReference("http://127.0.0.1:"
> >> >>+
> >> >> >> >>port +
> >> >> >> >>"/axis2/services/FileSecurity"));
> >> >> >> >>             //options.setTo(new
> >> >> >>
> >> >>
> >> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
> >> >> >> >>
> >> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >> >> >>
> >> >>options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >> >> >>Constants.VALUE_TRUE);
> >> >> >> >>             options.setAction("urn:fileSecurity");
> >> >> >> >>             serviceClient.setOptions(options);
> >> >> >> >>
> >> >> >> >>             //Blocking invocation
> >> >> >> >>             OMElement result =
> >>serviceClient.sendReceive(payload);
> >> >> >> >>
> >> >> >> >>             StringWriter writer = new StringWriter();
> >> >> >> >>             result.serialize(XMLOutputFactory.newInstance()
> >> >> >> >>                     .createXMLStreamWriter(writer));
> >> >> >> >>             writer.flush();
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>            //System.out.println("Response: " +
> >>writer.toString());
> >> >> >> >>
> >> >> >> >>             System.out.println("SecureService Invocation
> >>successful
> >> >> >> >>:-)");
> >> >> >> >>         } catch (AxisFault axisFault) {
> >> >> >> >>             axisFault.printStackTrace();
> >> >> >> >>         } catch (XMLStreamException e) {
> >> >> >> >>             e.printStackTrace();
> >> >> >> >>         }
> >> >> >> >>     }
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>     private static OMElement getEchoElement(String fileName) {
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>         DataHandler dh;
> >> >> >> >>
> >> >> >> >>                 OMFactory fac =
> >>OMAbstractFactory.getOMFactory();
> >> >> >> >>             OMNamespace omNs =
> >> >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd",
> >>"example1");
> >> >> >> >>
> >> >> >> >>         OMElement data = fac.createOMElement("fileSecurity",
> >>omNs);
> >> >> >> >>         OMElement input = fac.createOMElement("file", omNs);
> >> >> >> >>             OMElement pack = fac.createOMElement("pack", omNs);
> >> >> >> >>
> >> >> >> >>             FileDataSource f1 = new FileDataSource(fileName);
> >> >> >> >>         dh = new DataHandler(f1);
> >> >> >> >>
> >> >> >> >>         OMElement filename = fac.createOMElement("fileName",
> >>omNs);
> >> >> >> >>        // OMText textName = fac.createOMText(filename,
> >> >>"myFile.txt");
> >> >> >> >>
> >> >> >> >>         OMText textData = fac.createOMText(dh, true);
> >> >> >> >>
> >> >> >> >>         input.addChild(textData);
> >> >> >> >>
> >> >> >> >>         pack.addChild(filename);
> >> >> >> >>         pack.addChild(input);
> >> >> >> >>         data.addChild(pack);
> >> >> >> >>
> >> >> >> >>         //System.out.println(data);
> >> >> >> >>
> >> >> >> >>              return data;
> >> >> >> >>         }
> >> >> >> >>}
> >> >> >> >>
> >> >> >> >>         server code:
> >> >> >> >>
> >> >> >> >>public class fileS {
> >> >> >> >>
> >> >> >> >>         public OMElement fileSecurity(OMElement element) throws
> >> >> >>Exception
> >> >> >> >>         {
> >> >> >> >>                 //System.out.println(element);
> >> >> >> >>
> >> >> >> >>                 element.build();
> >> >> >> >>                 element.detach();
> >> >> >> >>
> >> >> >> >>             Iterator children = element.getChildElements();
> >> >> >> >>
> >> >> >> >>                 OMElement name = (OMElement)children.next();
> >> >> >> >>//get name of the file,
> >> >> >> >>first element of element
> >> >> >> >>                 OMElement content = (OMElement)children.next();
> >> >> >>//get
> >> >> >> >>text that
> >> >> >> >>contains the file, second element
> >> >> >> >>
> >> >> >> >>                 System.out.println("before creating OMText");
> >> >> >> >>                 OMText fnode =
> >>(OMText)content.getFirstOMChild();
> >> >> >> >>                 System.out.println("after creating OMText");
> >> >> >> >>//              fnode.setOptimize(true);
> >> >> >> >>                 //String fname = name.getText();
> >> >> >> >>
> >> >> >> >>                 //create data handler to extract the data
> >>handler
> >> >>of
> >> >> >>the
> >> >> >> >>OMText
> >> >> >> >>                 DataHandler dfile;
> >> >> >> >>                 System.out.println("before getDataHandler from
> >> >> >>OMText");
> >> >> >> >>
> >> >> >> >>                 //String cid = fnode.getContentID();
> >> >> >> >>                 //System.out.println(cid);
> >> >> >> >>
> >> >> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
> >> >> >> >>//getDataHandler() and
> >> >> >> >>broken pipe
> >> >> >> >>
> >> >> >> >>                 System.out.println("after create datahandler for
> >> >> >> >>OMText");
> >> >> >> >>
> >> >> >> >>                 FileOutputStream outfile = new
> >> >>FileOutputStream(new
> >> >> >> >>File("/users/alice3/myFile"));
> >> >> >> >>                 System.out.println("after create a
> >> >>fileoutputstream");
> >> >> >> >>                 dfile.writeTo(outfile);
> >> >> >> >>                 System.out.println("after writeTo()");
> >> >> >> >>
> >> >> >> >>                 //System.out.println("Successful Operation!");
> >> >> >> >>
> >> >> >> >>                 OMFactory fac =
> >>OMAbstractFactory.getOMFactory();
> >> >> >> >>         OMNamespace ns =
> >> >>fac.createOMNamespace("urn://fakenamespace",
> >> >> >> >>"ns");
> >> >> >> >>         OMElement ele = fac.createOMElement("response", ns);
> >> >> >> >>         ele.setText("Data Saved");
> >> >> >> >>         return ele;
> >> >> >> >>
> >> >> >> >>         }
> >> >> >> >>
> >> >> >> >>}
> >> >> >> >>
> >> >> >> >>        services.xml:
> >> >> >> >>
> >> >> >> >><service name="FileSecurity" >
> >> >> >> >>   <description>
> >> >> >> >>                 This is my service for sending file over
> >> >>server-client
> >> >> >> >>with security
> >> >> >> >>setting
> >> >> >> >>         </description>
> >> >> >> >>   <parameter locked="false" name="ServiceClass"
> >> >> >> >> >security.fileS</parameter>
> >> >> >> >>   <operation name="fileSecurity" >
> >> >> >> >>     <messageReceiver
> >> >> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
> >> >> >> >>   </operation>
> >> >> >> >>   <parameter name="InflowSecurity" >
> >> >> >> >>     <action>
> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >> >> >>
> >> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >> >> >> >>     </action>
> >> >> >> >>   </parameter>
> >> >> >> >>   <parameter name="OutflowSecurity" >
> >> >> >> >>     <action>
> >> >> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >> >> >>       <user>bob</user>
> >> >> >> >>
> >> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >> >> >> >>
> >> >> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
> >> >> >> >>
> >> >> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
> >> >> >> >>       <encryptionUser>alice</encryptionUser>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >> >>     </action>
> >> >> >> >>   </parameter>
> >> >> >> >></service>
> >> >> >> >>
> >> >> >> >>          and the .aar package is constucted as follow
> >> >> >> >>
> >> >> >> >>         security/
> >> >> >> >>                 security/PWCallback.class
> >> >> >> >>                 security/fileS.class
> >> >> >> >>         META-INF/
> >> >> >> >>                 META-INF/services.xml
> >> >> >> >>         sec.jks
> >> >> >> >>         sec.properties
> >> >> >> >>
> >> >> >> >>      and the result i get from the TCPMON is that at the server
> >> >>side
> >> >> >> >>
> >> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> >> >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
> >> >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
> >> >> >> >>Content-Type: multipart/related;
> >> >> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
> >> >> >> >>type="application/xop+xml";
> >> >> >> >>start="<0....@apache.org>";
> >> >> >> >>start-info="text/xml"; charset=UTF-8
> >> >> >> >>Transfer-Encoding: chunked
> >> >> >> >>Server: Jetty(6.0.x)
> >> >> >> >>
> >> >> >> >>2DA
> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >> >> >>content-transfer-encoding:binary
> >> >> >>
> >> >>content-id:<0....@apache.org>
> >> >> >> >>
> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> >> >> >> >>35B
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >> >> >>content-transfer-encoding:binary
> >> >> >>
> >> >>content-id:<0....@apache.org>
> >> >> >> >>
> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >> >>security processing failed</faultstring>
> >> >> >> >>1383
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >> >> >>content-transfer-encoding:binary
> >> >> >>
> >> >>content-id:<0....@apache.org>
> >> >> >> >>
> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >> >>security processing
> >> >> >>
> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >> >> >>WSDoAllReceiver: security processing failed; nested exception is:
> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >>encrypt/decrypt data;
> >> >> >> >>nested exception is:
> >> >> >> >>
> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >>Error
> >> >> >> >>while
> >> >> >> >>decoding
> >> >> >> >>Original Exception was
> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >> >>while
> >> >> >> >>decoding
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >> >> >>         at
> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >> >> >>         at
> >> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >> >> >>         at
> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >> >> >>         at
> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >> >> >>         at
> >> >> >>
> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >> >> >>         at
> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >> >> >>         at
> >> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >> >> >>         at
> >> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >>encrypt/decrypt data; nested exception is:
> >> >> >> >>
> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >>Error
> >> >> >> >>while
> >> >> >> >>decoding
> >> >> >> >>Original Exception was
> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >> >>while
> >> >> >> >>decoding
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >> >> >>         ... 24 more
> >> >> >> >>Caused by:
> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >>Error
> >> >> >> >>while decoding
> >> >> >> >>Original Exception was
> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >> >>while
> >> >> >> >>decoding
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >> >> >>         ... 30 more
> >> >> >> >></Exception></detail>
> >> >> >> >>13B5
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >> >> >>content-transfer-encoding:binary
> >> >> >>
> >> >>content-id:<0....@apache.org>
> >> >> >> >>
> >> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >> >>
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >> >>security processing
> >> >> >>
> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >> >> >>WSDoAllReceiver: security processing failed; nested exception is:
> >> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >>encrypt/decrypt data;
> >> >> >> >>nested exception is:
> >> >> >> >>
> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >>Error
> >> >> >> >>while
> >> >> >> >>decoding
> >> >> >> >>Original Exception was
> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >> >>while
> >> >> >> >>decoding
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >> >> >>         at
> >> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >> >> >>         at
> >> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >> >> >>         at
> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >> >> >>         at
> >> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >> >> >>         at
> >> >> >>
> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >> >> >>         at
> >> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >> >> >>         at
> >> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >> >> >>         at
> >> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >> >> >> >>encrypt/decrypt data; nested exception is:
> >> >> >> >>
> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >>Error
> >> >> >> >>while
> >> >> >> >>decoding
> >> >> >> >>Original Exception was
> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >> >>while
> >> >> >> >>decoding
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >> >> >>         ... 24 more
> >> >> >> >>Caused by:
> >> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >> >>Error
> >> >> >> >>while decoding
> >> >> >> >>Original Exception was
> >> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >> >>while
> >> >> >> >>decoding
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >> >> >>Source)
> >> >> >> >>         at
> >> >> >>
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >> >> >>         ... 30 more
> >> >> >>
> >> >>
> >> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> >> >> >> >>3B
> >> >> >> >>
> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
> >> >> >> >>0
> >> >> >> >>
> >> >> >> >>           The client side message seems to be ok, with all the
> >> >> >>encypted
> >> >> >> >>document.
> >> >> >> >>
> >> >> >> >>           Is there any idea what can cause the fault? Greatly
> >> >> >>appreciate,
> >> >> >> >>
> >> >> >> >>          Wan
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >--
> >> >> >> >www.ruchith.org
> >> >> >> >
> >> >> >>
> >> >---------------------------------------------------------------------
> >> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> >--
> >> >> >www.ruchith.org
> >> >> >
> >> >> >---------------------------------------------------------------------
> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >www.ruchith.org
> >> >
> >> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

        I have tried put try-catch block in my service, the result thrown is 
the same. The same service code is working well with the sending file 
without the security issue. I have attached the service code with the email 
as well as the result thrown by TCPMon

package security;

import java.io.*;
import java.util.Iterator;
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMText;
import org.apache.axis2.AxisFault;

import javax.activation.DataHandler;
//import javax.activation.FileDataSource;
/**
* @author alice3
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class fileS {

	public OMElement fileSecurity(OMElement element) throws Exception
	{
		//System.out.println(element);

		element.build();
		element.detach();

		//OMElement result;

        try {

            //result = (OMElement) method.invoke(obj, args);

            Iterator children = element.getChildElements();

    		OMElement name = (OMElement)children.next(); 		//get name of the file, 
first element of element
    		OMElement content = (OMElement)children.next();     //get text that 
contains the file, second element

    		System.out.println("before creating OMText");
    		OMText fnode = (OMText)content.getFirstOMChild();
    		System.out.println("after creating OMText");
//    		fnode.setOptimize(true);
    		//String fname = name.getText();

    		//create data handler to extract the data handler of the OMText
    		DataHandler dfile;
    		System.out.println("before getDataHandler from OMText");

    		//String cid = fnode.getContentID();
    		//System.out.println(cid);

    		dfile = (DataHandler)fnode.getDataHandler();  //getDataHandler() and 
broken pipe

    		System.out.println("after create datahandler for OMText");

    		FileOutputStream outfile = new  FileOutputStream(new 
File("/users/alice3/myFile"));
    		System.out.println("after create a fileoutputstream");
    		dfile.writeTo(outfile);
    		System.out.println("after writeTo()");

    		//System.out.println("Successful Operation!");

    		OMFactory fac = OMAbstractFactory.getOMFactory();
            OMNamespace ns = fac.createOMNamespace("urn://fakenamespace", 
"ns");
            OMElement ele = fac.createOMElement("response", ns);
            ele.setText("Data Saved");
            return ele;

        } catch (Exception e) {

            throw new AxisFault(e.getMessage());

        }

    }
}

         TCPMon:

          HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=2awjbkc0xv4ai;path=/axis2
Content-Type: text/xml; charset=UTF-8
Transfer-Encoding: chunked
Server: Jetty(6.0.x)

2BE
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:C89C196EC8824AC14911534681397753</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo 
wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:B7D986D0DD96E9306611534681329361</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
22
<faultstring>unknown</faultstring>
77A
<detail><Exception>org.apache.axis2.AxisFault
	at 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
	at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
	at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
	at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
	at org.mortbay.jetty.Server.handle(Server.java:245)
	at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
	at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
	at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
	at 
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
	at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
</Exception></detail>
32
</soapenv:Fault></soapenv:Body></soapenv:Envelope>
0

       Regards,

       Wan


>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Fri, 21 Jul 2006 13:01:47 +0530
>
>Hi Wan,
>
>Looking at your stack trace it seems that there's something wrong with
>your service. The exception is throw at the point where the service
>method is invoked:
>
>                OMElement result;
>
>                try {
>
>                    result = (OMElement) method.invoke(obj, args);
>
>                } catch (Exception e) {
>
>                    throw new AxisFault(e.getMessage());
>
>                }
>
>Maybe the method is throwing an exception.
>
>Can you please check your service?
>
>Thanks,
>Ruchith
>
>On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Dear Ruchith,
>>
>>          my mistake, my message receiver in services.xml is
>>RAWXMLInOutMessageReceiver.
>>          what should i do now?
>>
>>          Best regards,
>>          Wan
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Thu, 20 Jul 2006 17:46:18 +0530
>> >
>> >Hi Wan,
>> >
>> >Can you also change
>> ><parameter name="enableMTOM" locked="false">true</parameter>
>> >to
>> ><parameter name="enableMTOM" locked="false">false</parameter>
>> >
>> >in both axis2.xml s (client and server) and try again.
>> >
>> >And if this fails please send what you see in tcpmon and the exception.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>Thank you Ruchith,
>> >>
>> >>        I have made change as your advice. However, i still got the 
>>same
>> >>error...
>> >>
>> >>        Any other possibility?
>> >>
>> >>        Best regards,
>> >>
>> >>         Wan
>> >>
>> >>
>> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >Reply-To: axis-user@ws.apache.org
>> >> >To: axis-user@ws.apache.org
>> >> >Subject: Re: [Axis2 v1.0] send file with security
>> >> >Date: Thu, 20 Jul 2006 16:09:23 +0530
>> >> >
>> >> >Yes from your services.xml and the client's axis2.xml
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >>Dear Ruchith,
>> >> >>
>> >> >>    you means
>> >> >>remove :
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >>
>> >> >>     from my services.xml right? or other place?
>> >> >>
>> >> >>     Wan
>> >> >>
>> >> >> >
>> >> >> >Hi Wan,
>> >> >> >
>> >> >> >Please remove :
>> >> >>
>> >> 
>> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >
>> >> >> >entry from your rampart configuration parameters and try again.
>> >> >> >
>> >> >> >Thanks,
>> >> >> >Ruchith
>> >> >> >
>> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >> >>Dear All,
>> >> >> >>
>> >> >> >>        I have been trying to combine the test about sending file
>> >>and
>> >> >> >>securing message.
>> >> >> >>        My environment is Axis2 v1.0, nightly build released 4 
>>June
>> >>06
>> >> >>on
>> >> >> >>the
>> >> >> >>Jetty Servlet.
>> >> >> >>
>> >> >> >>        From other individual test such as sending text file, and
>> >> >>security
>> >> >> >>sample had no problem on this, however with the combination one i
>> >>got
>> >> >>the
>> >> >> >>following error.
>> >> >> >>
>> >> >> >>        Client code:
>> >> >> >>
>> >> >> >>/*
>> >> >> >>* Created on 19.07.2006
>> >> >> >>*
>> >> >> >>* TODO To change the template for this generated file go to
>> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >> >>*/
>> >> >> >>package security;
>> >> >> >>
>> >> >> >>/**
>> >> >> >>* @author alice3
>> >> >> >>*
>> >> >> >>* TODO To change the template for this generated type comment go 
>>to
>> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >> >>*/
>> >> >> >>
>> >> >> >>import org.apache.axiom.om.OMAbstractFactory;
>> >> >> >>import org.apache.axiom.om.OMElement;
>> >> >> >>import org.apache.axiom.om.OMFactory;
>> >> >> >>import org.apache.axiom.om.OMNamespace;
>> >> >> >>import org.apache.axiom.om.OMText;
>> >> >> >>import org.apache.axis2.AxisFault;
>> >> >> >>import org.apache.axis2.Constants;
>> >> >> >>import org.apache.axis2.addressing.EndpointReference;
>> >> >> >>import org.apache.axis2.client.Options;
>> >> >> >>import org.apache.axis2.client.ServiceClient;
>> >> >> >>import org.apache.axis2.context.ConfigurationContext;
>> >> >> >>import org.apache.axis2.context.ConfigurationContextFactory;
>> >> >> >>
>> >> >> >>//import org.apache.axis2.soapmonitor.*;
>> >> >> >>
>> >> >> >>import javax.activation.DataHandler;
>> >> >> >>import javax.activation.FileDataSource;
>> >> >> >>import javax.xml.namespace.QName;
>> >> >> >>import javax.xml.stream.XMLOutputFactory;
>> >> >> >>import javax.xml.stream.XMLStreamException;
>> >> >> >>
>> >> >> >>import java.io.File;
>> >> >> >>import java.io.StringWriter;
>> >> >> >>
>> >> >> >>
>> >> >> >>public class SecureClient {
>> >> >> >>
>> >> >> >>     private File inputFile = null;
>> >> >> >>
>> >> >> >>     private QName operationName = new QName("fileSecurity");
>> >> >> >>
>> >> >> >>     public static void main(String[] args) {
>> >> >> >>
>> >> >> >>         try {
>> >> >> >>
>> >> >> >>             // Get the repository location from the args
>> >> >> >>             String repo = args[0];
>> >> >> >>             String port = args[1];
>> >> >> >>
>> >> >> >>             OMElement payload =
>> >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >> >> >>             ConfigurationContext configContext =
>> >> >>
>> >> 
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >> >> >>null);
>> >> >> >>             ServiceClient serviceClient = new
>> >> >> >>ServiceClient(configContext,
>> >> >> >>null);
>> >> >> >>             Options options = new Options();
>> >> >> >>             options.setTo(new 
>>EndpointReference("http://127.0.0.1:"
>> >>+
>> >> >> >>port +
>> >> >> >>"/axis2/services/FileSecurity"));
>> >> >> >>             //options.setTo(new
>> >> >>
>> >> 
>> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>> >> >> >>
>> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> >> >>
>> >>options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >> >> >>Constants.VALUE_TRUE);
>> >> >> >>             options.setAction("urn:fileSecurity");
>> >> >> >>             serviceClient.setOptions(options);
>> >> >> >>
>> >> >> >>             //Blocking invocation
>> >> >> >>             OMElement result = 
>>serviceClient.sendReceive(payload);
>> >> >> >>
>> >> >> >>             StringWriter writer = new StringWriter();
>> >> >> >>             result.serialize(XMLOutputFactory.newInstance()
>> >> >> >>                     .createXMLStreamWriter(writer));
>> >> >> >>             writer.flush();
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>            //System.out.println("Response: " + 
>>writer.toString());
>> >> >> >>
>> >> >> >>             System.out.println("SecureService Invocation 
>>successful
>> >> >> >>:-)");
>> >> >> >>         } catch (AxisFault axisFault) {
>> >> >> >>             axisFault.printStackTrace();
>> >> >> >>         } catch (XMLStreamException e) {
>> >> >> >>             e.printStackTrace();
>> >> >> >>         }
>> >> >> >>     }
>> >> >> >>
>> >> >> >>
>> >> >> >>     private static OMElement getEchoElement(String fileName) {
>> >> >> >>
>> >> >> >>
>> >> >> >>         DataHandler dh;
>> >> >> >>
>> >> >> >>                 OMFactory fac = 
>>OMAbstractFactory.getOMFactory();
>> >> >> >>             OMNamespace omNs =
>> >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", 
>>"example1");
>> >> >> >>
>> >> >> >>         OMElement data = fac.createOMElement("fileSecurity", 
>>omNs);
>> >> >> >>         OMElement input = fac.createOMElement("file", omNs);
>> >> >> >>             OMElement pack = fac.createOMElement("pack", omNs);
>> >> >> >>
>> >> >> >>             FileDataSource f1 = new FileDataSource(fileName);
>> >> >> >>         dh = new DataHandler(f1);
>> >> >> >>
>> >> >> >>         OMElement filename = fac.createOMElement("fileName", 
>>omNs);
>> >> >> >>        // OMText textName = fac.createOMText(filename,
>> >>"myFile.txt");
>> >> >> >>
>> >> >> >>         OMText textData = fac.createOMText(dh, true);
>> >> >> >>
>> >> >> >>         input.addChild(textData);
>> >> >> >>
>> >> >> >>         pack.addChild(filename);
>> >> >> >>         pack.addChild(input);
>> >> >> >>         data.addChild(pack);
>> >> >> >>
>> >> >> >>         //System.out.println(data);
>> >> >> >>
>> >> >> >>              return data;
>> >> >> >>         }
>> >> >> >>}
>> >> >> >>
>> >> >> >>         server code:
>> >> >> >>
>> >> >> >>public class fileS {
>> >> >> >>
>> >> >> >>         public OMElement fileSecurity(OMElement element) throws
>> >> >>Exception
>> >> >> >>         {
>> >> >> >>                 //System.out.println(element);
>> >> >> >>
>> >> >> >>                 element.build();
>> >> >> >>                 element.detach();
>> >> >> >>
>> >> >> >>             Iterator children = element.getChildElements();
>> >> >> >>
>> >> >> >>                 OMElement name = (OMElement)children.next();
>> >> >> >>//get name of the file,
>> >> >> >>first element of element
>> >> >> >>                 OMElement content = (OMElement)children.next();
>> >> >>//get
>> >> >> >>text that
>> >> >> >>contains the file, second element
>> >> >> >>
>> >> >> >>                 System.out.println("before creating OMText");
>> >> >> >>                 OMText fnode = 
>>(OMText)content.getFirstOMChild();
>> >> >> >>                 System.out.println("after creating OMText");
>> >> >> >>//              fnode.setOptimize(true);
>> >> >> >>                 //String fname = name.getText();
>> >> >> >>
>> >> >> >>                 //create data handler to extract the data 
>>handler
>> >>of
>> >> >>the
>> >> >> >>OMText
>> >> >> >>                 DataHandler dfile;
>> >> >> >>                 System.out.println("before getDataHandler from
>> >> >>OMText");
>> >> >> >>
>> >> >> >>                 //String cid = fnode.getContentID();
>> >> >> >>                 //System.out.println(cid);
>> >> >> >>
>> >> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
>> >> >> >>//getDataHandler() and
>> >> >> >>broken pipe
>> >> >> >>
>> >> >> >>                 System.out.println("after create datahandler for
>> >> >> >>OMText");
>> >> >> >>
>> >> >> >>                 FileOutputStream outfile = new
>> >>FileOutputStream(new
>> >> >> >>File("/users/alice3/myFile"));
>> >> >> >>                 System.out.println("after create a
>> >>fileoutputstream");
>> >> >> >>                 dfile.writeTo(outfile);
>> >> >> >>                 System.out.println("after writeTo()");
>> >> >> >>
>> >> >> >>                 //System.out.println("Successful Operation!");
>> >> >> >>
>> >> >> >>                 OMFactory fac = 
>>OMAbstractFactory.getOMFactory();
>> >> >> >>         OMNamespace ns =
>> >>fac.createOMNamespace("urn://fakenamespace",
>> >> >> >>"ns");
>> >> >> >>         OMElement ele = fac.createOMElement("response", ns);
>> >> >> >>         ele.setText("Data Saved");
>> >> >> >>         return ele;
>> >> >> >>
>> >> >> >>         }
>> >> >> >>
>> >> >> >>}
>> >> >> >>
>> >> >> >>        services.xml:
>> >> >> >>
>> >> >> >><service name="FileSecurity" >
>> >> >> >>   <description>
>> >> >> >>                 This is my service for sending file over
>> >>server-client
>> >> >> >>with security
>> >> >> >>setting
>> >> >> >>         </description>
>> >> >> >>   <parameter locked="false" name="ServiceClass"
>> >> >> >> >security.fileS</parameter>
>> >> >> >>   <operation name="fileSecurity" >
>> >> >> >>     <messageReceiver
>> >> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>> >> >> >>   </operation>
>> >> >> >>   <parameter name="InflowSecurity" >
>> >> >> >>     <action>
>> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >>
>> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >>     </action>
>> >> >> >>   </parameter>
>> >> >> >>   <parameter name="OutflowSecurity" >
>> >> >> >>     <action>
>> >> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >> >>       <user>bob</user>
>> >> >> >>
>> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >> >>
>> >> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>> >> >> >>
>> >> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>> >> >> >>       <encryptionUser>alice</encryptionUser>
>> >> >> >>
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >> >>     </action>
>> >> >> >>   </parameter>
>> >> >> >></service>
>> >> >> >>
>> >> >> >>          and the .aar package is constucted as follow
>> >> >> >>
>> >> >> >>         security/
>> >> >> >>                 security/PWCallback.class
>> >> >> >>                 security/fileS.class
>> >> >> >>         META-INF/
>> >> >> >>                 META-INF/services.xml
>> >> >> >>         sec.jks
>> >> >> >>         sec.properties
>> >> >> >>
>> >> >> >>      and the result i get from the TCPMON is that at the server
>> >>side
>> >> >> >>
>> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
>> >> >> >>Content-Type: multipart/related;
>> >> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
>> >> >> >>type="application/xop+xml";
>> >> >> >>start="<0....@apache.org>";
>> >> >> >>start-info="text/xml"; charset=UTF-8
>> >> >> >>Transfer-Encoding: chunked
>> >> >> >>Server: Jetty(6.0.x)
>> >> >> >>
>> >> >> >>2DA
>> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >> >>content-transfer-encoding:binary
>> >> >> 
>> >>content-id:<0....@apache.org>
>> >> >> >>
>> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >> >> >>35B
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >> >>content-transfer-encoding:binary
>> >> >> 
>> >>content-id:<0....@apache.org>
>> >> >> >>
>> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >>security processing failed</faultstring>
>> >> >> >>1383
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >> >>content-transfer-encoding:binary
>> >> >> 
>> >>content-id:<0....@apache.org>
>> >> >> >>
>> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >>security processing
>> >> >> 
>> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >>WSDoAllReceiver: security processing failed; nested exception is:
>> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >>encrypt/decrypt data;
>> >> >> >>nested exception is:
>> >> >> >>         
>>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >>Error
>> >> >> >>while
>> >> >> >>decoding
>> >> >> >>Original Exception was
>> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
>> >>while
>> >> >> >>decoding
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >>         at
>> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >>         at
>> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >>         at
>> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >>         at
>> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >>         at
>> >> >> 
>> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >>         at
>> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >>         at
>> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >>         at
>> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >>         
>>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >>Error
>> >> >> >>while
>> >> >> >>decoding
>> >> >> >>Original Exception was
>> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
>> >>while
>> >> >> >>decoding
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >>         ... 24 more
>> >> >> >>Caused by:
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >>while decoding
>> >> >> >>Original Exception was
>> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
>> >>while
>> >> >> >>decoding
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >>         ... 30 more
>> >> >> >></Exception></detail>
>> >> >> >>13B5
>> >> >> >>
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >> >>content-transfer-encoding:binary
>> >> >> 
>> >>content-id:<0....@apache.org>
>> >> >> >>
>> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> >>
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >> >>security processing
>> >> >> 
>> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >> >>WSDoAllReceiver: security processing failed; nested exception is:
>> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >>encrypt/decrypt data;
>> >> >> >>nested exception is:
>> >> >> >>         
>>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >>Error
>> >> >> >>while
>> >> >> >>decoding
>> >> >> >>Original Exception was
>> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
>> >>while
>> >> >> >>decoding
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >>         at
>> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >> >>         at
>> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >>         at
>> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >> >>         at
>> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >> >>         at
>> >> >> 
>> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >> >>         at
>> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >> >>         at
>> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >> >>         at
>> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >> >>encrypt/decrypt data; nested exception is:
>> >> >> >>         
>>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >>Error
>> >> >> >>while
>> >> >> >>decoding
>> >> >> >>Original Exception was
>> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
>> >>while
>> >> >> >>decoding
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >> >>         ... 24 more
>> >> >> >>Caused by:
>> >>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >> >>Error
>> >> >> >>while decoding
>> >> >> >>Original Exception was
>> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
>> >>while
>> >> >> >>decoding
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >> >>Source)
>> >> >> >>         at
>> >> >>
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >> >>         ... 30 more
>> >> >>
>> >> 
>> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >> >> >>3B
>> >> >> >>
>> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
>> >> >> >>0
>> >> >> >>
>> >> >> >>           The client side message seems to be ok, with all the
>> >> >>encypted
>> >> >> >>document.
>> >> >> >>
>> >> >> >>           Is there any idea what can cause the fault? Greatly
>> >> >>appreciate,
>> >> >> >>
>> >> >> >>          Wan
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >www.ruchith.org
>> >> >> >
>> >> >> 
>> >---------------------------------------------------------------------
>> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Looking at your stack trace it seems that there's something wrong with
your service. The exception is throw at the point where the service
method is invoked:

                OMElement result;

                try {

                    result = (OMElement) method.invoke(obj, args);

                } catch (Exception e) {

                    throw new AxisFault(e.getMessage());

                }

Maybe the method is throwing an exception.

Can you please check your service?

Thanks,
Ruchith

On 7/21/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Dear Ruchith,
>
>          my mistake, my message receiver in services.xml is
> RAWXMLInOutMessageReceiver.
>          what should i do now?
>
>          Best regards,
>          Wan
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] send file with security
> >Date: Thu, 20 Jul 2006 17:46:18 +0530
> >
> >Hi Wan,
> >
> >Can you also change
> ><parameter name="enableMTOM" locked="false">true</parameter>
> >to
> ><parameter name="enableMTOM" locked="false">false</parameter>
> >
> >in both axis2.xml s (client and server) and try again.
> >
> >And if this fails please send what you see in tcpmon and the exception.
> >
> >Thanks,
> >Ruchith
> >
> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>Thank you Ruchith,
> >>
> >>        I have made change as your advice. However, i still got the same
> >>error...
> >>
> >>        Any other possibility?
> >>
> >>        Best regards,
> >>
> >>         Wan
> >>
> >>
> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2 v1.0] send file with security
> >> >Date: Thu, 20 Jul 2006 16:09:23 +0530
> >> >
> >> >Yes from your services.xml and the client's axis2.xml
> >> >
> >> >Thanks,
> >> >Ruchith
> >> >
> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >>Dear Ruchith,
> >> >>
> >> >>    you means
> >> >>remove :
> >> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >>
> >> >>     from my services.xml right? or other place?
> >> >>
> >> >>     Wan
> >> >>
> >> >> >
> >> >> >Hi Wan,
> >> >> >
> >> >> >Please remove :
> >> >>
> >> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >
> >> >> >entry from your rampart configuration parameters and try again.
> >> >> >
> >> >> >Thanks,
> >> >> >Ruchith
> >> >> >
> >> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >> >>Dear All,
> >> >> >>
> >> >> >>        I have been trying to combine the test about sending file
> >>and
> >> >> >>securing message.
> >> >> >>        My environment is Axis2 v1.0, nightly build released 4 June
> >>06
> >> >>on
> >> >> >>the
> >> >> >>Jetty Servlet.
> >> >> >>
> >> >> >>        From other individual test such as sending text file, and
> >> >>security
> >> >> >>sample had no problem on this, however with the combination one i
> >>got
> >> >>the
> >> >> >>following error.
> >> >> >>
> >> >> >>        Client code:
> >> >> >>
> >> >> >>/*
> >> >> >>* Created on 19.07.2006
> >> >> >>*
> >> >> >>* TODO To change the template for this generated file go to
> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >> >>*/
> >> >> >>package security;
> >> >> >>
> >> >> >>/**
> >> >> >>* @author alice3
> >> >> >>*
> >> >> >>* TODO To change the template for this generated type comment go to
> >> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >> >>*/
> >> >> >>
> >> >> >>import org.apache.axiom.om.OMAbstractFactory;
> >> >> >>import org.apache.axiom.om.OMElement;
> >> >> >>import org.apache.axiom.om.OMFactory;
> >> >> >>import org.apache.axiom.om.OMNamespace;
> >> >> >>import org.apache.axiom.om.OMText;
> >> >> >>import org.apache.axis2.AxisFault;
> >> >> >>import org.apache.axis2.Constants;
> >> >> >>import org.apache.axis2.addressing.EndpointReference;
> >> >> >>import org.apache.axis2.client.Options;
> >> >> >>import org.apache.axis2.client.ServiceClient;
> >> >> >>import org.apache.axis2.context.ConfigurationContext;
> >> >> >>import org.apache.axis2.context.ConfigurationContextFactory;
> >> >> >>
> >> >> >>//import org.apache.axis2.soapmonitor.*;
> >> >> >>
> >> >> >>import javax.activation.DataHandler;
> >> >> >>import javax.activation.FileDataSource;
> >> >> >>import javax.xml.namespace.QName;
> >> >> >>import javax.xml.stream.XMLOutputFactory;
> >> >> >>import javax.xml.stream.XMLStreamException;
> >> >> >>
> >> >> >>import java.io.File;
> >> >> >>import java.io.StringWriter;
> >> >> >>
> >> >> >>
> >> >> >>public class SecureClient {
> >> >> >>
> >> >> >>     private File inputFile = null;
> >> >> >>
> >> >> >>     private QName operationName = new QName("fileSecurity");
> >> >> >>
> >> >> >>     public static void main(String[] args) {
> >> >> >>
> >> >> >>         try {
> >> >> >>
> >> >> >>             // Get the repository location from the args
> >> >> >>             String repo = args[0];
> >> >> >>             String port = args[1];
> >> >> >>
> >> >> >>             OMElement payload =
> >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >> >> >>             ConfigurationContext configContext =
> >> >>
> >> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> >> >> >>null);
> >> >> >>             ServiceClient serviceClient = new
> >> >> >>ServiceClient(configContext,
> >> >> >>null);
> >> >> >>             Options options = new Options();
> >> >> >>             options.setTo(new EndpointReference("http://127.0.0.1:"
> >>+
> >> >> >>port +
> >> >> >>"/axis2/services/FileSecurity"));
> >> >> >>             //options.setTo(new
> >> >>
> >> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
> >> >> >>
> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >> >>
> >>options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >> >>Constants.VALUE_TRUE);
> >> >> >>             options.setAction("urn:fileSecurity");
> >> >> >>             serviceClient.setOptions(options);
> >> >> >>
> >> >> >>             //Blocking invocation
> >> >> >>             OMElement result = serviceClient.sendReceive(payload);
> >> >> >>
> >> >> >>             StringWriter writer = new StringWriter();
> >> >> >>             result.serialize(XMLOutputFactory.newInstance()
> >> >> >>                     .createXMLStreamWriter(writer));
> >> >> >>             writer.flush();
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>            //System.out.println("Response: " + writer.toString());
> >> >> >>
> >> >> >>             System.out.println("SecureService Invocation successful
> >> >> >>:-)");
> >> >> >>         } catch (AxisFault axisFault) {
> >> >> >>             axisFault.printStackTrace();
> >> >> >>         } catch (XMLStreamException e) {
> >> >> >>             e.printStackTrace();
> >> >> >>         }
> >> >> >>     }
> >> >> >>
> >> >> >>
> >> >> >>     private static OMElement getEchoElement(String fileName) {
> >> >> >>
> >> >> >>
> >> >> >>         DataHandler dh;
> >> >> >>
> >> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >> >>             OMNamespace omNs =
> >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1");
> >> >> >>
> >> >> >>         OMElement data = fac.createOMElement("fileSecurity", omNs);
> >> >> >>         OMElement input = fac.createOMElement("file", omNs);
> >> >> >>             OMElement pack = fac.createOMElement("pack", omNs);
> >> >> >>
> >> >> >>             FileDataSource f1 = new FileDataSource(fileName);
> >> >> >>         dh = new DataHandler(f1);
> >> >> >>
> >> >> >>         OMElement filename = fac.createOMElement("fileName", omNs);
> >> >> >>        // OMText textName = fac.createOMText(filename,
> >>"myFile.txt");
> >> >> >>
> >> >> >>         OMText textData = fac.createOMText(dh, true);
> >> >> >>
> >> >> >>         input.addChild(textData);
> >> >> >>
> >> >> >>         pack.addChild(filename);
> >> >> >>         pack.addChild(input);
> >> >> >>         data.addChild(pack);
> >> >> >>
> >> >> >>         //System.out.println(data);
> >> >> >>
> >> >> >>              return data;
> >> >> >>         }
> >> >> >>}
> >> >> >>
> >> >> >>         server code:
> >> >> >>
> >> >> >>public class fileS {
> >> >> >>
> >> >> >>         public OMElement fileSecurity(OMElement element) throws
> >> >>Exception
> >> >> >>         {
> >> >> >>                 //System.out.println(element);
> >> >> >>
> >> >> >>                 element.build();
> >> >> >>                 element.detach();
> >> >> >>
> >> >> >>             Iterator children = element.getChildElements();
> >> >> >>
> >> >> >>                 OMElement name = (OMElement)children.next();
> >> >> >>//get name of the file,
> >> >> >>first element of element
> >> >> >>                 OMElement content = (OMElement)children.next();
> >> >>//get
> >> >> >>text that
> >> >> >>contains the file, second element
> >> >> >>
> >> >> >>                 System.out.println("before creating OMText");
> >> >> >>                 OMText fnode = (OMText)content.getFirstOMChild();
> >> >> >>                 System.out.println("after creating OMText");
> >> >> >>//              fnode.setOptimize(true);
> >> >> >>                 //String fname = name.getText();
> >> >> >>
> >> >> >>                 //create data handler to extract the data handler
> >>of
> >> >>the
> >> >> >>OMText
> >> >> >>                 DataHandler dfile;
> >> >> >>                 System.out.println("before getDataHandler from
> >> >>OMText");
> >> >> >>
> >> >> >>                 //String cid = fnode.getContentID();
> >> >> >>                 //System.out.println(cid);
> >> >> >>
> >> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
> >> >> >>//getDataHandler() and
> >> >> >>broken pipe
> >> >> >>
> >> >> >>                 System.out.println("after create datahandler for
> >> >> >>OMText");
> >> >> >>
> >> >> >>                 FileOutputStream outfile = new
> >>FileOutputStream(new
> >> >> >>File("/users/alice3/myFile"));
> >> >> >>                 System.out.println("after create a
> >>fileoutputstream");
> >> >> >>                 dfile.writeTo(outfile);
> >> >> >>                 System.out.println("after writeTo()");
> >> >> >>
> >> >> >>                 //System.out.println("Successful Operation!");
> >> >> >>
> >> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >> >>         OMNamespace ns =
> >>fac.createOMNamespace("urn://fakenamespace",
> >> >> >>"ns");
> >> >> >>         OMElement ele = fac.createOMElement("response", ns);
> >> >> >>         ele.setText("Data Saved");
> >> >> >>         return ele;
> >> >> >>
> >> >> >>         }
> >> >> >>
> >> >> >>}
> >> >> >>
> >> >> >>        services.xml:
> >> >> >>
> >> >> >><service name="FileSecurity" >
> >> >> >>   <description>
> >> >> >>                 This is my service for sending file over
> >>server-client
> >> >> >>with security
> >> >> >>setting
> >> >> >>         </description>
> >> >> >>   <parameter locked="false" name="ServiceClass"
> >> >> >> >security.fileS</parameter>
> >> >> >>   <operation name="fileSecurity" >
> >> >> >>     <messageReceiver
> >> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
> >> >> >>   </operation>
> >> >> >>   <parameter name="InflowSecurity" >
> >> >> >>     <action>
> >> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >> >>
> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >> >> >>     </action>
> >> >> >>   </parameter>
> >> >> >>   <parameter name="OutflowSecurity" >
> >> >> >>     <action>
> >> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >> >>       <user>bob</user>
> >> >> >>
> >> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >> >> >>
> >> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
> >> >> >>
> >> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
> >> >> >>       <encryptionUser>alice</encryptionUser>
> >> >> >>
> >> >>
> >> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >> >>     </action>
> >> >> >>   </parameter>
> >> >> >></service>
> >> >> >>
> >> >> >>          and the .aar package is constucted as follow
> >> >> >>
> >> >> >>         security/
> >> >> >>                 security/PWCallback.class
> >> >> >>                 security/fileS.class
> >> >> >>         META-INF/
> >> >> >>                 META-INF/services.xml
> >> >> >>         sec.jks
> >> >> >>         sec.properties
> >> >> >>
> >> >> >>      and the result i get from the TCPMON is that at the server
> >>side
> >> >> >>
> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
> >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
> >> >> >>Content-Type: multipart/related;
> >> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
> >> >> >>type="application/xop+xml";
> >> >> >>start="<0....@apache.org>";
> >> >> >>start-info="text/xml"; charset=UTF-8
> >> >> >>Transfer-Encoding: chunked
> >> >> >>Server: Jetty(6.0.x)
> >> >> >>
> >> >> >>2DA
> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >> >>content-transfer-encoding:binary
> >> >> >>content-id:<0....@apache.org>
> >> >> >>
> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> >> >> >>35B
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >> >>content-transfer-encoding:binary
> >> >> >>content-id:<0....@apache.org>
> >> >> >>
> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >>security processing failed</faultstring>
> >> >> >>1383
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >> >>content-transfer-encoding:binary
> >> >> >>content-id:<0....@apache.org>
> >> >> >>
> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >>security processing
> >> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >> >>WSDoAllReceiver: security processing failed; nested exception is:
> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >> >>encrypt/decrypt data;
> >> >> >>nested exception is:
> >> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
> >> >>Error
> >> >> >>while
> >> >> >>decoding
> >> >> >>Original Exception was
> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >>while
> >> >> >>decoding
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >> >>         at
> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >> >>         at
> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >> >>         at
> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >> >>         at
> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >> >>         at
> >> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >> >>         at
> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >> >>         at
> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >> >>         at
> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >> >> >>encrypt/decrypt data; nested exception is:
> >> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
> >> >>Error
> >> >> >>while
> >> >> >>decoding
> >> >> >>Original Exception was
> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >>while
> >> >> >>decoding
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >> >>         ... 24 more
> >> >> >>Caused by:
> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >>Error
> >> >> >>while decoding
> >> >> >>Original Exception was
> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >>while
> >> >> >>decoding
> >> >> >>         at
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >> >>         ... 30 more
> >> >> >></Exception></detail>
> >> >> >>13B5
> >> >> >>
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >> >>content-transfer-encoding:binary
> >> >> >>content-id:<0....@apache.org>
> >> >> >>
> >> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >>
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >> >>security processing
> >> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >> >>WSDoAllReceiver: security processing failed; nested exception is:
> >> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >> >>encrypt/decrypt data;
> >> >> >>nested exception is:
> >> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
> >> >>Error
> >> >> >>while
> >> >> >>decoding
> >> >> >>Original Exception was
> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >>while
> >> >> >>decoding
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >> >>         at
> >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >> >>         at
> >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >> >>         at
> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >> >>         at
> >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >> >>         at
> >> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >> >>         at
> >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >> >>         at
> >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >> >>         at
> >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >> >>         at
> >> >>
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >> >> >>encrypt/decrypt data; nested exception is:
> >> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
> >> >>Error
> >> >> >>while
> >> >> >>decoding
> >> >> >>Original Exception was
> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >>while
> >> >> >>decoding
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >> >>         at
> >> >>
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >> >>         ... 24 more
> >> >> >>Caused by:
> >>org.apache.xml.security.encryption.XMLEncryptionException:
> >> >> >>Error
> >> >> >>while decoding
> >> >> >>Original Exception was
> >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error
> >>while
> >> >> >>decoding
> >> >> >>         at
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >>
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >> >>Source)
> >> >> >>         at
> >> >>
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >> >>         ... 30 more
> >> >>
> >> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> >> >> >>3B
> >> >> >>
> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
> >> >> >>0
> >> >> >>
> >> >> >>           The client side message seems to be ok, with all the
> >> >>encypted
> >> >> >>document.
> >> >> >>
> >> >> >>           Is there any idea what can cause the fault? Greatly
> >> >>appreciate,
> >> >> >>
> >> >> >>          Wan
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> >--
> >> >> >www.ruchith.org
> >> >> >
> >> >> >---------------------------------------------------------------------
> >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >www.ruchith.org
> >> >
> >> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

         my mistake, my message receiver in services.xml is 
RAWXMLInOutMessageReceiver.
         what should i do now?

         Best regards,
         Wan


>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Thu, 20 Jul 2006 17:46:18 +0530
>
>Hi Wan,
>
>Can you also change
><parameter name="enableMTOM" locked="false">true</parameter>
>to
><parameter name="enableMTOM" locked="false">false</parameter>
>
>in both axis2.xml s (client and server) and try again.
>
>And if this fails please send what you see in tcpmon and the exception.
>
>Thanks,
>Ruchith
>
>On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Thank you Ruchith,
>>
>>        I have made change as your advice. However, i still got the same
>>error...
>>
>>        Any other possibility?
>>
>>        Best regards,
>>
>>         Wan
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Thu, 20 Jul 2006 16:09:23 +0530
>> >
>> >Yes from your services.xml and the client's axis2.xml
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>Dear Ruchith,
>> >>
>> >>    you means
>> >>remove :
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >>
>> >>     from my services.xml right? or other place?
>> >>
>> >>     Wan
>> >>
>> >> >
>> >> >Hi Wan,
>> >> >
>> >> >Please remove :
>> >> 
>> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >
>> >> >entry from your rampart configuration parameters and try again.
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >>Dear All,
>> >> >>
>> >> >>        I have been trying to combine the test about sending file 
>>and
>> >> >>securing message.
>> >> >>        My environment is Axis2 v1.0, nightly build released 4 June 
>>06
>> >>on
>> >> >>the
>> >> >>Jetty Servlet.
>> >> >>
>> >> >>        From other individual test such as sending text file, and
>> >>security
>> >> >>sample had no problem on this, however with the combination one i 
>>got
>> >>the
>> >> >>following error.
>> >> >>
>> >> >>        Client code:
>> >> >>
>> >> >>/*
>> >> >>* Created on 19.07.2006
>> >> >>*
>> >> >>* TODO To change the template for this generated file go to
>> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >>*/
>> >> >>package security;
>> >> >>
>> >> >>/**
>> >> >>* @author alice3
>> >> >>*
>> >> >>* TODO To change the template for this generated type comment go to
>> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >>*/
>> >> >>
>> >> >>import org.apache.axiom.om.OMAbstractFactory;
>> >> >>import org.apache.axiom.om.OMElement;
>> >> >>import org.apache.axiom.om.OMFactory;
>> >> >>import org.apache.axiom.om.OMNamespace;
>> >> >>import org.apache.axiom.om.OMText;
>> >> >>import org.apache.axis2.AxisFault;
>> >> >>import org.apache.axis2.Constants;
>> >> >>import org.apache.axis2.addressing.EndpointReference;
>> >> >>import org.apache.axis2.client.Options;
>> >> >>import org.apache.axis2.client.ServiceClient;
>> >> >>import org.apache.axis2.context.ConfigurationContext;
>> >> >>import org.apache.axis2.context.ConfigurationContextFactory;
>> >> >>
>> >> >>//import org.apache.axis2.soapmonitor.*;
>> >> >>
>> >> >>import javax.activation.DataHandler;
>> >> >>import javax.activation.FileDataSource;
>> >> >>import javax.xml.namespace.QName;
>> >> >>import javax.xml.stream.XMLOutputFactory;
>> >> >>import javax.xml.stream.XMLStreamException;
>> >> >>
>> >> >>import java.io.File;
>> >> >>import java.io.StringWriter;
>> >> >>
>> >> >>
>> >> >>public class SecureClient {
>> >> >>
>> >> >>     private File inputFile = null;
>> >> >>
>> >> >>     private QName operationName = new QName("fileSecurity");
>> >> >>
>> >> >>     public static void main(String[] args) {
>> >> >>
>> >> >>         try {
>> >> >>
>> >> >>             // Get the repository location from the args
>> >> >>             String repo = args[0];
>> >> >>             String port = args[1];
>> >> >>
>> >> >>             OMElement payload =
>> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >> >>             ConfigurationContext configContext =
>> >> 
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >> >>null);
>> >> >>             ServiceClient serviceClient = new
>> >> >>ServiceClient(configContext,
>> >> >>null);
>> >> >>             Options options = new Options();
>> >> >>             options.setTo(new EndpointReference("http://127.0.0.1:" 
>>+
>> >> >>port +
>> >> >>"/axis2/services/FileSecurity"));
>> >> >>             //options.setTo(new
>> >> 
>> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>> >> >>             
>>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> >>             
>>options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >> >>Constants.VALUE_TRUE);
>> >> >>             options.setAction("urn:fileSecurity");
>> >> >>             serviceClient.setOptions(options);
>> >> >>
>> >> >>             //Blocking invocation
>> >> >>             OMElement result = serviceClient.sendReceive(payload);
>> >> >>
>> >> >>             StringWriter writer = new StringWriter();
>> >> >>             result.serialize(XMLOutputFactory.newInstance()
>> >> >>                     .createXMLStreamWriter(writer));
>> >> >>             writer.flush();
>> >> >>
>> >> >>
>> >> >>
>> >> >>            //System.out.println("Response: " + writer.toString());
>> >> >>
>> >> >>             System.out.println("SecureService Invocation successful
>> >> >>:-)");
>> >> >>         } catch (AxisFault axisFault) {
>> >> >>             axisFault.printStackTrace();
>> >> >>         } catch (XMLStreamException e) {
>> >> >>             e.printStackTrace();
>> >> >>         }
>> >> >>     }
>> >> >>
>> >> >>
>> >> >>     private static OMElement getEchoElement(String fileName) {
>> >> >>
>> >> >>
>> >> >>         DataHandler dh;
>> >> >>
>> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>> >> >>             OMNamespace omNs =
>> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1");
>> >> >>
>> >> >>         OMElement data = fac.createOMElement("fileSecurity", omNs);
>> >> >>         OMElement input = fac.createOMElement("file", omNs);
>> >> >>             OMElement pack = fac.createOMElement("pack", omNs);
>> >> >>
>> >> >>             FileDataSource f1 = new FileDataSource(fileName);
>> >> >>         dh = new DataHandler(f1);
>> >> >>
>> >> >>         OMElement filename = fac.createOMElement("fileName", omNs);
>> >> >>        // OMText textName = fac.createOMText(filename, 
>>"myFile.txt");
>> >> >>
>> >> >>         OMText textData = fac.createOMText(dh, true);
>> >> >>
>> >> >>         input.addChild(textData);
>> >> >>
>> >> >>         pack.addChild(filename);
>> >> >>         pack.addChild(input);
>> >> >>         data.addChild(pack);
>> >> >>
>> >> >>         //System.out.println(data);
>> >> >>
>> >> >>              return data;
>> >> >>         }
>> >> >>}
>> >> >>
>> >> >>         server code:
>> >> >>
>> >> >>public class fileS {
>> >> >>
>> >> >>         public OMElement fileSecurity(OMElement element) throws
>> >>Exception
>> >> >>         {
>> >> >>                 //System.out.println(element);
>> >> >>
>> >> >>                 element.build();
>> >> >>                 element.detach();
>> >> >>
>> >> >>             Iterator children = element.getChildElements();
>> >> >>
>> >> >>                 OMElement name = (OMElement)children.next();
>> >> >>//get name of the file,
>> >> >>first element of element
>> >> >>                 OMElement content = (OMElement)children.next();
>> >>//get
>> >> >>text that
>> >> >>contains the file, second element
>> >> >>
>> >> >>                 System.out.println("before creating OMText");
>> >> >>                 OMText fnode = (OMText)content.getFirstOMChild();
>> >> >>                 System.out.println("after creating OMText");
>> >> >>//              fnode.setOptimize(true);
>> >> >>                 //String fname = name.getText();
>> >> >>
>> >> >>                 //create data handler to extract the data handler 
>>of
>> >>the
>> >> >>OMText
>> >> >>                 DataHandler dfile;
>> >> >>                 System.out.println("before getDataHandler from
>> >>OMText");
>> >> >>
>> >> >>                 //String cid = fnode.getContentID();
>> >> >>                 //System.out.println(cid);
>> >> >>
>> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
>> >> >>//getDataHandler() and
>> >> >>broken pipe
>> >> >>
>> >> >>                 System.out.println("after create datahandler for
>> >> >>OMText");
>> >> >>
>> >> >>                 FileOutputStream outfile = new  
>>FileOutputStream(new
>> >> >>File("/users/alice3/myFile"));
>> >> >>                 System.out.println("after create a 
>>fileoutputstream");
>> >> >>                 dfile.writeTo(outfile);
>> >> >>                 System.out.println("after writeTo()");
>> >> >>
>> >> >>                 //System.out.println("Successful Operation!");
>> >> >>
>> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>> >> >>         OMNamespace ns = 
>>fac.createOMNamespace("urn://fakenamespace",
>> >> >>"ns");
>> >> >>         OMElement ele = fac.createOMElement("response", ns);
>> >> >>         ele.setText("Data Saved");
>> >> >>         return ele;
>> >> >>
>> >> >>         }
>> >> >>
>> >> >>}
>> >> >>
>> >> >>        services.xml:
>> >> >>
>> >> >><service name="FileSecurity" >
>> >> >>   <description>
>> >> >>                 This is my service for sending file over 
>>server-client
>> >> >>with security
>> >> >>setting
>> >> >>         </description>
>> >> >>   <parameter locked="false" name="ServiceClass"
>> >> >> >security.fileS</parameter>
>> >> >>   <operation name="fileSecurity" >
>> >> >>     <messageReceiver
>> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>> >> >>   </operation>
>> >> >>   <parameter name="InflowSecurity" >
>> >> >>     <action>
>> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >>
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >>     </action>
>> >> >>   </parameter>
>> >> >>   <parameter name="OutflowSecurity" >
>> >> >>     <action>
>> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >>       <user>bob</user>
>> >> >>
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >>
>> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>> >> >>
>> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>> >> >>       <encryptionUser>alice</encryptionUser>
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >>     </action>
>> >> >>   </parameter>
>> >> >></service>
>> >> >>
>> >> >>          and the .aar package is constucted as follow
>> >> >>
>> >> >>         security/
>> >> >>                 security/PWCallback.class
>> >> >>                 security/fileS.class
>> >> >>         META-INF/
>> >> >>                 META-INF/services.xml
>> >> >>         sec.jks
>> >> >>         sec.properties
>> >> >>
>> >> >>      and the result i get from the TCPMON is that at the server 
>>side
>> >> >>
>> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
>> >> >>Content-Type: multipart/related;
>> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
>> >> >>type="application/xop+xml";
>> >> >>start="<0....@apache.org>";
>> >> >>start-info="text/xml"; charset=UTF-8
>> >> >>Transfer-Encoding: chunked
>> >> >>Server: Jetty(6.0.x)
>> >> >>
>> >> >>2DA
>> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >>content-transfer-encoding:binary
>> >> >>content-id:<0....@apache.org>
>> >> >>
>> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >> >>35B
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >>content-transfer-encoding:binary
>> >> >>content-id:<0....@apache.org>
>> >> >>
>> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >>security processing failed</faultstring>
>> >> >>1383
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >>content-transfer-encoding:binary
>> >> >>content-id:<0....@apache.org>
>> >> >>
>> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >>security processing
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >>WSDoAllReceiver: security processing failed; nested exception is:
>> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >>encrypt/decrypt data;
>> >> >>nested exception is:
>> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >> >>while
>> >> >>decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >>         at
>> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >>         at
>> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >>         at 
>>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >>         at
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >>encrypt/decrypt data; nested exception is:
>> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >> >>while
>> >> >>decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >>         ... 24 more
>> >> >>Caused by: 
>>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >>Error
>> >> >>while decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >>Source)
>> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >>Source)
>> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >>Source)
>> >> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >>         ... 30 more
>> >> >></Exception></detail>
>> >> >>13B5
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >>content-transfer-encoding:binary
>> >> >>content-id:<0....@apache.org>
>> >> >>
>> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >>security processing
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >>WSDoAllReceiver: security processing failed; nested exception is:
>> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >>encrypt/decrypt data;
>> >> >>nested exception is:
>> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >> >>while
>> >> >>decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >>         at
>> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >>         at
>> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >>         at 
>>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >>         at
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >>encrypt/decrypt data; nested exception is:
>> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >> >>while
>> >> >>decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >>         ... 24 more
>> >> >>Caused by: 
>>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >>Error
>> >> >>while decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >>Source)
>> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >>Source)
>> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >>Source)
>> >> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >>         ... 30 more
>> >> 
>> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >> >>3B
>> >> >>
>> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
>> >> >>0
>> >> >>
>> >> >>           The client side message seems to be ok, with all the
>> >>encypted
>> >> >>document.
>> >> >>
>> >> >>           Is there any idea what can cause the fault? Greatly
>> >>appreciate,
>> >> >>
>> >> >>          Wan
>> >> >>
>> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Hi Ruchith,

        The result after i have done changing the enableMTOM parameters as 
you've suggested.

        from TCPMON server:
          HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=747hh2970j5g6;path=/axis2
Content-Type: text/xml; charset=UTF-8
Transfer-Encoding: chunked
Server: Jetty(6.0.x)

2BE
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:7C4E23A809E753F67F11534625977653</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo 
wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">urn:uuid:ABD64AE313FF73B9DF11534625909471</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
22
<faultstring>unknown</faultstring>
77A
<detail><Exception>org.apache.axis2.AxisFault
	at 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
	at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
	at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
	at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
	at org.mortbay.jetty.Server.handle(Server.java:245)
	at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
	at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
	at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
	at 
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
	at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
</Exception></detail>
32
</soapenv:Fault></soapenv:Body></soapenv:Envelope>
0

         from TCPMON client seems to be ok.

         Server response on the shell:
21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify
INFO: Verification successful for URI "#id-22377952"
21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify
INFO: Verification successful for URI "#id-8499707"
21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify
INFO: Verification successful for URI "#id-13359904"
21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify
INFO: Verification successful for URI "#Timestamp-4300037"
before creating OMText

         Client response:

         21.07.2006 08:16:28 org.apache.axis2.deployment.DeploymentEngine 
prepareRepository
INFO: no services directory found , new one created
21.07.2006 08:16:28 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing
21.07.2006 08:16:30 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : rampart
16145
org.apache.axis2.AxisFault: unknown
	at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
	at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
	at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
	at security.SecureClient.main(SecureClient.java:68)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault
	at 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
	at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
	at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
	at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
	at org.mortbay.jetty.Server.handle(Server.java:245)
	at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
	at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
	at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
	at 
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
	at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)

	at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
	... 4 more

               Is it about the receiver now? because i have change the 
receiver from RAWXMLInOutMessageReceiver to RPCMessageReceiver in order to 
see the wsdl file?

       Thank you for help,

        Wan


>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Thu, 20 Jul 2006 17:46:18 +0530
>
>Hi Wan,
>
>Can you also change
><parameter name="enableMTOM" locked="false">true</parameter>
>to
><parameter name="enableMTOM" locked="false">false</parameter>
>
>in both axis2.xml s (client and server) and try again.
>
>And if this fails please send what you see in tcpmon and the exception.
>
>Thanks,
>Ruchith
>
>On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Thank you Ruchith,
>>
>>        I have made change as your advice. However, i still got the same
>>error...
>>
>>        Any other possibility?
>>
>>        Best regards,
>>
>>         Wan
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2 v1.0] send file with security
>> >Date: Thu, 20 Jul 2006 16:09:23 +0530
>> >
>> >Yes from your services.xml and the client's axis2.xml
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>Dear Ruchith,
>> >>
>> >>    you means
>> >>remove :
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >>
>> >>     from my services.xml right? or other place?
>> >>
>> >>     Wan
>> >>
>> >> >
>> >> >Hi Wan,
>> >> >
>> >> >Please remove :
>> >> 
>> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >
>> >> >entry from your rampart configuration parameters and try again.
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >> >>Dear All,
>> >> >>
>> >> >>        I have been trying to combine the test about sending file 
>>and
>> >> >>securing message.
>> >> >>        My environment is Axis2 v1.0, nightly build released 4 June 
>>06
>> >>on
>> >> >>the
>> >> >>Jetty Servlet.
>> >> >>
>> >> >>        From other individual test such as sending text file, and
>> >>security
>> >> >>sample had no problem on this, however with the combination one i 
>>got
>> >>the
>> >> >>following error.
>> >> >>
>> >> >>        Client code:
>> >> >>
>> >> >>/*
>> >> >>* Created on 19.07.2006
>> >> >>*
>> >> >>* TODO To change the template for this generated file go to
>> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >>*/
>> >> >>package security;
>> >> >>
>> >> >>/**
>> >> >>* @author alice3
>> >> >>*
>> >> >>* TODO To change the template for this generated type comment go to
>> >> >>* Window - Preferences - Java - Code Style - Code Templates
>> >> >>*/
>> >> >>
>> >> >>import org.apache.axiom.om.OMAbstractFactory;
>> >> >>import org.apache.axiom.om.OMElement;
>> >> >>import org.apache.axiom.om.OMFactory;
>> >> >>import org.apache.axiom.om.OMNamespace;
>> >> >>import org.apache.axiom.om.OMText;
>> >> >>import org.apache.axis2.AxisFault;
>> >> >>import org.apache.axis2.Constants;
>> >> >>import org.apache.axis2.addressing.EndpointReference;
>> >> >>import org.apache.axis2.client.Options;
>> >> >>import org.apache.axis2.client.ServiceClient;
>> >> >>import org.apache.axis2.context.ConfigurationContext;
>> >> >>import org.apache.axis2.context.ConfigurationContextFactory;
>> >> >>
>> >> >>//import org.apache.axis2.soapmonitor.*;
>> >> >>
>> >> >>import javax.activation.DataHandler;
>> >> >>import javax.activation.FileDataSource;
>> >> >>import javax.xml.namespace.QName;
>> >> >>import javax.xml.stream.XMLOutputFactory;
>> >> >>import javax.xml.stream.XMLStreamException;
>> >> >>
>> >> >>import java.io.File;
>> >> >>import java.io.StringWriter;
>> >> >>
>> >> >>
>> >> >>public class SecureClient {
>> >> >>
>> >> >>     private File inputFile = null;
>> >> >>
>> >> >>     private QName operationName = new QName("fileSecurity");
>> >> >>
>> >> >>     public static void main(String[] args) {
>> >> >>
>> >> >>         try {
>> >> >>
>> >> >>             // Get the repository location from the args
>> >> >>             String repo = args[0];
>> >> >>             String port = args[1];
>> >> >>
>> >> >>             OMElement payload =
>> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >> >>             ConfigurationContext configContext =
>> >> 
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >> >>null);
>> >> >>             ServiceClient serviceClient = new
>> >> >>ServiceClient(configContext,
>> >> >>null);
>> >> >>             Options options = new Options();
>> >> >>             options.setTo(new EndpointReference("http://127.0.0.1:" 
>>+
>> >> >>port +
>> >> >>"/axis2/services/FileSecurity"));
>> >> >>             //options.setTo(new
>> >> 
>> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>> >> >>             
>>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> >>             
>>options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >> >>Constants.VALUE_TRUE);
>> >> >>             options.setAction("urn:fileSecurity");
>> >> >>             serviceClient.setOptions(options);
>> >> >>
>> >> >>             //Blocking invocation
>> >> >>             OMElement result = serviceClient.sendReceive(payload);
>> >> >>
>> >> >>             StringWriter writer = new StringWriter();
>> >> >>             result.serialize(XMLOutputFactory.newInstance()
>> >> >>                     .createXMLStreamWriter(writer));
>> >> >>             writer.flush();
>> >> >>
>> >> >>
>> >> >>
>> >> >>            //System.out.println("Response: " + writer.toString());
>> >> >>
>> >> >>             System.out.println("SecureService Invocation successful
>> >> >>:-)");
>> >> >>         } catch (AxisFault axisFault) {
>> >> >>             axisFault.printStackTrace();
>> >> >>         } catch (XMLStreamException e) {
>> >> >>             e.printStackTrace();
>> >> >>         }
>> >> >>     }
>> >> >>
>> >> >>
>> >> >>     private static OMElement getEchoElement(String fileName) {
>> >> >>
>> >> >>
>> >> >>         DataHandler dh;
>> >> >>
>> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>> >> >>             OMNamespace omNs =
>> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1");
>> >> >>
>> >> >>         OMElement data = fac.createOMElement("fileSecurity", omNs);
>> >> >>         OMElement input = fac.createOMElement("file", omNs);
>> >> >>             OMElement pack = fac.createOMElement("pack", omNs);
>> >> >>
>> >> >>             FileDataSource f1 = new FileDataSource(fileName);
>> >> >>         dh = new DataHandler(f1);
>> >> >>
>> >> >>         OMElement filename = fac.createOMElement("fileName", omNs);
>> >> >>        // OMText textName = fac.createOMText(filename, 
>>"myFile.txt");
>> >> >>
>> >> >>         OMText textData = fac.createOMText(dh, true);
>> >> >>
>> >> >>         input.addChild(textData);
>> >> >>
>> >> >>         pack.addChild(filename);
>> >> >>         pack.addChild(input);
>> >> >>         data.addChild(pack);
>> >> >>
>> >> >>         //System.out.println(data);
>> >> >>
>> >> >>              return data;
>> >> >>         }
>> >> >>}
>> >> >>
>> >> >>         server code:
>> >> >>
>> >> >>public class fileS {
>> >> >>
>> >> >>         public OMElement fileSecurity(OMElement element) throws
>> >>Exception
>> >> >>         {
>> >> >>                 //System.out.println(element);
>> >> >>
>> >> >>                 element.build();
>> >> >>                 element.detach();
>> >> >>
>> >> >>             Iterator children = element.getChildElements();
>> >> >>
>> >> >>                 OMElement name = (OMElement)children.next();
>> >> >>//get name of the file,
>> >> >>first element of element
>> >> >>                 OMElement content = (OMElement)children.next();
>> >>//get
>> >> >>text that
>> >> >>contains the file, second element
>> >> >>
>> >> >>                 System.out.println("before creating OMText");
>> >> >>                 OMText fnode = (OMText)content.getFirstOMChild();
>> >> >>                 System.out.println("after creating OMText");
>> >> >>//              fnode.setOptimize(true);
>> >> >>                 //String fname = name.getText();
>> >> >>
>> >> >>                 //create data handler to extract the data handler 
>>of
>> >>the
>> >> >>OMText
>> >> >>                 DataHandler dfile;
>> >> >>                 System.out.println("before getDataHandler from
>> >>OMText");
>> >> >>
>> >> >>                 //String cid = fnode.getContentID();
>> >> >>                 //System.out.println(cid);
>> >> >>
>> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
>> >> >>//getDataHandler() and
>> >> >>broken pipe
>> >> >>
>> >> >>                 System.out.println("after create datahandler for
>> >> >>OMText");
>> >> >>
>> >> >>                 FileOutputStream outfile = new  
>>FileOutputStream(new
>> >> >>File("/users/alice3/myFile"));
>> >> >>                 System.out.println("after create a 
>>fileoutputstream");
>> >> >>                 dfile.writeTo(outfile);
>> >> >>                 System.out.println("after writeTo()");
>> >> >>
>> >> >>                 //System.out.println("Successful Operation!");
>> >> >>
>> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>> >> >>         OMNamespace ns = 
>>fac.createOMNamespace("urn://fakenamespace",
>> >> >>"ns");
>> >> >>         OMElement ele = fac.createOMElement("response", ns);
>> >> >>         ele.setText("Data Saved");
>> >> >>         return ele;
>> >> >>
>> >> >>         }
>> >> >>
>> >> >>}
>> >> >>
>> >> >>        services.xml:
>> >> >>
>> >> >><service name="FileSecurity" >
>> >> >>   <description>
>> >> >>                 This is my service for sending file over 
>>server-client
>> >> >>with security
>> >> >>setting
>> >> >>         </description>
>> >> >>   <parameter locked="false" name="ServiceClass"
>> >> >> >security.fileS</parameter>
>> >> >>   <operation name="fileSecurity" >
>> >> >>     <messageReceiver
>> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>> >> >>   </operation>
>> >> >>   <parameter name="InflowSecurity" >
>> >> >>     <action>
>> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >>
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >>     </action>
>> >> >>   </parameter>
>> >> >>   <parameter name="OutflowSecurity" >
>> >> >>     <action>
>> >> >>       <items>Timestamp Signature Encrypt</items>
>> >> >>       <user>bob</user>
>> >> >>
>> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >> >>
>> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>> >> >>
>> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>> >> >>       <encryptionUser>alice</encryptionUser>
>> >> >>
>> >> 
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >> >>     </action>
>> >> >>   </parameter>
>> >> >></service>
>> >> >>
>> >> >>          and the .aar package is constucted as follow
>> >> >>
>> >> >>         security/
>> >> >>                 security/PWCallback.class
>> >> >>                 security/fileS.class
>> >> >>         META-INF/
>> >> >>                 META-INF/services.xml
>> >> >>         sec.jks
>> >> >>         sec.properties
>> >> >>
>> >> >>      and the result i get from the TCPMON is that at the server 
>>side
>> >> >>
>> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
>> >> >>Content-Type: multipart/related;
>> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
>> >> >>type="application/xop+xml";
>> >> >>start="<0....@apache.org>";
>> >> >>start-info="text/xml"; charset=UTF-8
>> >> >>Transfer-Encoding: chunked
>> >> >>Server: Jetty(6.0.x)
>> >> >>
>> >> >>2DA
>> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >>content-transfer-encoding:binary
>> >> >>content-id:<0....@apache.org>
>> >> >>
>> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >> >>35B
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >>content-transfer-encoding:binary
>> >> >>content-id:<0....@apache.org>
>> >> >>
>> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >>security processing failed</faultstring>
>> >> >>1383
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >>content-transfer-encoding:binary
>> >> >>content-id:<0....@apache.org>
>> >> >>
>> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >>security processing
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >>WSDoAllReceiver: security processing failed; nested exception is:
>> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >>encrypt/decrypt data;
>> >> >>nested exception is:
>> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >> >>while
>> >> >>decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >>         at
>> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >>         at
>> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >>         at 
>>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >>         at
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >>encrypt/decrypt data; nested exception is:
>> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >> >>while
>> >> >>decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >>         ... 24 more
>> >> >>Caused by: 
>>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >>Error
>> >> >>while decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >>Source)
>> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >>Source)
>> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >>Source)
>> >> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >>         ... 30 more
>> >> >></Exception></detail>
>> >> >>13B5
>> >> >>
>> >> 
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >> >>content-transfer-encoding:binary
>> >> >>content-id:<0....@apache.org>
>> >> >>
>> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >> 
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >> >>security processing
>> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >> >>WSDoAllReceiver: security processing failed; nested exception is:
>> >> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >> >>encrypt/decrypt data;
>> >> >>nested exception is:
>> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >> >>while
>> >> >>decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >>         at
>> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >> >>         at
>> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >> >>         at
>> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >> >>         at 
>>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >> >>         at
>> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >> >>         at
>> >> 
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >> >>         at
>> >> 
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >> >>encrypt/decrypt data; nested exception is:
>> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >> >>while
>> >> >>decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >> >>         at
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >> >>         ... 24 more
>> >> >>Caused by: 
>>org.apache.xml.security.encryption.XMLEncryptionException:
>> >> >>Error
>> >> >>while decoding
>> >> >>Original Exception was
>> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error 
>>while
>> >> >>decoding
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >> >>Source)
>> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >> >>Source)
>> >> >>         at
>> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >> >>Source)
>> >> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >> >>Source)
>> >> >>         at
>> >> 
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >> >>         ... 30 more
>> >> 
>> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >> >>3B
>> >> >>
>> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
>> >> >>0
>> >> >>
>> >> >>           The client side message seems to be ok, with all the
>> >>encypted
>> >> >>document.
>> >> >>
>> >> >>           Is there any idea what can cause the fault? Greatly
>> >>appreciate,
>> >> >>
>> >> >>          Wan
>> >> >>
>> >> >>
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Can you also change
<parameter name="enableMTOM" locked="false">true</parameter>
to
<parameter name="enableMTOM" locked="false">false</parameter>

in both axis2.xml s (client and server) and try again.

And if this fails please send what you see in tcpmon and the exception.

Thanks,
Ruchith

On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Thank you Ruchith,
>
>        I have made change as your advice. However, i still got the same
> error...
>
>        Any other possibility?
>
>        Best regards,
>
>         Wan
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2 v1.0] send file with security
> >Date: Thu, 20 Jul 2006 16:09:23 +0530
> >
> >Yes from your services.xml and the client's axis2.xml
> >
> >Thanks,
> >Ruchith
> >
> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>Dear Ruchith,
> >>
> >>    you means
> >>remove :
> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >>
> >>     from my services.xml right? or other place?
> >>
> >>     Wan
> >>
> >> >
> >> >Hi Wan,
> >> >
> >> >Please remove :
> >> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >
> >> >entry from your rampart configuration parameters and try again.
> >> >
> >> >Thanks,
> >> >Ruchith
> >> >
> >> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >> >>Dear All,
> >> >>
> >> >>        I have been trying to combine the test about sending file and
> >> >>securing message.
> >> >>        My environment is Axis2 v1.0, nightly build released 4 June 06
> >>on
> >> >>the
> >> >>Jetty Servlet.
> >> >>
> >> >>        From other individual test such as sending text file, and
> >>security
> >> >>sample had no problem on this, however with the combination one i got
> >>the
> >> >>following error.
> >> >>
> >> >>        Client code:
> >> >>
> >> >>/*
> >> >>* Created on 19.07.2006
> >> >>*
> >> >>* TODO To change the template for this generated file go to
> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >>*/
> >> >>package security;
> >> >>
> >> >>/**
> >> >>* @author alice3
> >> >>*
> >> >>* TODO To change the template for this generated type comment go to
> >> >>* Window - Preferences - Java - Code Style - Code Templates
> >> >>*/
> >> >>
> >> >>import org.apache.axiom.om.OMAbstractFactory;
> >> >>import org.apache.axiom.om.OMElement;
> >> >>import org.apache.axiom.om.OMFactory;
> >> >>import org.apache.axiom.om.OMNamespace;
> >> >>import org.apache.axiom.om.OMText;
> >> >>import org.apache.axis2.AxisFault;
> >> >>import org.apache.axis2.Constants;
> >> >>import org.apache.axis2.addressing.EndpointReference;
> >> >>import org.apache.axis2.client.Options;
> >> >>import org.apache.axis2.client.ServiceClient;
> >> >>import org.apache.axis2.context.ConfigurationContext;
> >> >>import org.apache.axis2.context.ConfigurationContextFactory;
> >> >>
> >> >>//import org.apache.axis2.soapmonitor.*;
> >> >>
> >> >>import javax.activation.DataHandler;
> >> >>import javax.activation.FileDataSource;
> >> >>import javax.xml.namespace.QName;
> >> >>import javax.xml.stream.XMLOutputFactory;
> >> >>import javax.xml.stream.XMLStreamException;
> >> >>
> >> >>import java.io.File;
> >> >>import java.io.StringWriter;
> >> >>
> >> >>
> >> >>public class SecureClient {
> >> >>
> >> >>     private File inputFile = null;
> >> >>
> >> >>     private QName operationName = new QName("fileSecurity");
> >> >>
> >> >>     public static void main(String[] args) {
> >> >>
> >> >>         try {
> >> >>
> >> >>             // Get the repository location from the args
> >> >>             String repo = args[0];
> >> >>             String port = args[1];
> >> >>
> >> >>             OMElement payload =
> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >> >>             ConfigurationContext configContext =
> >> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> >> >>null);
> >> >>             ServiceClient serviceClient = new
> >> >>ServiceClient(configContext,
> >> >>null);
> >> >>             Options options = new Options();
> >> >>             options.setTo(new EndpointReference("http://127.0.0.1:" +
> >> >>port +
> >> >>"/axis2/services/FileSecurity"));
> >> >>             //options.setTo(new
> >> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
> >> >>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >> >>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >> >>Constants.VALUE_TRUE);
> >> >>             options.setAction("urn:fileSecurity");
> >> >>             serviceClient.setOptions(options);
> >> >>
> >> >>             //Blocking invocation
> >> >>             OMElement result = serviceClient.sendReceive(payload);
> >> >>
> >> >>             StringWriter writer = new StringWriter();
> >> >>             result.serialize(XMLOutputFactory.newInstance()
> >> >>                     .createXMLStreamWriter(writer));
> >> >>             writer.flush();
> >> >>
> >> >>
> >> >>
> >> >>            //System.out.println("Response: " + writer.toString());
> >> >>
> >> >>             System.out.println("SecureService Invocation successful
> >> >>:-)");
> >> >>         } catch (AxisFault axisFault) {
> >> >>             axisFault.printStackTrace();
> >> >>         } catch (XMLStreamException e) {
> >> >>             e.printStackTrace();
> >> >>         }
> >> >>     }
> >> >>
> >> >>
> >> >>     private static OMElement getEchoElement(String fileName) {
> >> >>
> >> >>
> >> >>         DataHandler dh;
> >> >>
> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >>             OMNamespace omNs =
> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1");
> >> >>
> >> >>         OMElement data = fac.createOMElement("fileSecurity", omNs);
> >> >>         OMElement input = fac.createOMElement("file", omNs);
> >> >>             OMElement pack = fac.createOMElement("pack", omNs);
> >> >>
> >> >>             FileDataSource f1 = new FileDataSource(fileName);
> >> >>         dh = new DataHandler(f1);
> >> >>
> >> >>         OMElement filename = fac.createOMElement("fileName", omNs);
> >> >>        // OMText textName = fac.createOMText(filename, "myFile.txt");
> >> >>
> >> >>         OMText textData = fac.createOMText(dh, true);
> >> >>
> >> >>         input.addChild(textData);
> >> >>
> >> >>         pack.addChild(filename);
> >> >>         pack.addChild(input);
> >> >>         data.addChild(pack);
> >> >>
> >> >>         //System.out.println(data);
> >> >>
> >> >>              return data;
> >> >>         }
> >> >>}
> >> >>
> >> >>         server code:
> >> >>
> >> >>public class fileS {
> >> >>
> >> >>         public OMElement fileSecurity(OMElement element) throws
> >>Exception
> >> >>         {
> >> >>                 //System.out.println(element);
> >> >>
> >> >>                 element.build();
> >> >>                 element.detach();
> >> >>
> >> >>             Iterator children = element.getChildElements();
> >> >>
> >> >>                 OMElement name = (OMElement)children.next();
> >> >>//get name of the file,
> >> >>first element of element
> >> >>                 OMElement content = (OMElement)children.next();
> >>//get
> >> >>text that
> >> >>contains the file, second element
> >> >>
> >> >>                 System.out.println("before creating OMText");
> >> >>                 OMText fnode = (OMText)content.getFirstOMChild();
> >> >>                 System.out.println("after creating OMText");
> >> >>//              fnode.setOptimize(true);
> >> >>                 //String fname = name.getText();
> >> >>
> >> >>                 //create data handler to extract the data handler of
> >>the
> >> >>OMText
> >> >>                 DataHandler dfile;
> >> >>                 System.out.println("before getDataHandler from
> >>OMText");
> >> >>
> >> >>                 //String cid = fnode.getContentID();
> >> >>                 //System.out.println(cid);
> >> >>
> >> >>                 dfile = (DataHandler)fnode.getDataHandler();
> >> >>//getDataHandler() and
> >> >>broken pipe
> >> >>
> >> >>                 System.out.println("after create datahandler for
> >> >>OMText");
> >> >>
> >> >>                 FileOutputStream outfile = new  FileOutputStream(new
> >> >>File("/users/alice3/myFile"));
> >> >>                 System.out.println("after create a fileoutputstream");
> >> >>                 dfile.writeTo(outfile);
> >> >>                 System.out.println("after writeTo()");
> >> >>
> >> >>                 //System.out.println("Successful Operation!");
> >> >>
> >> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >> >>         OMNamespace ns = fac.createOMNamespace("urn://fakenamespace",
> >> >>"ns");
> >> >>         OMElement ele = fac.createOMElement("response", ns);
> >> >>         ele.setText("Data Saved");
> >> >>         return ele;
> >> >>
> >> >>         }
> >> >>
> >> >>}
> >> >>
> >> >>        services.xml:
> >> >>
> >> >><service name="FileSecurity" >
> >> >>   <description>
> >> >>                 This is my service for sending file over server-client
> >> >>with security
> >> >>setting
> >> >>         </description>
> >> >>   <parameter locked="false" name="ServiceClass"
> >> >> >security.fileS</parameter>
> >> >>   <operation name="fileSecurity" >
> >> >>     <messageReceiver
> >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
> >> >>   </operation>
> >> >>   <parameter name="InflowSecurity" >
> >> >>     <action>
> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >>
> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >> >>     </action>
> >> >>   </parameter>
> >> >>   <parameter name="OutflowSecurity" >
> >> >>     <action>
> >> >>       <items>Timestamp Signature Encrypt</items>
> >> >>       <user>bob</user>
> >> >>
> >><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >> >>
> >><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
> >> >>
> >><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
> >> >>       <encryptionUser>alice</encryptionUser>
> >> >>
> >> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >> >>     </action>
> >> >>   </parameter>
> >> >></service>
> >> >>
> >> >>          and the .aar package is constucted as follow
> >> >>
> >> >>         security/
> >> >>                 security/PWCallback.class
> >> >>                 security/fileS.class
> >> >>         META-INF/
> >> >>                 META-INF/services.xml
> >> >>         sec.jks
> >> >>         sec.properties
> >> >>
> >> >>      and the result i get from the TCPMON is that at the server side
> >> >>
> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
> >> >>Content-Type: multipart/related;
> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
> >> >>type="application/xop+xml";
> >> >>start="<0....@apache.org>";
> >> >>start-info="text/xml"; charset=UTF-8
> >> >>Transfer-Encoding: chunked
> >> >>Server: Jetty(6.0.x)
> >> >>
> >> >>2DA
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >>content-transfer-encoding:binary
> >> >>content-id:<0....@apache.org>
> >> >>
> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> >> >>35B
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >>content-transfer-encoding:binary
> >> >>content-id:<0....@apache.org>
> >> >>
> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >>security processing failed</faultstring>
> >> >>1383
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >>content-transfer-encoding:binary
> >> >>content-id:<0....@apache.org>
> >> >>
> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >>security processing
> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >>WSDoAllReceiver: security processing failed; nested exception is:
> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >>encrypt/decrypt data;
> >> >>nested exception is:
> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
> >>Error
> >> >>while
> >> >>decoding
> >> >>Original Exception was
> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >> >>decoding
> >> >>         at
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >>         at
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >>         at
> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >>         at
> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >>         at
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >>         at
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >>         at
> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >>         at
> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >>         at
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >>         at
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >>         at
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >>         at
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >>         at
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >>         at
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >>         at
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >>         at
> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >>         at
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >>         at
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >> >>encrypt/decrypt data; nested exception is:
> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
> >>Error
> >> >>while
> >> >>decoding
> >> >>Original Exception was
> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >> >>decoding
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >>         at
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >>         at
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >>         at
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >>         ... 24 more
> >> >>Caused by: org.apache.xml.security.encryption.XMLEncryptionException:
> >> >>Error
> >> >>while decoding
> >> >>Original Exception was
> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >> >>decoding
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >>Source)
> >> >>         at
> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >>         ... 30 more
> >> >></Exception></detail>
> >> >>13B5
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >> >>content-transfer-encoding:binary
> >> >>content-id:<0....@apache.org>
> >> >>
> >> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >> >>security processing
> >> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >> >>WSDoAllReceiver: security processing failed; nested exception is:
> >> >>         org.apache.ws.security.WSSecurityException: Cannot
> >> >>encrypt/decrypt data;
> >> >>nested exception is:
> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
> >>Error
> >> >>while
> >> >>decoding
> >> >>Original Exception was
> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >> >>decoding
> >> >>         at
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >> >>         at
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >>         at
> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >> >>         at
> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >> >>         at
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >>         at
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >>         at
> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >> >>         at
> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >> >>         at
> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >> >>         at
> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >> >>         at
> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >> >>         at
> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >> >>         at
> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >> >>         at
> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >> >>         at
> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >> >>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >> >>         at
> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >> >>         at
> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >> >>         at
> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >> >>         at
> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >> >>encrypt/decrypt data; nested exception is:
> >> >>         org.apache.xml.security.encryption.XMLEncryptionException:
> >>Error
> >> >>while
> >> >>decoding
> >> >>Original Exception was
> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >> >>decoding
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >> >>         at
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >> >>         at
> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >> >>         at
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >> >>         ... 24 more
> >> >>Caused by: org.apache.xml.security.encryption.XMLEncryptionException:
> >> >>Error
> >> >>while decoding
> >> >>Original Exception was
> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >> >>decoding
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >> >>Source)
> >> >>         at
> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >> >>Source)
> >> >>         at
> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >> >>         ... 30 more
> >> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> >> >>3B
> >> >>
> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
> >> >>0
> >> >>
> >> >>           The client side message seems to be ok, with all the
> >>encypted
> >> >>document.
> >> >>
> >> >>           Is there any idea what can cause the fault? Greatly
> >>appreciate,
> >> >>
> >> >>          Wan
> >> >>
> >> >>
> >> >>
> >> >>---------------------------------------------------------------------
> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >www.ruchith.org
> >> >
> >> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: thread-safe problems with Rampart

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Roy,

We found a rampart-1.0 thead safety problem sometime back. This is
fixed in the latest SVN and you can try the latest nightly releases.

If you are tryign the latest nightly rampart-SNAPSHOT[1] then you also
need the latest wss4j-SNAPSHOT.jar[2] and the axis2-rahas-SNAPSHOT[3]
along with the latest axis2 nightly distros[4].

Thanks,
Ruchith

[1] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar
[2] http://people.apache.org/repository/wss4j/jars/wss4j-SNAPSHOT.jar
[3] http://people.apache.org/repository/axis2/jars/axis2-rahas-SNAPSHOT.jar
[4] http://people.apache.org/dist/axis2/nightly/


On 7/20/06, Reshef Roy <ro...@yahoo.com> wrote:
>
> Hi Ruchith,
>
> I have an Axis2 client webapp which determines which
> Axis2 Services it should call (according to own
> "capabilities" mechanisms) and then spawns threads,
> each one calling an Axis2 Service synchronously using
> ServiceClient.sendReceive().
> Problem is, that sometimes 2 or more services are
> located on the same Axis2 server (actually, within the
> same ServiceGroup), then - usually the first time I
> have to invoke the services since the start of Tomcat
> (but sometimes also other times), one service fails,
> sometimes more than one. The failure is always on the
> Server side.
>
> My security configuration is either "TimeStamp
> Signature" (1) or "Timestamp Signatrure Encrypt" (2),
> according to the user's request (encryption yes/ no);
> of course, the client side and the server side are
> using the same security configuration. When I invoke I
> invoke either only services of type (1), or of type
> (2).
> I am sure it is a thread-safe issue, as if I invoke my
> services syncronously (by calling Thread.run() myself
> i.s.o Thread.start()) I have no problem whatsoever.
>
> I saw a mail on this issue, or a similar one; but i'm
> not sure if it was about the client side or the server
> side. Is there a new version of Rampart which I can
> download and try out?
>
> Hereunder you have 2 stack-traces:
> NullPointerExceptions at different methods of
> WSDoAllReceiver. The second one (II) happens only with
>
> "Timestamp Signatrure Encrypt" (2), the first one
> happens with both configurations.
>
> I
>
> 2006-07-20 13:37:12,796 [http-8080-3] ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[AxisServlet]
>  - Servlet.service() for servlet AxisServlet threw
> exception
> java.lang.NullPointerException
>         at
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:195)
>         at
> org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>         at
> org.apache.axis2.engine.Phase.invoke(Phase.java:381)
>         at
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
>         at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>         at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
>         at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
>         at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
>         at java.lang.Thread.run(Thread.java:595)
> 2006-07-20 13:37:12,968 [http-8080-3] ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[jsp]
>  - Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException
>         at
> org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:70)
>         at
> org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:92)
>         at
> org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76)
>         at
> org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197)
>         at
> org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249)
>         at
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
>         at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>         at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>         at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>         at
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
>         at
> org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
>         at
> org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
>         at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
>         at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
>         at java.lang.Thread.run(Thread.java:595)
>
> II
>
> 2006-07-20 13:34:18,015 [http-8080-2] ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[AxisServlet]
>  - Servlet.service() for servlet AxisServlet threw
> exception
> java.lang.NullPointerException
>         at
> org.apache.ws.security.handler.WSHandler.verifyTrust(WSHandler.java:869)
>         at
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:260)
>         at
> org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>         at
> org.apache.axis2.engine.Phase.invoke(Phase.java:381)
>         at
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
>         at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>         at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
>         at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
>         at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
>         at java.lang.Thread.run(Thread.java:595)
> 2006-07-20 13:34:18,140 [http-8080-2] ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[jsp]
>  - Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException
>         at
> org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:70)
>         at
> org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:92)
>         at
> org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76)
>         at
> org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197)
>         at
> org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249)
>         at
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
>         at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>         at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>         at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>         at
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
>         at
> org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
>         at
> org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
>         at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
>         at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
>         at java.lang.Thread.run(Thread.java:595)
>
>
> Thanks in advance,
>
> / Roy
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Thank you Ruchith,

       I have made change as your advice. However, i still got the same 
error...

       Any other possibility?

       Best regards,

        Wan


>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Thu, 20 Jul 2006 16:09:23 +0530
>
>Yes from your services.xml and the client's axis2.xml
>
>Thanks,
>Ruchith
>
>On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Dear Ruchith,
>>
>>    you means
>>remove :
>><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>>
>>     from my services.xml right? or other place?
>>
>>     Wan
>>
>> >
>> >Hi Wan,
>> >
>> >Please remove :
>> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >
>> >entry from your rampart configuration parameters and try again.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>Dear All,
>> >>
>> >>        I have been trying to combine the test about sending file and
>> >>securing message.
>> >>        My environment is Axis2 v1.0, nightly build released 4 June 06 
>>on
>> >>the
>> >>Jetty Servlet.
>> >>
>> >>        From other individual test such as sending text file, and 
>>security
>> >>sample had no problem on this, however with the combination one i got 
>>the
>> >>following error.
>> >>
>> >>        Client code:
>> >>
>> >>/*
>> >>* Created on 19.07.2006
>> >>*
>> >>* TODO To change the template for this generated file go to
>> >>* Window - Preferences - Java - Code Style - Code Templates
>> >>*/
>> >>package security;
>> >>
>> >>/**
>> >>* @author alice3
>> >>*
>> >>* TODO To change the template for this generated type comment go to
>> >>* Window - Preferences - Java - Code Style - Code Templates
>> >>*/
>> >>
>> >>import org.apache.axiom.om.OMAbstractFactory;
>> >>import org.apache.axiom.om.OMElement;
>> >>import org.apache.axiom.om.OMFactory;
>> >>import org.apache.axiom.om.OMNamespace;
>> >>import org.apache.axiom.om.OMText;
>> >>import org.apache.axis2.AxisFault;
>> >>import org.apache.axis2.Constants;
>> >>import org.apache.axis2.addressing.EndpointReference;
>> >>import org.apache.axis2.client.Options;
>> >>import org.apache.axis2.client.ServiceClient;
>> >>import org.apache.axis2.context.ConfigurationContext;
>> >>import org.apache.axis2.context.ConfigurationContextFactory;
>> >>
>> >>//import org.apache.axis2.soapmonitor.*;
>> >>
>> >>import javax.activation.DataHandler;
>> >>import javax.activation.FileDataSource;
>> >>import javax.xml.namespace.QName;
>> >>import javax.xml.stream.XMLOutputFactory;
>> >>import javax.xml.stream.XMLStreamException;
>> >>
>> >>import java.io.File;
>> >>import java.io.StringWriter;
>> >>
>> >>
>> >>public class SecureClient {
>> >>
>> >>     private File inputFile = null;
>> >>
>> >>     private QName operationName = new QName("fileSecurity");
>> >>
>> >>     public static void main(String[] args) {
>> >>
>> >>         try {
>> >>
>> >>             // Get the repository location from the args
>> >>             String repo = args[0];
>> >>             String port = args[1];
>> >>
>> >>             OMElement payload =
>> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >>             ConfigurationContext configContext =
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >>null);
>> >>             ServiceClient serviceClient = new
>> >>ServiceClient(configContext,
>> >>null);
>> >>             Options options = new Options();
>> >>             options.setTo(new EndpointReference("http://127.0.0.1:" +
>> >>port +
>> >>"/axis2/services/FileSecurity"));
>> >>             //options.setTo(new
>> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>> >>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >>Constants.VALUE_TRUE);
>> >>             options.setAction("urn:fileSecurity");
>> >>             serviceClient.setOptions(options);
>> >>
>> >>             //Blocking invocation
>> >>             OMElement result = serviceClient.sendReceive(payload);
>> >>
>> >>             StringWriter writer = new StringWriter();
>> >>             result.serialize(XMLOutputFactory.newInstance()
>> >>                     .createXMLStreamWriter(writer));
>> >>             writer.flush();
>> >>
>> >>
>> >>
>> >>            //System.out.println("Response: " + writer.toString());
>> >>
>> >>             System.out.println("SecureService Invocation successful
>> >>:-)");
>> >>         } catch (AxisFault axisFault) {
>> >>             axisFault.printStackTrace();
>> >>         } catch (XMLStreamException e) {
>> >>             e.printStackTrace();
>> >>         }
>> >>     }
>> >>
>> >>
>> >>     private static OMElement getEchoElement(String fileName) {
>> >>
>> >>
>> >>         DataHandler dh;
>> >>
>> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>> >>             OMNamespace omNs =
>> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1");
>> >>
>> >>         OMElement data = fac.createOMElement("fileSecurity", omNs);
>> >>         OMElement input = fac.createOMElement("file", omNs);
>> >>             OMElement pack = fac.createOMElement("pack", omNs);
>> >>
>> >>             FileDataSource f1 = new FileDataSource(fileName);
>> >>         dh = new DataHandler(f1);
>> >>
>> >>         OMElement filename = fac.createOMElement("fileName", omNs);
>> >>        // OMText textName = fac.createOMText(filename, "myFile.txt");
>> >>
>> >>         OMText textData = fac.createOMText(dh, true);
>> >>
>> >>         input.addChild(textData);
>> >>
>> >>         pack.addChild(filename);
>> >>         pack.addChild(input);
>> >>         data.addChild(pack);
>> >>
>> >>         //System.out.println(data);
>> >>
>> >>              return data;
>> >>         }
>> >>}
>> >>
>> >>         server code:
>> >>
>> >>public class fileS {
>> >>
>> >>         public OMElement fileSecurity(OMElement element) throws 
>>Exception
>> >>         {
>> >>                 //System.out.println(element);
>> >>
>> >>                 element.build();
>> >>                 element.detach();
>> >>
>> >>             Iterator children = element.getChildElements();
>> >>
>> >>                 OMElement name = (OMElement)children.next();
>> >>//get name of the file,
>> >>first element of element
>> >>                 OMElement content = (OMElement)children.next();     
>>//get
>> >>text that
>> >>contains the file, second element
>> >>
>> >>                 System.out.println("before creating OMText");
>> >>                 OMText fnode = (OMText)content.getFirstOMChild();
>> >>                 System.out.println("after creating OMText");
>> >>//              fnode.setOptimize(true);
>> >>                 //String fname = name.getText();
>> >>
>> >>                 //create data handler to extract the data handler of 
>>the
>> >>OMText
>> >>                 DataHandler dfile;
>> >>                 System.out.println("before getDataHandler from 
>>OMText");
>> >>
>> >>                 //String cid = fnode.getContentID();
>> >>                 //System.out.println(cid);
>> >>
>> >>                 dfile = (DataHandler)fnode.getDataHandler();
>> >>//getDataHandler() and
>> >>broken pipe
>> >>
>> >>                 System.out.println("after create datahandler for
>> >>OMText");
>> >>
>> >>                 FileOutputStream outfile = new  FileOutputStream(new
>> >>File("/users/alice3/myFile"));
>> >>                 System.out.println("after create a fileoutputstream");
>> >>                 dfile.writeTo(outfile);
>> >>                 System.out.println("after writeTo()");
>> >>
>> >>                 //System.out.println("Successful Operation!");
>> >>
>> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>> >>         OMNamespace ns = fac.createOMNamespace("urn://fakenamespace",
>> >>"ns");
>> >>         OMElement ele = fac.createOMElement("response", ns);
>> >>         ele.setText("Data Saved");
>> >>         return ele;
>> >>
>> >>         }
>> >>
>> >>}
>> >>
>> >>        services.xml:
>> >>
>> >><service name="FileSecurity" >
>> >>   <description>
>> >>                 This is my service for sending file over server-client
>> >>with security
>> >>setting
>> >>         </description>
>> >>   <parameter locked="false" name="ServiceClass"
>> >> >security.fileS</parameter>
>> >>   <operation name="fileSecurity" >
>> >>     <messageReceiver
>> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>> >>   </operation>
>> >>   <parameter name="InflowSecurity" >
>> >>     <action>
>> >>       <items>Timestamp Signature Encrypt</items>
>> >>       
>><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >>     </action>
>> >>   </parameter>
>> >>   <parameter name="OutflowSecurity" >
>> >>     <action>
>> >>       <items>Timestamp Signature Encrypt</items>
>> >>       <user>bob</user>
>> >>       
>><passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>> >>       <signaturePropFile>sec.properties</signaturePropFile>
>> >>       
>><signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>> >>       
>><encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>> >>       <encryptionUser>alice</encryptionUser>
>> >>
>> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>> >>     </action>
>> >>   </parameter>
>> >></service>
>> >>
>> >>          and the .aar package is constucted as follow
>> >>
>> >>         security/
>> >>                 security/PWCallback.class
>> >>                 security/fileS.class
>> >>         META-INF/
>> >>                 META-INF/services.xml
>> >>         sec.jks
>> >>         sec.properties
>> >>
>> >>      and the result i get from the TCPMON is that at the server side
>> >>
>> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
>> >>Content-Type: multipart/related;
>> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
>> >>type="application/xop+xml";
>> >>start="<0....@apache.org>";
>> >>start-info="text/xml"; charset=UTF-8
>> >>Transfer-Encoding: chunked
>> >>Server: Jetty(6.0.x)
>> >>
>> >>2DA
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >>content-transfer-encoding:binary
>> >>content-id:<0....@apache.org>
>> >>
>> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> >>35B
>> >>
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >>content-transfer-encoding:binary
>> >>content-id:<0....@apache.org>
>> >>
>> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >>security processing failed</faultstring>
>> >>1383
>> >>
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >>content-transfer-encoding:binary
>> >>content-id:<0....@apache.org>
>> >>
>> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >>security processing
>> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >>WSDoAllReceiver: security processing failed; nested exception is:
>> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >>encrypt/decrypt data;
>> >>nested exception is:
>> >>         org.apache.xml.security.encryption.XMLEncryptionException: 
>>Error
>> >>while
>> >>decoding
>> >>Original Exception was
>> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>> >>decoding
>> >>         at
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >>         at
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >>         at 
>>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >>         at
>> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >>         at
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >>         at
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >>         at 
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >>         at 
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >>         at
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >>         at
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >>         at
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >>         at
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >>         at
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >>         at
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >>         at
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >>         at
>> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >>         at
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >>         at
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >>encrypt/decrypt data; nested exception is:
>> >>         org.apache.xml.security.encryption.XMLEncryptionException: 
>>Error
>> >>while
>> >>decoding
>> >>Original Exception was
>> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>> >>decoding
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >>         at
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >>         at
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >>         at
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >>         ... 24 more
>> >>Caused by: org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >>while decoding
>> >>Original Exception was
>> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>> >>decoding
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >>Source)
>> >>         at 
>>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >>         ... 30 more
>> >></Exception></detail>
>> >>13B5
>> >>
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>> >>content-transfer-encoding:binary
>> >>content-id:<0....@apache.org>
>> >>
>> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>> >>security processing
>> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>> >>WSDoAllReceiver: security processing failed; nested exception is:
>> >>         org.apache.ws.security.WSSecurityException: Cannot
>> >>encrypt/decrypt data;
>> >>nested exception is:
>> >>         org.apache.xml.security.encryption.XMLEncryptionException: 
>>Error
>> >>while
>> >>decoding
>> >>Original Exception was
>> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>> >>decoding
>> >>         at
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>> >>         at
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >>         at 
>>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>> >>         at
>> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>> >>         at
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >>         at
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >>         at 
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>> >>         at 
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>> >>         at
>> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>> >>         at
>> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>> >>         at
>> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>> >>         at
>> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>> >>         at
>> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>> >>         at
>> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>> >>         at
>> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>> >>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>> >>         at
>> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>> >>         at
>> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>> >>         at
>> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>> >>         at
>> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>> >>encrypt/decrypt data; nested exception is:
>> >>         org.apache.xml.security.encryption.XMLEncryptionException: 
>>Error
>> >>while
>> >>decoding
>> >>Original Exception was
>> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>> >>decoding
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>> >>         at
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>> >>         at
>> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>> >>         at
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>> >>         ... 24 more
>> >>Caused by: org.apache.xml.security.encryption.XMLEncryptionException:
>> >>Error
>> >>while decoding
>> >>Original Exception was
>> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>> >>decoding
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>> >>Source)
>> >>         at 
>>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> >>Source)
>> >>         at
>> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>> >>         ... 30 more
>> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>> >>3B
>> >>
>> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
>> >>0
>> >>
>> >>           The client side message seems to be ok, with all the 
>>encypted
>> >>document.
>> >>
>> >>           Is there any idea what can cause the fault? Greatly 
>>appreciate,
>> >>
>> >>          Wan
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


thread-safe problems with Rampart

Posted by Reshef Roy <ro...@yahoo.com>.
Hi Ruchith,

I have an Axis2 client webapp which determines which
Axis2 Services it should call (according to own
"capabilities" mechanisms) and then spawns threads,
each one calling an Axis2 Service synchronously using
ServiceClient.sendReceive().
Problem is, that sometimes 2 or more services are
located on the same Axis2 server (actually, within the
same ServiceGroup), then - usually the first time I
have to invoke the services since the start of Tomcat
(but sometimes also other times), one service fails,
sometimes more than one. The failure is always on the
Server side.

My security configuration is either "TimeStamp
Signature" (1) or "Timestamp Signatrure Encrypt" (2),
according to the user's request (encryption yes/ no);
of course, the client side and the server side are
using the same security configuration. When I invoke I
invoke either only services of type (1), or of type
(2).
I am sure it is a thread-safe issue, as if I invoke my
services syncronously (by calling Thread.run() myself
i.s.o Thread.start()) I have no problem whatsoever.

I saw a mail on this issue, or a similar one; but i'm
not sure if it was about the client side or the server
side. Is there a new version of Rampart which I can
download and try out?

Hereunder you have 2 stack-traces:
NullPointerExceptions at different methods of
WSDoAllReceiver. The second one (II) happens only with

"Timestamp Signatrure Encrypt" (2), the first one
happens with both configurations.

I

2006-07-20 13:37:12,796 [http-8080-3] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[AxisServlet]
 - Servlet.service() for servlet AxisServlet threw
exception
java.lang.NullPointerException
	at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:195)
	at
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
	at
org.apache.axis2.engine.Phase.invoke(Phase.java:381)
	at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
	at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
	at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
	at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
	at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
	at java.lang.Thread.run(Thread.java:595)
2006-07-20 13:37:12,968 [http-8080-3] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[jsp]
 - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
	at
org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:70)
	at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:92)
	at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76)
	at
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197)
	at
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249)
	at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
	at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
	at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
	at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
	at java.lang.Thread.run(Thread.java:595)

II

2006-07-20 13:34:18,015 [http-8080-2] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[AxisServlet]
 - Servlet.service() for servlet AxisServlet threw
exception
java.lang.NullPointerException
	at
org.apache.ws.security.handler.WSHandler.verifyTrust(WSHandler.java:869)
	at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:260)
	at
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
	at
org.apache.axis2.engine.Phase.invoke(Phase.java:381)
	at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
	at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
	at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
	at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
	at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
	at java.lang.Thread.run(Thread.java:595)
2006-07-20 13:34:18,140 [http-8080-2] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[jsp]
 - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
	at
org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:70)
	at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:92)
	at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76)
	at
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197)
	at
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249)
	at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
	at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
	at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
	at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
	at java.lang.Thread.run(Thread.java:595)


Thanks in advance,

/ Roy

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Yes from your services.xml and the client's axis2.xml

Thanks,
Ruchith

On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Dear Ruchith,
>
>    you means
> remove :
> <optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>
>     from my services.xml right? or other place?
>
>     Wan
>
> >
> >Hi Wan,
> >
> >Please remove :
> ><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >
> >entry from your rampart configuration parameters and try again.
> >
> >Thanks,
> >Ruchith
> >
> >On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>Dear All,
> >>
> >>        I have been trying to combine the test about sending file and
> >>securing message.
> >>        My environment is Axis2 v1.0, nightly build released 4 June 06 on
> >>the
> >>Jetty Servlet.
> >>
> >>        From other individual test such as sending text file, and security
> >>sample had no problem on this, however with the combination one i got the
> >>following error.
> >>
> >>        Client code:
> >>
> >>/*
> >>* Created on 19.07.2006
> >>*
> >>* TODO To change the template for this generated file go to
> >>* Window - Preferences - Java - Code Style - Code Templates
> >>*/
> >>package security;
> >>
> >>/**
> >>* @author alice3
> >>*
> >>* TODO To change the template for this generated type comment go to
> >>* Window - Preferences - Java - Code Style - Code Templates
> >>*/
> >>
> >>import org.apache.axiom.om.OMAbstractFactory;
> >>import org.apache.axiom.om.OMElement;
> >>import org.apache.axiom.om.OMFactory;
> >>import org.apache.axiom.om.OMNamespace;
> >>import org.apache.axiom.om.OMText;
> >>import org.apache.axis2.AxisFault;
> >>import org.apache.axis2.Constants;
> >>import org.apache.axis2.addressing.EndpointReference;
> >>import org.apache.axis2.client.Options;
> >>import org.apache.axis2.client.ServiceClient;
> >>import org.apache.axis2.context.ConfigurationContext;
> >>import org.apache.axis2.context.ConfigurationContextFactory;
> >>
> >>//import org.apache.axis2.soapmonitor.*;
> >>
> >>import javax.activation.DataHandler;
> >>import javax.activation.FileDataSource;
> >>import javax.xml.namespace.QName;
> >>import javax.xml.stream.XMLOutputFactory;
> >>import javax.xml.stream.XMLStreamException;
> >>
> >>import java.io.File;
> >>import java.io.StringWriter;
> >>
> >>
> >>public class SecureClient {
> >>
> >>     private File inputFile = null;
> >>
> >>     private QName operationName = new QName("fileSecurity");
> >>
> >>     public static void main(String[] args) {
> >>
> >>         try {
> >>
> >>             // Get the repository location from the args
> >>             String repo = args[0];
> >>             String port = args[1];
> >>
> >>             OMElement payload =
> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
> >>             ConfigurationContext configContext =
> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> >>null);
> >>             ServiceClient serviceClient = new
> >>ServiceClient(configContext,
> >>null);
> >>             Options options = new Options();
> >>             options.setTo(new EndpointReference("http://127.0.0.1:" +
> >>port +
> >>"/axis2/services/FileSecurity"));
> >>             //options.setTo(new
> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
> >>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
> >>Constants.VALUE_TRUE);
> >>             options.setAction("urn:fileSecurity");
> >>             serviceClient.setOptions(options);
> >>
> >>             //Blocking invocation
> >>             OMElement result = serviceClient.sendReceive(payload);
> >>
> >>             StringWriter writer = new StringWriter();
> >>             result.serialize(XMLOutputFactory.newInstance()
> >>                     .createXMLStreamWriter(writer));
> >>             writer.flush();
> >>
> >>
> >>
> >>            //System.out.println("Response: " + writer.toString());
> >>
> >>             System.out.println("SecureService Invocation successful
> >>:-)");
> >>         } catch (AxisFault axisFault) {
> >>             axisFault.printStackTrace();
> >>         } catch (XMLStreamException e) {
> >>             e.printStackTrace();
> >>         }
> >>     }
> >>
> >>
> >>     private static OMElement getEchoElement(String fileName) {
> >>
> >>
> >>         DataHandler dh;
> >>
> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >>             OMNamespace omNs =
> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1");
> >>
> >>         OMElement data = fac.createOMElement("fileSecurity", omNs);
> >>         OMElement input = fac.createOMElement("file", omNs);
> >>             OMElement pack = fac.createOMElement("pack", omNs);
> >>
> >>             FileDataSource f1 = new FileDataSource(fileName);
> >>         dh = new DataHandler(f1);
> >>
> >>         OMElement filename = fac.createOMElement("fileName", omNs);
> >>        // OMText textName = fac.createOMText(filename, "myFile.txt");
> >>
> >>         OMText textData = fac.createOMText(dh, true);
> >>
> >>         input.addChild(textData);
> >>
> >>         pack.addChild(filename);
> >>         pack.addChild(input);
> >>         data.addChild(pack);
> >>
> >>         //System.out.println(data);
> >>
> >>              return data;
> >>         }
> >>}
> >>
> >>         server code:
> >>
> >>public class fileS {
> >>
> >>         public OMElement fileSecurity(OMElement element) throws Exception
> >>         {
> >>                 //System.out.println(element);
> >>
> >>                 element.build();
> >>                 element.detach();
> >>
> >>             Iterator children = element.getChildElements();
> >>
> >>                 OMElement name = (OMElement)children.next();
> >>//get name of the file,
> >>first element of element
> >>                 OMElement content = (OMElement)children.next();     //get
> >>text that
> >>contains the file, second element
> >>
> >>                 System.out.println("before creating OMText");
> >>                 OMText fnode = (OMText)content.getFirstOMChild();
> >>                 System.out.println("after creating OMText");
> >>//              fnode.setOptimize(true);
> >>                 //String fname = name.getText();
> >>
> >>                 //create data handler to extract the data handler of the
> >>OMText
> >>                 DataHandler dfile;
> >>                 System.out.println("before getDataHandler from OMText");
> >>
> >>                 //String cid = fnode.getContentID();
> >>                 //System.out.println(cid);
> >>
> >>                 dfile = (DataHandler)fnode.getDataHandler();
> >>//getDataHandler() and
> >>broken pipe
> >>
> >>                 System.out.println("after create datahandler for
> >>OMText");
> >>
> >>                 FileOutputStream outfile = new  FileOutputStream(new
> >>File("/users/alice3/myFile"));
> >>                 System.out.println("after create a fileoutputstream");
> >>                 dfile.writeTo(outfile);
> >>                 System.out.println("after writeTo()");
> >>
> >>                 //System.out.println("Successful Operation!");
> >>
> >>                 OMFactory fac = OMAbstractFactory.getOMFactory();
> >>         OMNamespace ns = fac.createOMNamespace("urn://fakenamespace",
> >>"ns");
> >>         OMElement ele = fac.createOMElement("response", ns);
> >>         ele.setText("Data Saved");
> >>         return ele;
> >>
> >>         }
> >>
> >>}
> >>
> >>        services.xml:
> >>
> >><service name="FileSecurity" >
> >>   <description>
> >>                 This is my service for sending file over server-client
> >>with security
> >>setting
> >>         </description>
> >>   <parameter locked="false" name="ServiceClass"
> >> >security.fileS</parameter>
> >>   <operation name="fileSecurity" >
> >>     <messageReceiver
> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
> >>   </operation>
> >>   <parameter name="InflowSecurity" >
> >>     <action>
> >>       <items>Timestamp Signature Encrypt</items>
> >>       <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >>     </action>
> >>   </parameter>
> >>   <parameter name="OutflowSecurity" >
> >>     <action>
> >>       <items>Timestamp Signature Encrypt</items>
> >>       <user>bob</user>
> >>       <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
> >>       <signaturePropFile>sec.properties</signaturePropFile>
> >>       <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
> >>       <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
> >>       <encryptionUser>alice</encryptionUser>
> >>
> >><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
> >>     </action>
> >>   </parameter>
> >></service>
> >>
> >>          and the .aar package is constucted as follow
> >>
> >>         security/
> >>                 security/PWCallback.class
> >>                 security/fileS.class
> >>         META-INF/
> >>                 META-INF/services.xml
> >>         sec.jks
> >>         sec.properties
> >>
> >>      and the result i get from the TCPMON is that at the server side
> >>
> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT
> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
> >>Content-Type: multipart/related;
> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
> >>type="application/xop+xml";
> >>start="<0....@apache.org>";
> >>start-info="text/xml"; charset=UTF-8
> >>Transfer-Encoding: chunked
> >>Server: Jetty(6.0.x)
> >>
> >>2DA
> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >>content-transfer-encoding:binary
> >>content-id:<0....@apache.org>
> >>
> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> >>35B
> >>
> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >>content-transfer-encoding:binary
> >>content-id:<0....@apache.org>
> >>
> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >>security processing failed</faultstring>
> >>1383
> >>
> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >>content-transfer-encoding:binary
> >>content-id:<0....@apache.org>
> >>
> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >>security processing
> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >>WSDoAllReceiver: security processing failed; nested exception is:
> >>         org.apache.ws.security.WSSecurityException: Cannot
> >>encrypt/decrypt data;
> >>nested exception is:
> >>         org.apache.xml.security.encryption.XMLEncryptionException: Error
> >>while
> >>decoding
> >>Original Exception was
> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >>decoding
> >>         at
> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >>         at
> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >>         at
> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >>         at
> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >>         at
> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >>         at
> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >>         at
> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >>         at
> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >>         at
> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >>         at
> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >>         at
> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >>         at
> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >>         at
> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >>         at
> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >>         at
> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >>         at
> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >>         at
> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >>         at
> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >>         at
> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >>encrypt/decrypt data; nested exception is:
> >>         org.apache.xml.security.encryption.XMLEncryptionException: Error
> >>while
> >>decoding
> >>Original Exception was
> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >>decoding
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >>         at
> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >>         at
> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >>         at
> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >>         ... 24 more
> >>Caused by: org.apache.xml.security.encryption.XMLEncryptionException:
> >>Error
> >>while decoding
> >>Original Exception was
> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >>decoding
> >>         at
> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >>Source)
> >>         at
> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >>Source)
> >>         at
> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >>Source)
> >>         at
> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >>Source)
> >>         at
> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >>Source)
> >>         at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >>Source)
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >>         ... 30 more
> >></Exception></detail>
> >>13B5
> >>
> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> >>content-transfer-encoding:binary
> >>content-id:<0....@apache.org>
> >>
> >><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> >>security processing
> >>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> >>WSDoAllReceiver: security processing failed; nested exception is:
> >>         org.apache.ws.security.WSSecurityException: Cannot
> >>encrypt/decrypt data;
> >>nested exception is:
> >>         org.apache.xml.security.encryption.XMLEncryptionException: Error
> >>while
> >>decoding
> >>Original Exception was
> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >>decoding
> >>         at
> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
> >>         at
> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
> >>         at
> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
> >>         at
> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >>         at
> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> >>         at
> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> >>         at
> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> >>         at
> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
> >>         at
> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
> >>         at
> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
> >>         at
> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> >>         at
> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> >>         at org.mortbay.jetty.Server.handle(Server.java:245)
> >>         at
> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
> >>         at
> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
> >>         at
> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
> >>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
> >>         at
> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
> >>         at
> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
> >>         at
> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
> >>         at
> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot
> >>encrypt/decrypt data; nested exception is:
> >>         org.apache.xml.security.encryption.XMLEncryptionException: Error
> >>while
> >>decoding
> >>Original Exception was
> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >>decoding
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> >>         at
> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> >>         at
> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> >>         at
> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> >>         ... 24 more
> >>Caused by: org.apache.xml.security.encryption.XMLEncryptionException:
> >>Error
> >>while decoding
> >>Original Exception was
> >>org.apache.xml.security.exceptions.Base64DecodingException: Error while
> >>decoding
> >>         at
> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> >>Source)
> >>         at
> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> >>Source)
> >>         at
> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> >>Source)
> >>         at
> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> >>Source)
> >>         at
> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> >>Source)
> >>         at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> >>Source)
> >>         at
> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
> >>         ... 30 more
> >></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> >>3B
> >>
> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
> >>0
> >>
> >>           The client side message seems to be ok, with all the encypted
> >>document.
> >>
> >>           Is there any idea what can cause the fault? Greatly appreciate,
> >>
> >>          Wan
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

   you means
remove :
<optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>

    from my services.xml right? or other place?

    Wan

>
>Hi Wan,
>
>Please remove :
><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>
>entry from your rampart configuration parameters and try again.
>
>Thanks,
>Ruchith
>
>On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Dear All,
>>
>>        I have been trying to combine the test about sending file and
>>securing message.
>>        My environment is Axis2 v1.0, nightly build released 4 June 06 on 
>>the
>>Jetty Servlet.
>>
>>        From other individual test such as sending text file, and security
>>sample had no problem on this, however with the combination one i got the
>>following error.
>>
>>        Client code:
>>
>>/*
>>* Created on 19.07.2006
>>*
>>* TODO To change the template for this generated file go to
>>* Window - Preferences - Java - Code Style - Code Templates
>>*/
>>package security;
>>
>>/**
>>* @author alice3
>>*
>>* TODO To change the template for this generated type comment go to
>>* Window - Preferences - Java - Code Style - Code Templates
>>*/
>>
>>import org.apache.axiom.om.OMAbstractFactory;
>>import org.apache.axiom.om.OMElement;
>>import org.apache.axiom.om.OMFactory;
>>import org.apache.axiom.om.OMNamespace;
>>import org.apache.axiom.om.OMText;
>>import org.apache.axis2.AxisFault;
>>import org.apache.axis2.Constants;
>>import org.apache.axis2.addressing.EndpointReference;
>>import org.apache.axis2.client.Options;
>>import org.apache.axis2.client.ServiceClient;
>>import org.apache.axis2.context.ConfigurationContext;
>>import org.apache.axis2.context.ConfigurationContextFactory;
>>
>>//import org.apache.axis2.soapmonitor.*;
>>
>>import javax.activation.DataHandler;
>>import javax.activation.FileDataSource;
>>import javax.xml.namespace.QName;
>>import javax.xml.stream.XMLOutputFactory;
>>import javax.xml.stream.XMLStreamException;
>>
>>import java.io.File;
>>import java.io.StringWriter;
>>
>>
>>public class SecureClient {
>>
>>     private File inputFile = null;
>>
>>     private QName operationName = new QName("fileSecurity");
>>
>>     public static void main(String[] args) {
>>
>>         try {
>>
>>             // Get the repository location from the args
>>             String repo = args[0];
>>             String port = args[1];
>>
>>             OMElement payload =
>>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>>             ConfigurationContext configContext =
>>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>>null);
>>             ServiceClient serviceClient = new 
>>ServiceClient(configContext,
>>null);
>>             Options options = new Options();
>>             options.setTo(new EndpointReference("http://127.0.0.1:" + 
>>port +
>>"/axis2/services/FileSecurity"));
>>             //options.setTo(new
>>EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
>>Constants.VALUE_TRUE);
>>             options.setAction("urn:fileSecurity");
>>             serviceClient.setOptions(options);
>>
>>             //Blocking invocation
>>             OMElement result = serviceClient.sendReceive(payload);
>>
>>             StringWriter writer = new StringWriter();
>>             result.serialize(XMLOutputFactory.newInstance()
>>                     .createXMLStreamWriter(writer));
>>             writer.flush();
>>
>>
>>
>>            //System.out.println("Response: " + writer.toString());
>>
>>             System.out.println("SecureService Invocation successful 
>>:-)");
>>         } catch (AxisFault axisFault) {
>>             axisFault.printStackTrace();
>>         } catch (XMLStreamException e) {
>>             e.printStackTrace();
>>         }
>>     }
>>
>>
>>     private static OMElement getEchoElement(String fileName) {
>>
>>
>>         DataHandler dh;
>>
>>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>>             OMNamespace omNs =
>>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1");
>>
>>         OMElement data = fac.createOMElement("fileSecurity", omNs);
>>         OMElement input = fac.createOMElement("file", omNs);
>>             OMElement pack = fac.createOMElement("pack", omNs);
>>
>>             FileDataSource f1 = new FileDataSource(fileName);
>>         dh = new DataHandler(f1);
>>
>>         OMElement filename = fac.createOMElement("fileName", omNs);
>>        // OMText textName = fac.createOMText(filename, "myFile.txt");
>>
>>         OMText textData = fac.createOMText(dh, true);
>>
>>         input.addChild(textData);
>>
>>         pack.addChild(filename);
>>         pack.addChild(input);
>>         data.addChild(pack);
>>
>>         //System.out.println(data);
>>
>>              return data;
>>         }
>>}
>>
>>         server code:
>>
>>public class fileS {
>>
>>         public OMElement fileSecurity(OMElement element) throws Exception
>>         {
>>                 //System.out.println(element);
>>
>>                 element.build();
>>                 element.detach();
>>
>>             Iterator children = element.getChildElements();
>>
>>                 OMElement name = (OMElement)children.next();            
>>//get name of the file,
>>first element of element
>>                 OMElement content = (OMElement)children.next();     //get 
>>text that
>>contains the file, second element
>>
>>                 System.out.println("before creating OMText");
>>                 OMText fnode = (OMText)content.getFirstOMChild();
>>                 System.out.println("after creating OMText");
>>//              fnode.setOptimize(true);
>>                 //String fname = name.getText();
>>
>>                 //create data handler to extract the data handler of the 
>>OMText
>>                 DataHandler dfile;
>>                 System.out.println("before getDataHandler from OMText");
>>
>>                 //String cid = fnode.getContentID();
>>                 //System.out.println(cid);
>>
>>                 dfile = (DataHandler)fnode.getDataHandler();  
>>//getDataHandler() and
>>broken pipe
>>
>>                 System.out.println("after create datahandler for 
>>OMText");
>>
>>                 FileOutputStream outfile = new  FileOutputStream(new
>>File("/users/alice3/myFile"));
>>                 System.out.println("after create a fileoutputstream");
>>                 dfile.writeTo(outfile);
>>                 System.out.println("after writeTo()");
>>
>>                 //System.out.println("Successful Operation!");
>>
>>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>>         OMNamespace ns = fac.createOMNamespace("urn://fakenamespace", 
>>"ns");
>>         OMElement ele = fac.createOMElement("response", ns);
>>         ele.setText("Data Saved");
>>         return ele;
>>
>>         }
>>
>>}
>>
>>        services.xml:
>>
>><service name="FileSecurity" >
>>   <description>
>>                 This is my service for sending file over server-client 
>>with security
>>setting
>>         </description>
>>   <parameter locked="false" name="ServiceClass" 
>> >security.fileS</parameter>
>>   <operation name="fileSecurity" >
>>     <messageReceiver
>>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>>   </operation>
>>   <parameter name="InflowSecurity" >
>>     <action>
>>       <items>Timestamp Signature Encrypt</items>
>>       <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>>       <signaturePropFile>sec.properties</signaturePropFile>
>>     </action>
>>   </parameter>
>>   <parameter name="OutflowSecurity" >
>>     <action>
>>       <items>Timestamp Signature Encrypt</items>
>>       <user>bob</user>
>>       <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>>       <signaturePropFile>sec.properties</signaturePropFile>
>>       <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>>       <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>>       <encryptionUser>alice</encryptionUser>
>>
>><optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>>     </action>
>>   </parameter>
>></service>
>>
>>          and the .aar package is constucted as follow
>>
>>         security/
>>                 security/PWCallback.class
>>                 security/fileS.class
>>         META-INF/
>>                 META-INF/services.xml
>>         sec.jks
>>         sec.properties
>>
>>      and the result i get from the TCPMON is that at the server side
>>
>>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
>>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
>>Content-Type: multipart/related;
>>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
>>type="application/xop+xml";
>>start="<0....@apache.org>";
>>start-info="text/xml"; charset=UTF-8
>>Transfer-Encoding: chunked
>>Server: Jetty(6.0.x)
>>
>>2DA
>>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>>content-transfer-encoding:binary
>>content-id:<0....@apache.org>
>>
>><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
>>35B
>>
>>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>>content-transfer-encoding:binary
>>content-id:<0....@apache.org>
>>
>><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>>security processing failed</faultstring>
>>1383
>>
>>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>>content-transfer-encoding:binary
>>content-id:<0....@apache.org>
>>
>><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>>security processing
>>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>>WSDoAllReceiver: security processing failed; nested exception is:
>>         org.apache.ws.security.WSSecurityException: Cannot 
>>encrypt/decrypt data;
>>nested exception is:
>>         org.apache.xml.security.encryption.XMLEncryptionException: Error 
>>while
>>decoding
>>Original Exception was
>>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>>decoding
>>         at
>>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>>         at
>>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>>         at 
>>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>>         at
>>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>>         at 
>>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>>         at 
>>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>>         at 
>>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>>         at 
>>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>>         at 
>>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>>         at
>>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>>         at
>>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>>         at 
>>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>>         at org.mortbay.jetty.Server.handle(Server.java:245)
>>         at 
>>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>>         at 
>>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>>         at
>>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>>         at 
>>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>>         at 
>>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>>         at
>>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>>         at
>>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>>encrypt/decrypt data; nested exception is:
>>         org.apache.xml.security.encryption.XMLEncryptionException: Error 
>>while
>>decoding
>>Original Exception was
>>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>>decoding
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>>         at
>>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>>         at
>>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>>         at
>>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>>         ... 24 more
>>Caused by: org.apache.xml.security.encryption.XMLEncryptionException: 
>>Error
>>while decoding
>>Original Exception was
>>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>>decoding
>>         at
>>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>>Source)
>>         at 
>>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>>Source)
>>         at 
>>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>>Source)
>>         at 
>>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>>Source)
>>         at
>>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>>Source)
>>         at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown 
>>Source)
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>>         ... 30 more
>></Exception></detail>
>>13B5
>>
>>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
>>content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>>content-transfer-encoding:binary
>>content-id:<0....@apache.org>
>>
>><?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>>xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
>>security processing
>>failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
>>WSDoAllReceiver: security processing failed; nested exception is:
>>         org.apache.ws.security.WSSecurityException: Cannot 
>>encrypt/decrypt data;
>>nested exception is:
>>         org.apache.xml.security.encryption.XMLEncryptionException: Error 
>>while
>>decoding
>>Original Exception was
>>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>>decoding
>>         at
>>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>>         at
>>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>>         at 
>>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>>         at
>>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>>         at 
>>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>>         at 
>>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>>         at 
>>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>>         at 
>>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>>         at 
>>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>>         at
>>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>>         at
>>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>>         at 
>>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>>         at org.mortbay.jetty.Server.handle(Server.java:245)
>>         at 
>>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>>         at 
>>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>>         at
>>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>>         at 
>>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>>         at 
>>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>>         at
>>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>>         at
>>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
>>Caused by: org.apache.ws.security.WSSecurityException: Cannot
>>encrypt/decrypt data; nested exception is:
>>         org.apache.xml.security.encryption.XMLEncryptionException: Error 
>>while
>>decoding
>>Original Exception was
>>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>>decoding
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>>         at
>>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>>         at
>>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>>         at
>>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>>         ... 24 more
>>Caused by: org.apache.xml.security.encryption.XMLEncryptionException: 
>>Error
>>while decoding
>>Original Exception was
>>org.apache.xml.security.exceptions.Base64DecodingException: Error while
>>decoding
>>         at
>>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
>>Source)
>>         at 
>>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
>>Source)
>>         at 
>>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
>>Source)
>>         at 
>>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
>>Source)
>>         at
>>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
>>Source)
>>         at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown 
>>Source)
>>         at
>>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>>         ... 30 more
>></Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>>3B
>>
>>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
>>0
>>
>>           The client side message seems to be ok, with all the encypted
>>document.
>>
>>           Is there any idea what can cause the fault? Greatly appreciate,
>>
>>          Wan
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2 v1.0] send file with security

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

Please remove :
<optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>

entry from your rampart configuration parameters and try again.

Thanks,
Ruchith

On 7/20/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Dear All,
>
>        I have been trying to combine the test about sending file and
> securing message.
>        My environment is Axis2 v1.0, nightly build released 4 June 06 on the
> Jetty Servlet.
>
>        From other individual test such as sending text file, and security
> sample had no problem on this, however with the combination one i got the
> following error.
>
>        Client code:
>
> /*
> * Created on 19.07.2006
> *
> * TODO To change the template for this generated file go to
> * Window - Preferences - Java - Code Style - Code Templates
> */
> package security;
>
> /**
> * @author alice3
> *
> * TODO To change the template for this generated type comment go to
> * Window - Preferences - Java - Code Style - Code Templates
> */
>
> import org.apache.axiom.om.OMAbstractFactory;
> import org.apache.axiom.om.OMElement;
> import org.apache.axiom.om.OMFactory;
> import org.apache.axiom.om.OMNamespace;
> import org.apache.axiom.om.OMText;
> import org.apache.axis2.AxisFault;
> import org.apache.axis2.Constants;
> import org.apache.axis2.addressing.EndpointReference;
> import org.apache.axis2.client.Options;
> import org.apache.axis2.client.ServiceClient;
> import org.apache.axis2.context.ConfigurationContext;
> import org.apache.axis2.context.ConfigurationContextFactory;
>
> //import org.apache.axis2.soapmonitor.*;
>
> import javax.activation.DataHandler;
> import javax.activation.FileDataSource;
> import javax.xml.namespace.QName;
> import javax.xml.stream.XMLOutputFactory;
> import javax.xml.stream.XMLStreamException;
>
> import java.io.File;
> import java.io.StringWriter;
>
>
> public class SecureClient {
>
>     private File inputFile = null;
>
>     private QName operationName = new QName("fileSecurity");
>
>     public static void main(String[] args) {
>
>         try {
>
>             // Get the repository location from the args
>             String repo = args[0];
>             String port = args[1];
>
>             OMElement payload =
> getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>             ConfigurationContext configContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
> null);
>             ServiceClient serviceClient = new ServiceClient(configContext,
> null);
>             Options options = new Options();
>             options.setTo(new EndpointReference("http://127.0.0.1:" + port +
> "/axis2/services/FileSecurity"));
>             //options.setTo(new
> EndpointReference("http://localhost:8080/axis2_new/services/SecureService"));
>             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>             options.setProperty(Constants.Configuration.ENABLE_MTOM,
> Constants.VALUE_TRUE);
>             options.setAction("urn:fileSecurity");
>             serviceClient.setOptions(options);
>
>             //Blocking invocation
>             OMElement result = serviceClient.sendReceive(payload);
>
>             StringWriter writer = new StringWriter();
>             result.serialize(XMLOutputFactory.newInstance()
>                     .createXMLStreamWriter(writer));
>             writer.flush();
>
>
>
>            //System.out.println("Response: " + writer.toString());
>
>             System.out.println("SecureService Invocation successful :-)");
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         } catch (XMLStreamException e) {
>             e.printStackTrace();
>         }
>     }
>
>
>     private static OMElement getEchoElement(String fileName) {
>
>
>         DataHandler dh;
>
>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>             OMNamespace omNs =
> fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1");
>
>         OMElement data = fac.createOMElement("fileSecurity", omNs);
>         OMElement input = fac.createOMElement("file", omNs);
>             OMElement pack = fac.createOMElement("pack", omNs);
>
>             FileDataSource f1 = new FileDataSource(fileName);
>         dh = new DataHandler(f1);
>
>         OMElement filename = fac.createOMElement("fileName", omNs);
>        // OMText textName = fac.createOMText(filename, "myFile.txt");
>
>         OMText textData = fac.createOMText(dh, true);
>
>         input.addChild(textData);
>
>         pack.addChild(filename);
>         pack.addChild(input);
>         data.addChild(pack);
>
>         //System.out.println(data);
>
>              return data;
>         }
> }
>
>         server code:
>
> public class fileS {
>
>         public OMElement fileSecurity(OMElement element) throws Exception
>         {
>                 //System.out.println(element);
>
>                 element.build();
>                 element.detach();
>
>             Iterator children = element.getChildElements();
>
>                 OMElement name = (OMElement)children.next();            //get name of the file,
> first element of element
>                 OMElement content = (OMElement)children.next();     //get text that
> contains the file, second element
>
>                 System.out.println("before creating OMText");
>                 OMText fnode = (OMText)content.getFirstOMChild();
>                 System.out.println("after creating OMText");
> //              fnode.setOptimize(true);
>                 //String fname = name.getText();
>
>                 //create data handler to extract the data handler of the OMText
>                 DataHandler dfile;
>                 System.out.println("before getDataHandler from OMText");
>
>                 //String cid = fnode.getContentID();
>                 //System.out.println(cid);
>
>                 dfile = (DataHandler)fnode.getDataHandler();  //getDataHandler() and
> broken pipe
>
>                 System.out.println("after create datahandler for OMText");
>
>                 FileOutputStream outfile = new  FileOutputStream(new
> File("/users/alice3/myFile"));
>                 System.out.println("after create a fileoutputstream");
>                 dfile.writeTo(outfile);
>                 System.out.println("after writeTo()");
>
>                 //System.out.println("Successful Operation!");
>
>                 OMFactory fac = OMAbstractFactory.getOMFactory();
>         OMNamespace ns = fac.createOMNamespace("urn://fakenamespace", "ns");
>         OMElement ele = fac.createOMElement("response", ns);
>         ele.setText("Data Saved");
>         return ele;
>
>         }
>
> }
>
>        services.xml:
>
> <service name="FileSecurity" >
>   <description>
>                 This is my service for sending file over server-client with security
> setting
>         </description>
>   <parameter locked="false" name="ServiceClass" >security.fileS</parameter>
>   <operation name="fileSecurity" >
>     <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>   </operation>
>   <parameter name="InflowSecurity" >
>     <action>
>       <items>Timestamp Signature Encrypt</items>
>       <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>       <signaturePropFile>sec.properties</signaturePropFile>
>     </action>
>   </parameter>
>   <parameter name="OutflowSecurity" >
>     <action>
>       <items>Timestamp Signature Encrypt</items>
>       <user>bob</user>
>       <passwordCallbackClass>security.PWCallback</passwordCallbackClass>
>       <signaturePropFile>sec.properties</signaturePropFile>
>       <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
>       <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
>       <encryptionUser>alice</encryptionUser>
>
> <optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</optimizeParts>
>     </action>
>   </parameter>
> </service>
>
>          and the .aar package is constucted as follow
>
>         security/
>                 security/PWCallback.class
>                 security/fileS.class
>         META-INF/
>                 META-INF/services.xml
>         sec.jks
>         sec.properties
>
>      and the result i get from the TCPMON is that at the server side
>
> HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2
> Content-Type: multipart/related;
> boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031;
> type="application/xop+xml";
> start="<0....@apache.org>";
> start-info="text/xml"; charset=UTF-8
> Transfer-Encoding: chunked
> Server: Jetty(6.0.x)
>
> 2DA
> --MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> content-transfer-encoding:binary
> content-id:<0....@apache.org>
>
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode>
> 35B
>
> --MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> content-transfer-encoding:binary
> content-id:<0....@apache.org>
>
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> security processing failed</faultstring>
> 1383
>
> --MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> content-transfer-encoding:binary
> content-id:<0....@apache.org>
>
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> security processing
> failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> WSDoAllReceiver: security processing failed; nested exception is:
>         org.apache.ws.security.WSSecurityException: Cannot encrypt/decrypt data;
> nested exception is:
>         org.apache.xml.security.encryption.XMLEncryptionException: Error while
> decoding
> Original Exception was
> org.apache.xml.security.exceptions.Base64DecodingException: Error while
> decoding
>         at
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>         at
> org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>         at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>         at org.mortbay.jetty.Server.handle(Server.java:245)
>         at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>         at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>         at
> org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>         at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> Caused by: org.apache.ws.security.WSSecurityException: Cannot
> encrypt/decrypt data; nested exception is:
>         org.apache.xml.security.encryption.XMLEncryptionException: Error while
> decoding
> Original Exception was
> org.apache.xml.security.exceptions.Base64DecodingException: Error while
> decoding
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>         at
> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>         at
> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>         at
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>         ... 24 more
> Caused by: org.apache.xml.security.encryption.XMLEncryptionException: Error
> while decoding
> Original Exception was
> org.apache.xml.security.exceptions.Base64DecodingException: Error while
> decoding
>         at
> org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> Source)
>         at org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> Source)
>         at org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> Source)
>         at org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> Source)
>         at
> org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> Source)
>         at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown Source)
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>         ... 30 more
> </Exception></detail>
> 13B5
>
> --MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031
> content-type:application/xop+xml; charset=UTF-8; type="text/xml";
> content-transfer-encoding:binary
> content-id:<0....@apache.org>
>
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:EE59E38396186D1F1211533845941701</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSDoAllReceiver:
> security processing
> failed</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> WSDoAllReceiver: security processing failed; nested exception is:
>         org.apache.ws.security.WSSecurityException: Cannot encrypt/decrypt data;
> nested exception is:
>         org.apache.xml.security.encryption.XMLEncryptionException: Error while
> decoding
> Original Exception was
> org.apache.xml.security.exceptions.Base64DecodingException: Error while
> decoding
>         at
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183)
>         at
> org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>         at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469)
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
>         at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>         at org.mortbay.jetty.Server.handle(Server.java:245)
>         at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
>         at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
>         at
> org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
>         at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)
> Caused by: org.apache.ws.security.WSSecurityException: Cannot
> encrypt/decrypt data; nested exception is:
>         org.apache.xml.security.encryption.XMLEncryptionException: Error while
> decoding
> Original Exception was
> org.apache.xml.security.exceptions.Base64DecodingException: Error while
> decoding
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404)
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
>         at
> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
>         at
> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
>         at
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
>         ... 24 more
> Caused by: org.apache.xml.security.encryption.XMLEncryptionException: Error
> while decoding
> Original Exception was
> org.apache.xml.security.exceptions.Base64DecodingException: Error while
> decoding
>         at
> org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown
> Source)
>         at org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown
> Source)
>         at org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown
> Source)
>         at org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown
> Source)
>         at
> org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown
> Source)
>         at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown Source)
>         at
> org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402)
>         ... 30 more
> </Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> 3B
>
> --MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031--
> 0
>
>           The client side message seems to be ok, with all the encypted
> document.
>
>           Is there any idea what can cause the fault? Greatly appreciate,
>
>          Wan
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org