Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 51593 invoked from network); 10 Jul 2010 14:40:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Jul 2010 14:40:45 -0000 Received: (qmail 68765 invoked by uid 500); 10 Jul 2010 14:40:45 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 68744 invoked by uid 500); 10 Jul 2010 14:40:44 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 68735 invoked by uid 99); 10 Jul 2010 14:40:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jul 2010 14:40:44 +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; Sat, 10 Jul 2010 14:40:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6AEWnvB015378 for ; Sat, 10 Jul 2010 14:32:50 GMT Message-ID: <26042242.304581278772369909.JavaMail.jira@thor> Date: Sat, 10 Jul 2010 10:32:49 -0400 (EDT) From: "Glen Mazza (JIRA)" To: issues@cxf.apache.org Subject: [jira] Closed: (CXF-2644) Have policy engine support for {http://www.w3.org/2007/05/addressing/metadata}Addressing In-Reply-To: <407565320.24691265109859359.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Glen Mazza closed CXF-2644. --------------------------- Assignee: Glen Mazza Estimated Complexity: (was: Unknown) > Have policy engine support for {http://www.w3.org/2007/05/addressing/metadata}Addressing > ---------------------------------------------------------------------------------------- > > Key: CXF-2644 > URL: https://issues.apache.org/jira/browse/CXF-2644 > Project: CXF > Issue Type: New Feature > Components: WS-* Components > Reporter: Glen Mazza > Assignee: Glen Mazza > Priority: Minor > > The following element: (where wsam="http://www.w3.org/2007/05/addressing/metadata") > generated by default by NetBeans[1] could not be supported by the CXF's WS:Policy engine, regardless of "true" or "false" value. I had to remove it from the WSDL in order for WS-SecurityPolicy w/X.509[2] to work. > Attempts to run my DoubleIt client with this element returned the following error: > [INFO] Feb 2, 2010 6:19:56 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL > [INFO] INFO: Creating Service {http://www.example.org/contract/DoubleIt}DoubleItService from WSDL: file:/work/workspace/DoubleIt/service-war/src/main/webapp/WEB-INF/wsdl/DoubleIt.wsdl > [INFO] Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Expected exactly one child element of type Policy. > [INFO] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146) > [INFO] at $Proxy38.doubleIt(Unknown Source) > [INFO] at com.mycompany.webservice.client.WSClient.doubleIt(WSClient.java:28) > [INFO] at com.mycompany.webservice.client.WSClient.main(WSClient.java:21) > [INFO] Caused by: org.apache.cxf.ws.policy.PolicyException: Expected exactly one child element of type Policy. > [INFO] at org.apache.cxf.ws.policy.builder.primitive.NestedPrimitiveAssertion.(NestedPrimitiveAssertion.java:93) > [INFO] at org.apache.cxf.ws.policy.builder.primitive.NestedPrimitiveAssertion.(NestedPrimitiveAssertion.java:70) > [INFO] at org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder.build(AddressingAssertionBuilder.java:77) > [1] http://www.jroller.com/gmazza/entry/metro_x509_profile#MetroPKI2 (WSDL underneath illustration) > [2] http://www.jroller.com/gmazza/entry/cxf_x509_profile_secpol -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.