Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 64507 invoked from network); 25 Apr 2007 09:05:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2007 09:05:37 -0000 Received: (qmail 98019 invoked by uid 500); 25 Apr 2007 09:05:43 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 98008 invoked by uid 500); 25 Apr 2007 09:05:43 -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 97988 invoked by uid 99); 25 Apr 2007 09:05:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2007 02:05:43 -0700 X-ASF-Spam-Status: No, hits=-99.2 required=10.0 tests=ALL_TRUSTED,INFO_TLD 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; Wed, 25 Apr 2007 02:05:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1DA32714077 for ; Wed, 25 Apr 2007 02:05:16 -0700 (PDT) Message-ID: <6628640.1177491916119.JavaMail.jira@brutus> Date: Wed, 25 Apr 2007 02:05:16 -0700 (PDT) From: "Bozhong Lin (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-454) Document/Lit/Bare doesn't work for Java-Frist mode In-Reply-To: <18512304.1173414144348.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-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bozhong Lin updated CXF-454: ---------------------------- Fix Version/s: (was: 2.0-RC) 2.0 > Document/Lit/Bare doesn't work for Java-Frist mode > -------------------------------------------------- > > Key: CXF-454 > URL: https://issues.apache.org/jira/browse/CXF-454 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.0-RC > Reporter: Johnson Ma > Assigned To: jimma > Fix For: 2.0 > > > 1. Problem: Get exception from server when try to run doc/lib/bare for JAVA-First mode > 2. Test process and files. > generate wsdl from java file, then generate client and server from that wsdl. > Hello.java > package com.iona; > import javax.xml.ws.RequestWrapper; > import javax.xml.ws.ResponseWrapper; > import javax.jws.WebMethod; > import javax.jws.WebService; > import javax.jws.soap.SOAPBinding; > import javax.jws.WebParam; > @SOAPBinding(use=javax.jws.soap.SOAPBinding.Use.LITERAL, style=javax.jws.soap.SOAPBinding.Style.DOCUMENT, parameterStyle=javax.jws.soap.SOAPBinding.ParameterStyle.BARE) > @WebService(name="Hello", targetNamespace="http://iona.com/") > public interface Hello { > @WebMethod(operationName="test", exclude=false) > public float test( > > @WebParam(targetNamespace="http://iona.com/", name="f1") > float f1, > @WebParam(targetNamespace="http://iona.com/", name="f2") > float f2); > } > Generated Hello.wsdl > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Generated HelloImpl.java when call w2j > /** > * Licensed to the Apache Software Foundation (ASF) under one > * or more contributor license agreements. See the NOTICE file > * distributed with this work for additional information > * regarding copyright ownership. The ASF licenses this file > * to you under the Apache License, Version 2.0 (the > * "License"); you may not use this file except in compliance > * with the License. You may obtain a copy of the License at > * > * http://www.apache.org/licenses/LICENSE-2.0 > * > * Unless required by applicable law or agreed to in writing, > * software distributed under the License is distributed on an > * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY > * KIND, either express or implied. See the License for the > * specific language governing permissions and limitations > * under the License. > */ > /** > * Please modify this class to meet your needs > * This class is not complete > */ > package com.iona; > import java.util.logging.Logger; > import javax.jws.WebMethod; > import javax.jws.WebResult; > /** > * This class was generated by the CXF 2.0-incubator-RC-SNAPSHOT > * Fri Mar 09 12:17:19 GMT+08:00 2007 > * Generated source version: 2.0-incubator-RC-SNAPSHOT > * > */ > @javax.jws.WebService(name = "Hello", serviceName = "HelloService", > portName = "HelloPort", > targetNamespace = "http://iona.com/", > wsdlLocation = "file:/C:/Projects/STP/Workspaces/runtime-New_configuration3/JavaFirstRPCWrap/wsdl/com/iona/Hello.wsdl" , > endpointInterface = "com.iona.Hello") > > public class HelloImpl implements Hello { > private static final Logger LOG = > Logger.getLogger(HelloImpl.class.getPackage().getName()); > /* (non-Javadoc) > * @see com.iona.Hello#test(float f1 ,)float f2 )* > */ > public float test( > float f1, > float f2 > ) > { > LOG.info("Executing operation test"); > return 0.0f; > } > } > 3. Exception > Exception from server: > INFO: Creating Service {http://iona.com/}HelloService from WSDL. > Invoking test... > Exception in thread "main" org.apache.cxf.binding.soap.SoapFault: Message part {http://iona.com/}f1 was not recognized. > at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70) > at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:36) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:168) > at org.apache.cxf.interceptor.AbstractFaultChainIntiatorObserver.onMessage(AbstractFaultChainIntiatorObserver.java:63) > at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:110) > at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:48) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:168) > at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:281) > at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:654) > at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doClose(HTTPConduit.java:614) > at org.apache.cxf.io.AbstractCachedOutputStream.close(AbstractCachedOutputStream.java:114) > at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:65) > at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:58) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:168) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:152) > at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) > at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:116) > at $Proxy41.test(Unknown Source) > at com.iona.HelloClient.main(HelloClient.java:69) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.