Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 52490 invoked from network); 7 Feb 2011 22:15:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Feb 2011 22:15:21 -0000 Received: (qmail 95148 invoked by uid 500); 7 Feb 2011 22:15:21 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 95126 invoked by uid 500); 7 Feb 2011 22:15:21 -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 95118 invoked by uid 99); 7 Feb 2011 22:15:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Feb 2011 22:15:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Feb 2011 22:15:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D8040198BE9 for ; Mon, 7 Feb 2011 22:14:57 +0000 (UTC) Date: Mon, 7 Feb 2011 22:14:57 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Message-ID: <1640710139.955.1297116897881.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (CXF-2644) Have policy engine support for {http://www.w3.org/2007/05/addressing/metadata}Addressing 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:comment-tabpanel&focusedCommentId=12991653#comment-12991653 ] Daniel Kulp commented on CXF-2644: ---------------------------------- Glen, can you put together a full test? I changed the occurances of: in a bunch of our tests to the form in the sample wsdl and all the tests still passed. Thus, it seems to be working ok. > 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 > Fix For: NeedMoreInfo > > Attachments: SampleWSDL.wsdl > > > 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. - For more information on JIRA, see: http://www.atlassian.com/software/jira