cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson Ma (JIRA)" <>
Subject [jira] Created: (CXF-454) Document/Lit/Bare doesn't work for Java-Frist mode
Date Fri, 09 Mar 2007 04:22:24 GMT
Document/Lit/Bare doesn't work for Java-Frist mode

                 Key: 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.
package com.iona;

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,
@WebService(name="Hello", targetNamespace="")
public interface Hello {
   @WebMethod(operationName="test", exclude=false)
public float test(
		@WebParam(targetNamespace="", name="f1")
		float f1, 
		@WebParam(targetNamespace="", name="f2")
		float f2);

Generated Hello.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="" xmlns:tns="" xmlns:ns1=""
xmlns:xsd="" xmlns:soap=""
    <xsd:schema targetNamespace="" version="1.0" xmlns:xs="">

  <xs:element name="f1" type="xs:float"/>

  <xs:element name="f2" type="xs:float"/>

  <xs:element name="testResponse" type="xs:float"/>
  <wsdl:message name="testResponse">
    <wsdl:part name="return" element="tns:testResponse">
  <wsdl:message name="test">
    <wsdl:part name="f1" element="tns:f1">
    <wsdl:part name="f2" element="tns:f2">
  <wsdl:portType name="Hello">
    <wsdl:operation name="test">
      <wsdl:input name="test" message="tns:test">
      <wsdl:output name="testResponse" message="tns:testResponse">
  <wsdl:binding name="HelloBinding" type="tns:Hello">
    <soap:binding style="document" transport=""/>
    <wsdl:operation name="test">
      <soap:operation style="document"/>
      <wsdl:input name="test">
        <soap:body use="literal"/>
      <wsdl:output name="testResponse">
        <soap:body use="literal"/>
  <wsdl:service name="HelloService">
    <wsdl:port name="HelloPort" binding="tns:HelloBinding">
      <soap:address location="http://localhost:9000/HelloService"/>

Generated 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
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * 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 = "", 
                      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 = 

    /* (non-Javadoc)
     * @see com.iona.Hello#test(float  f1 ,)float  f2 )*
    public float test(
        float f1,
        float f2
    {"Executing operation test");
        return 0.0f;


3. Exception
Exception from server:
INFO: Creating Service {}HelloService from WSDL.
Invoking test...
Exception in thread "main" org.apache.cxf.binding.soap.SoapFault: Message part {}f1
was not recognized.
	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(
	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
	at org.apache.cxf.interceptor.AbstractFaultChainIntiatorObserver.onMessage(
	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(
	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
	at org.apache.cxf.endpoint.ClientImpl.onMessage(
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doClose(
	at org.apache.cxf.transport.AbstractConduit.close(
	at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.frontend.ClientProxy.invokeSync(
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
	at $Proxy41.test(Unknown Source)
	at com.iona.HelloClient.main(

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message