Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 1957 invoked from network); 17 Sep 2007 07:56:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2007 07:56:06 -0000 Received: (qmail 49106 invoked by uid 500); 17 Sep 2007 07:55:58 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 49084 invoked by uid 500); 17 Sep 2007 07:55:58 -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 49075 invoked by uid 99); 17 Sep 2007 07:55:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 00:55:58 -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, 17 Sep 2007 07:57:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6A8A87141FE for ; Mon, 17 Sep 2007 00:55:32 -0700 (PDT) Message-ID: <9440265.1190015732432.JavaMail.jira@brutus> Date: Mon, 17 Sep 2007 00:55:32 -0700 (PDT) From: "Jeff Yu (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-970) CXF doesnt handle the Doc/Literal (Bare) with Null parameter. In-Reply-To: <26447209.1188978752597.JavaMail.root@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-970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Yu updated CXF-970: ------------------------ Attachment: cxf-970.patch updated a little bit, we only render the null element when its minOcurrs > 0. > CXF doesnt handle the Doc/Literal (Bare) with Null parameter. > ------------------------------------------------------------- > > Key: CXF-970 > URL: https://issues.apache.org/jira/browse/CXF-970 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.0.1 > Environment: windows > Reporter: Jeff Yu > Fix For: 2.1 > > Attachments: cxf-970.patch, doc_lit_bare.wsdl > > > When the parameter is null, at the client, it will send the soap message like below: > > but I think the correct soap message would be: > > The test case would like below code snippet: (added it in DOCBareClientServerTest.java) > @Test > public void testNillableParameter() throws Exception { > URL wsdl = getClass().getResource("/wsdl/doc_lit_bare.wsdl"); > assertNotNull("WSDL is null", wsdl); > SOAPService service = new SOAPService(wsdl, serviceName); > assertNotNull("Service is null", service); > PutLastTradedPricePortType port = service.getPort(portName, > PutLastTradedPricePortType.class); > String result = port.nillableParameter(null); > assertEquals("Hello", result); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.