Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 81181 invoked from network); 21 Dec 2010 12:30:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Dec 2010 12:30:23 -0000 Received: (qmail 2566 invoked by uid 500); 21 Dec 2010 12:30:23 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 2212 invoked by uid 500); 21 Dec 2010 12:30:22 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 2204 invoked by uid 99); 21 Dec 2010 12:30:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 12:30:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 12:30:21 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBLCU068017571 for ; Tue, 21 Dec 2010 12:30:01 GMT Message-ID: <3380674.237511292934600763.JavaMail.jira@thor> Date: Tue, 21 Dec 2010 07:30:00 -0500 (EST) From: "S.Uthaiyashankar (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Commented: (RAMPART-311) Error AxisFault: A required message part [body] is not signed. In-Reply-To: <14095732.68591288047140882.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/RAMPART-311?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D129= 73616#action_12973616 ]=20 S.Uthaiyashankar commented on RAMPART-311: ------------------------------------------ This is not a bug/task. This is a user question. Hence resolving the issue.= =20 Please send the question to java-user@axis.apache.org with server's WSDL.= =20 > Error AxisFault: A required message part [body] is not signed. > -------------------------------------------------------------- > > Key: RAMPART-311 > URL: https://issues.apache.org/jira/browse/RAMPART-311 > Project: Rampart > Issue Type: Bug > Environment: Tomcat 6, Axis2 1.5.1, Rampart 1.5.1 > Reporter: Edder Pe=C3=B1a > Assignee: S.Uthaiyashankar > > Hello Everyone. > I'm implementing a client for a secure web service with uses private keys= and public certificates for the signing and encryption of the message. I'm= using Axis2 for the generation of the client (through eclipse) and rampart= for the security. I follow a tutorial in http://wso2.org/library/3415 but = it keeps me sending the same error message than if I wouldn't did anything. > The error message is the next: > org.apache.axis2.AxisFault: CWWSS5720E: A required message part [body] is= not signed. > =09at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils= .java:435) > =09at org.apache.axis2.description.OutInAxisOperationClient.handleRespons= e(OutInAxisOperation.java:371) > =09at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxi= sOperation.java:417) > =09at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(O= utInAxisOperation.java:229) > =09at org.apache.axis2.client.OperationClient.execute(OperationClient.jav= a:165) > =09at com.avvillas.soi.manejoidentidad.wsba_manejoidentidad_autenticar.bi= nding.WSBA_ManejoIdentidad_autenticarStub.autenticar(WSBA_ManejoIdentidad_a= utenticarStub.java:181) > =09at com.avvillas.soi.manejoidentidad.wsba_manejoidentidad_autenticar.bi= nding.ClienteServicioAVVillas.main(ClienteServicioAVVillas.java:65) > And the invocation of the client is the following: > public static void main(String[] args) { > =09=09try { > =09=09=09System.out.println("Entra al Cliente del servicio de autenticaci= =C3=B3n"); > =09=09=09ConfigurationContext context =3D ConfigurationContextFactory.cre= ateConfigurationContextFromFileSystem("I:\\wsPruebas\\ServicioAVVillas3\\We= bContent\\WEB-INF\\", null); > =09=09=09WSBA_ManejoIdentidad_autenticarStub stub =3D new WSBA_ManejoIden= tidad_autenticarStub(context, "http://XXX.XXX.X.XXX/PFBA_ManejoIdentidad01/= sca/WSBA_ManejoIdentidad_autenticar"); > =09=09=09ServiceClient client =3D stub._getServiceClient(); > =09=09=09client.engageModule("rampart"); > =09=09=09 > =09=09=09RampartConfig rampartConfig =3D new RampartConfig(); > =09=09=09rampartConfig.setUser("clienteautenticationavvillas"); > =09=09=09rampartConfig.setPwCbClass("com.avvillas.soi.manejoidentidad.wsb= a_manejoidentidad_autenticar.binding.PWCallBackHandler"); > =09=09=09CryptoConfig sigCrypto =3D new CryptoConfig(); > =09=09=09sigCrypto.setProvider("org.apache.ws.security.components.crypto.= Merlin"); > =09 > =09=09=09Properties props =3D new Properties(); > =09=09=09props.setProperty("org.apache.ws.security.crypto.merlin.keystore= .type", "JKS"); > =09=09=09props.setProperty("org.apache.ws.security.crypto.merlin.file","C= :\\Documents and Setting\\epena\\ClienteAutenticacionAVVillas"); > =09=09=09props.setProperty("org.apache.ws.security.crypto.merlin.keystore= .password", "ClaveIT2010"); > =09 > =09=09=09sigCrypto.setProp(props); > =09=09=09rampartConfig.setSigCryptoConfig(sigCrypto); > =09 > =09=09=09Policy policy =3D new Policy(); > =09=09=09policy.addAssertion(rampartConfig); > =09=09=09 > =09=09=09client.getAxisService().getPolicyInclude().addPolicyElement(Poli= cyInclude.AXIS_SERVICE_POLICY, policy); > =09=09=09 > =09=09=09Autenticar autenticar0 =3D new Autenticar(); > =09=09=09Oe_Autenticacion param =3D new Oe_Autenticacion(); > =09=09=09param.setStrUsuario("84452308"); > =09=09=09param.setStrContrasena("password"); > =09=09=09autenticar0.setOe_entrada(param); > =09=09=09AutenticarResponse response =3D new AutenticarResponse(); > =09=09=09response =3D stub.autenticar(autenticar0); > =09=09=09System.out.println("Resultado del servicio: "+response.getOs_sal= ida().toString()); > =09=09} catch (AxisFault e) { > =09=09=09e.printStackTrace(); > =09=09} catch (RemoteException e) { > =09=09=09// TODO Auto-generated catch block > =09=09=09e.printStackTrace(); > =09=09} > =09} > I'll appreciate your help, 'cause I have a lot of time raounding this sub= ject and I can't find the answer. > Thanks a lot. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org