You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "maomaode (JIRA)" <ji...@apache.org> on 2007/09/12 15:07:32 UTC
[jira] Assigned: (CXF-994) CXF Client Code generated by wsdl2java
compile error
[ https://issues.apache.org/jira/browse/CXF-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
maomaode reassigned CXF-994:
----------------------------
Assignee: maomaode
> CXF Client Code generated by wsdl2java compile error
> ----------------------------------------------------
>
> Key: CXF-994
> URL: https://issues.apache.org/jira/browse/CXF-994
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.0.1
> Environment: Windows XP, Eclipse 3.3.0
> Reporter: Vincent Sun
> Assignee: maomaode
>
> I followed the user guide to develop Asynchronous Invocations.
> But 3 lines of client code got compiled error as following.
> System.out.println("Invoking sayHiAsync...");
> java.lang.String _sayHiAsync_arg0 = "";
> Future<?> _sayHiAsync__return = port.sayHiAsync(_sayHiAsync_arg0, _sayHiAsync_asyncHandler);
> System.out.println("Invoking sayHiAsync...");
> java.lang.String _sayHiAsync_arg0 = "";
> Response<demo.hw.server.types.SayHiResponse> _sayHiAsync__return = port.sayHiAsync(_sayHiAsync_arg0);
> helloWorld.wsdl:
> <?xml version="1.0" encoding="utf-8"?>
> <wsdl:definitions name="HelloWorld"
> targetNamespace="http://server.hw.demo/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:ns1="http://server.hw.demo/"
> xmlns:ns2="http://schemas.xmlsoap.org/soap/http"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:x1="http://server.hw.demo/types">
> <wsdl:types>
> <xsd:schema xmlns="http://server.hw.demo/types"
> attributeFormDefault="unqualified" elementFormDefault="unqualified"
> targetNamespace="http://server.hw.demo/types"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="sayHi" type="x1:sayHi" />
> <xsd:complexType name="sayHi">
> <xsd:sequence>
> <xsd:element minOccurs="0" name="arg0"
> type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> <xsd:element name="sayHiResponse" type="x1:sayHiResponse" />
> <xsd:complexType name="sayHiResponse">
> <xsd:sequence>
> <xsd:element minOccurs="0" name="return"
> type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="sayHi">
> <wsdl:part element="x1:sayHi" name="parameters"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="sayHiResponse">
> <wsdl:part element="x1:sayHiResponse" name="parameters">
> </wsdl:part>
> </wsdl:message>
> <wsdl:portType name="HelloWorld">
> <wsdl:operation name="sayHi">
> <wsdl:input message="ns1:sayHi" name="sayHi"></wsdl:input>
> <wsdl:output message="ns1:sayHiResponse"
> name="sayHiResponse">
> </wsdl:output>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="HelloWorldSoapBinding" type="ns1:HelloWorld">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="sayHi">
> <soap:operation soapAction="" style="document" />
> <wsdl:input name="sayHi">
> <soap:body use="literal" />
> </wsdl:input>
> <wsdl:output name="sayHiResponse">
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="HelloWorld">
> <wsdl:port binding="ns1:HelloWorldSoapBinding"
> name="HelloWorldImplPort">
> <soap:address location="http://localhost:9000/helloWorld" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> async.xml:
> <bindings xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> wsdlLocation="helloWorld.wsdl"
> xmlns="http://java.sun.com/xml/ns/jaxws">
> <bindings node="wsdl:definitions">
> <enableAsyncMapping>true</enableAsyncMapping>
> </bindings>
> </bindings>
> Command:wsdl2java -server -client -ant -impl -b C:/Europa/workspaces/CXF/src/async.xml C:/Europa/workspaces/CXF/src/helloWorld.wsdl
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.