Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 30566 invoked from network); 22 Oct 2007 20:07:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2007 20:07:19 -0000 Received: (qmail 77464 invoked by uid 500); 22 Oct 2007 20:07:07 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 77450 invoked by uid 500); 22 Oct 2007 20:07:07 -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 77441 invoked by uid 99); 22 Oct 2007 20:07:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2007 13:07:07 -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; Mon, 22 Oct 2007 20:07:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BA637714209 for ; Mon, 22 Oct 2007 13:06:50 -0700 (PDT) Message-ID: <3419238.1193083610761.JavaMail.jira@brutus> Date: Mon, 22 Oct 2007 13:06:50 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Commented: (CXF-1092) Aegis+Jaxws ignores namespaces on @WebParams In-Reply-To: <25487845.1191608150828.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-1092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536815 ] Daniel Kulp commented on CXF-1092: ---------------------------------- Well, it's valid for JAX-WS + JAXB as well. I just checked by creating a testcase. That said, the issue description really is wrong. In the "wrapped" doc/lit case, the targetNamespace should be ignored if the part is not a header as the part QNames MUST be in the namespace of the wrapper element. > Aegis+Jaxws ignores namespaces on @WebParams > -------------------------------------------- > > Key: CXF-1092 > URL: https://issues.apache.org/jira/browse/CXF-1092 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.0.2 > Reporter: Benson Margulies > Assignee: Daniel Kulp > > I think I've run into some hard case related to SEIs versus implementations. > Here's the interface: > @WebService(name="NameIndex", targetNamespace="urn:com.basistech.rnm.index.ws") > public interface NameIndexService { > @WebMethod > public abstract void addNameBatch(@WebParam(name="indexid") String indexid, @WebParam(targetNamespace="urn:com.basistech.rnm", name="names")Name[] names) throws NameIndexException; ... > } > Here's the implementation: > @WebService (serviceName = "NameIndex", > endpointInterface = "com.basistech.rnm.index.ws.NameIndexService", > targetNamespace="urn:com.basistech.rnm.index.ws") > public class NameIndexServiceImpl extends NameIndexServiceCommon implements NameIndexService { > public void addNameBatch(String indexid, Name names[]) throws NameIndexException { ... } > I am trying the JaxWs runtime proxy generator, and I get the following: > javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not find a message part matching name {urn:com.basistech.rnm}names. Possible values are [{urn:com.basistech.rnm.index.ws}indexid, {urn:com.basistech.rnm.index.ws}names]. > Looks like the client generator is paying attention to the annotation, but the server is not. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.