Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 74879 invoked from network); 23 Jan 2009 18:32:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2009 18:32:44 -0000 Received: (qmail 27270 invoked by uid 500); 23 Jan 2009 18:32:41 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 27240 invoked by uid 500); 23 Jan 2009 18:32:41 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 27229 invoked by uid 99); 23 Jan 2009 18:32:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2009 10:32:41 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.79.199.57] (HELO server.dankulp.com) (64.79.199.57) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2009 18:32:32 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id C1E9D2430069; Fri, 23 Jan 2009 13:32:10 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5-gr0 (2008-06-10) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter.WhoMsLCBYx Received: from wfh-chamstra2.americas.progress.com (c-24-91-141-225.hsd1.ma.comcast.net [24.91.141.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTP id 454462430067; Fri, 23 Jan 2009 13:32:05 -0500 (EST) From: Daniel Kulp To: users@cxf.apache.org Subject: Re: Found element ... but could not find matching RPC/Literal part Date: Fri, 23 Jan 2009 13:32:03 -0500 User-Agent: KMail/1.9.9 Cc: Milan Satala References: <21624834.post@talk.nabble.com> In-Reply-To: <21624834.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901231332.03818.dkulp@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-0.6 required=3.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.5-gr0 There really are two options: 1) Download the wsdl and edit it to match what the service really produces. In this case, all the part names of "parameters" need to be mapped into the appropriate name. ("createLearningActivityReturn") Then use this wsdl instead of the "live" wsdl. 2) Write an interceptor that would run just before the RPCInInterceptor that takes the XmlStreamReader and wrappers it with a new XmlStreamReader that would map the QNames to the expected names. Dan On Friday 23 January 2009 8:56:50 am Milan Satala wrote: > org.apache.cxf.interceptor.Fault: Found element > createLearningActivityReturn but could not find matching RPC/Literal part > > I get the exception when invoking this webservice: > http://prolixdev7.prolix-dev.de/xosoap/services/prolix/pms/PMSServiceImpl?s >=wsdl The webservice is called properly but it seems that CXF fails to > process the response message. > After searching through the mailing list I discovered that this exception > is probably caused by the webservice framework on the server side > (AOLServer 4.5) not following WSI-Basic Profile standard. > > Since the webservice framework can not be changed I was wondering if it was > possible to make CXF less strict about the response. I found the following > message by a developer "dkulp" on this mailing list: > > "At one point (don't remember when) I did update the RPCInInterceptor to > only compare local names and ignore the namespace to workaround issues > with non WS-I BP compliant services. The messages CXF generates are > always WS-I BP compliant, but it should be able to process the > non-compliant messages as well. I THINK that made it into 2.0.2, but > it might not have made it so would be in 2.0.3. Can you check the > 2.0.3 SNAPSHOT version and see if that works?" > > However I'm using CXF 2.1 and still get the exception. > I know this isn't CXFs fault but is there a way to make it compatibile with > the other framework? > > Here's the response I get when calling the webservice using xmlspy: > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> > > > >
> 2008-01-01T08:08:08.0Z > 1 > rehjb6n06ghhkmpp5hgsonfo4d > String > Performance Monitor System > 1 >
> > The learning activity is already added to the system LID: > String > 0 > >
>
>
>
-- Daniel Kulp dkulp@apache.org http://dankulp.com/blog