Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 37359 invoked from network); 9 Mar 2007 04:22:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 04:22:46 -0000 Received: (qmail 15130 invoked by uid 500); 9 Mar 2007 04:22:55 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 15113 invoked by uid 500); 9 Mar 2007 04:22:55 -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 15093 invoked by uid 99); 9 Mar 2007 04:22:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 20:22:55 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=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; Thu, 08 Mar 2007 20:22:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 564B4714045 for ; Thu, 8 Mar 2007 20:22:24 -0800 (PST) Message-ID: <18512304.1173414144348.JavaMail.root@brutus> Date: Thu, 8 Mar 2007 20:22:24 -0800 (PST) From: "Johnson Ma (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Created: (CXF-454) Document/Lit/Bare doesn't work for Java-Frist mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 Reporter: Johnson Ma 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.