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 AA6DF10A57 for ; Fri, 7 Feb 2014 15:46:36 +0000 (UTC) Received: (qmail 42514 invoked by uid 500); 7 Feb 2014 15:46:32 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 42057 invoked by uid 500); 7 Feb 2014 15:46:27 -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 41460 invoked by uid 99); 7 Feb 2014 15:46:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 15:46:25 +0000 Date: Fri, 7 Feb 2014 15:46:24 +0000 (UTC) From: "Andreas Mattes (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-5550) CXF JAX-WS frontend DispatchImpl ignores setting of MessageContext.WSDL_OPERATION MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Andreas Mattes created CXF-5550: ----------------------------------- Summary: CXF JAX-WS frontend DispatchImpl ignores setting of MessageContext.WSDL_OPERATION Key: CXF-5550 URL: https://issues.apache.org/jira/browse/CXF-5550 Project: CXF Issue Type: Bug Components: JAX-WS Runtime Affects Versions: 2.7.8 Environment: Untyped JAX-WS clients using Dispatch. Reporter: Andreas Mattes We have a service with a non-standard WSDL definition, where pairs of operations have the same request payload, one operation is request-response for synchronous processing, one operation is one-way for collection of request and later asynchronous processing. The request payloads are provided as String or InputStream, and therefore the JAX-WS Dispatch shall be used for service invocation. Setting the MessageContext.WSDL_OPERATION property, the service invocation works properly unless WS-Addressing is activated. With WS-Addressing, however, the WSDL_OPERATION property is ignored for internal message exchange setup, and the request is always treated as the one-way request, so that no response is returned. Further analysis of the CXF DispatchImpl shows, that in this case the WSDL_OPERATION property is overridden by the result of the lookup of a temporary request root element name -> operation name table. In this case the 2nd operation definition with the same payload root element wins, which in our case is the one-way version. This problem could be overcome by a simple processing change in DispatchImpl: When the WSDL_OPERATION is explicitly set, and WS-Addressing is activated, the check of the payload should be performed the other way round, i.e. the temporary map is created as operation name -> request payload root element name and verifies that the root element name corresponds to the operation name, even if the root element is not unique. If this check fails, behaviour falls back to the current one. -- This message was sent by Atlassian JIRA (v6.1.5#6160)