Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 5856 invoked from network); 25 May 2007 22:58:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 May 2007 22:58:38 -0000 Received: (qmail 14713 invoked by uid 500); 25 May 2007 22:58:42 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 14698 invoked by uid 500); 25 May 2007 22:58:42 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 14689 invoked by uid 99); 25 May 2007 22:58:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 15:58:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 15:58:37 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB9ED714058 for ; Fri, 25 May 2007 15:58:16 -0700 (PDT) Message-ID: <1255438.1180133896766.JavaMail.jira@brutus> Date: Fri, 25 May 2007 15:58:16 -0700 (PDT) From: "Steven E. Harris (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Commented: (CXF-628) Service.addPort(QName, String, String) does not accept binding ID javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING In-Reply-To: <26335381.1178142135630.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499251 ] Steven E. Harris commented on CXF-628: -------------------------------------- Thanks for getting to this so quickly. It will probably take me several days before I can test it again, but just looking at the changes, it looks like you solved it. > Service.addPort(QName, String, String) does not accept binding ID javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING > ------------------------------------------------------------------------------------------------------------------ > > Key: CXF-628 > URL: https://issues.apache.org/jira/browse/CXF-628 > Project: CXF > Issue Type: Bug > Components: Soap Binding > Affects Versions: 2.0-RC > Environment: NA > Reporter: Steven E. Harris > Assigned To: Freeman Fang > Priority: Minor > Fix For: 2.0 > > > I'm trying to using the javax.xml.ws.Service.addPort() method, as described here: > http://java.sun.com/javase/6/docs/api/javax/xml/ws/Service.html#addPort(javax.xml.namespace.QName,%20java.lang.String,%20java.lang.String) > Per the documentation, one should specify the constant > javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING > for the bindingId parameter to request a SOAP1.2-over-HTTP binding. When I try to use this constant in CXF, I see the following exception: > [...] > Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for http://www.w3.org/2003/05/soap/bindings/HTTP/ > at org.apache.cxf.frontend.AbstractEndpointFactory.createBindingInfo(AbstractEndpointFactory.java:255) > at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpointInfo(AbstractEndpointFactory.java:182) > at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:104) > at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:44) > at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:82) > at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:314) > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:237) > ... 9 more > Caused by: org.apache.cxf.BusException: No binding factory for namespace http://www.w3.org/2003/05/soap/bindings/HTTP/ registered. > at org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:78) > at org.apache.cxf.frontend.AbstractEndpointFactory.createBindingInfo(AbstractEndpointFactory.java:250) > ... 15 more > I can see that the file "META-INF/cxf/cxf-extension-soap.xml" is getting loaded by the Bus, which I thought would enable SOAP 1.2 for use. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.