Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2CD6018CC2 for ; Wed, 6 Jan 2016 18:21:40 +0000 (UTC) Received: (qmail 14365 invoked by uid 500); 6 Jan 2016 18:21:40 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 14331 invoked by uid 500); 6 Jan 2016 18:21:40 -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 14118 invoked by uid 99); 6 Jan 2016 18:21:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 18:21:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D0FD62C1F5D for ; Wed, 6 Jan 2016 18:21:39 +0000 (UTC) Date: Wed, 6 Jan 2016 18:21:39 +0000 (UTC) From: "Amichai Rothman (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-6737) ClientProxyFactoryBean doesn't work with void methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Amichai Rothman created CXF-6737: ------------------------------------ Summary: ClientProxyFactoryBean doesn't work with void methods Key: CXF-6737 URL: https://issues.apache.org/jira/browse/CXF-6737 Project: CXF Issue Type: Bug Affects Versions: 3.1.1 Environment: DOSGi 1.7.0 Reporter: Amichai Rothman I'm trying to use a simple ClientProxyFactoryBean to connect to a dosgi-exported service. Without specifying the wsdl url, it doesn't work since apparently the method argument names don't match (arg0 vs actual parameter name, as explained in CXF-897), so I added the wsdl url. Now service methods that have a return value seem to work ok, but those with void return type do not. Further investigation suggests that the issue might be in ReflectionServiceFactoryBean: initializeWSDLOperation prints out a warning (no method for op) instead of binding the operation, because initializeClassInfo returns false, because initializeParameter called with the return type (near the bottom of initializeClassInfo) returns false, since o.getOutput().getMessagePart/getMessagePartByIndex return null (since there are no parts - the method can throw an exception, for which the output message exists, but there is no actual return type). A quick test in the debugger shows that if I manipulate the flow manually (e.g. execute the if caluse in initializeWSDLOperation after initializeClassInfo returns) then the method invocation works ok. I am not familiar with the inner workings of WSDL or these classes, so I'm not sure what is the correct place to apply a fix. -- This message was sent by Atlassian JIRA (v6.3.4#6332)