You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Michael Sutter (JIRA)" <ji...@apache.org> on 2008/02/12 16:17:08 UTC
[jira] Created: (AXIS2-3506) Codegen with unwrapping argument fails
Codegen with unwrapping argument fails
--------------------------------------
Key: AXIS2-3506
URL: https://issues.apache.org/jira/browse/AXIS2-3506
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: codegen
Affects Versions: 1.3, nightly
Environment: Linux, Java 1.5
Reporter: Michael Sutter
Hello,
I have a service with a boolean input param and an int return value.
I always generate the client code with
$AXIS2_HOME/bin/wsdl2java.sh -uri *.wsdl -o -u
This produces a info message that one file cannot be overwritten. This file is the interface for the service implemented in the service.
The problem is, that the class is not a interface and so the compiling of the service fails.
When I generate the service without -u param everything works fine.
I have attached the wsdl below.
Regards Michael
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://auger.fzk.org" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://auger.fzk.org">
<wsdl:types>
<xs:schema xmlns:ns="http://auger.fzk.org" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://auger.fzk.org">
<xs:element name="connectCdas">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="connect" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="connectCdasResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="connectCdasRequest">
<wsdl:part name="parameters" element="ns0:connectCdas"/>
</wsdl:message>
<wsdl:message name="connectCdasResponse">
<wsdl:part name="parameters" element="ns0:connectCdasResponse"/>
</wsdl:message>
<wsdl:portType name="ConnectCdasPortType">
<wsdl:operation name="connectCdas">
<wsdl:input message="ns0:connectCdasRequest" wsaw:Action="urn:connectCdas"/>
<wsdl:output message="ns0:connectCdasResponse" wsaw:Action="urn:connectCdasResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ConnectCdasSOAP11Binding" type="ns0:ConnectCdasPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="connectCdas">
<soap:operation soapAction="urn:connectCdas" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="ConnectCdasSOAP12Binding" type="ns0:ConnectCdasPortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="connectCdas">
<soap12:operation soapAction="urn:connectCdas" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="ConnectCdasHttpBinding" type="ns0:ConnectCdasPortType">
<http:binding verb="POST"/>
<wsdl:operation name="connectCdas">
<http:operation location="ConnectCdas/connectCdas"/>
<wsdl:input>
<mime:content type="text/xml" part="connectCdas"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="connectCdas"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ConnectCdas">
<wsdl:port name="ConnectCdasSOAP11port_http" binding="ns0:ConnectCdasSOAP11Binding">
<soap:address location="http://localhost:8080/axis2/services/ConnectCdas"/>
</wsdl:port>
<wsdl:port name="ConnectCdasSOAP12port_http" binding="ns0:ConnectCdasSOAP12Binding">
<soap12:address location="http://localhost:8080/axis2/services/ConnectCdas"/>
</wsdl:port>
<wsdl:port name="ConnectCdasHttpport" binding="ns0:ConnectCdasHttpBinding">
<http:address location="http://localhost:8080/axis2/services/ConnectCdas"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Closed: (AXIS2-3506) Codegen with unwrapping argument fails
Posted by "Michael Sutter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Sutter closed AXIS2-3506.
---------------------------------
Resolution: Fixed
Wrong method name declared - so generation of service fails.
> Codegen with unwrapping argument fails
> --------------------------------------
>
> Key: AXIS2-3506
> URL: https://issues.apache.org/jira/browse/AXIS2-3506
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.3, nightly
> Environment: Linux, Java 1.5
> Reporter: Michael Sutter
>
> Hello,
> I have a service with a boolean input param and an int return value.
> I always generate the client code with
> $AXIS2_HOME/bin/wsdl2java.sh -uri *.wsdl -o -u
> This produces a info message that one file cannot be overwritten. This file is the interface for the service implemented in the service.
> The problem is, that the class is not a interface and so the compiling of the service fails.
> When I generate the service without -u param everything works fine.
> I have attached the wsdl below.
> Regards Michael
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://auger.fzk.org" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://auger.fzk.org">
> <wsdl:types>
> <xs:schema xmlns:ns="http://auger.fzk.org" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://auger.fzk.org">
> <xs:element name="connectCdas">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="connect" type="xs:boolean"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="connectCdasResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="return" type="xs:int"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
> </wsdl:types>
> <wsdl:message name="connectCdasRequest">
> <wsdl:part name="parameters" element="ns0:connectCdas"/>
> </wsdl:message>
> <wsdl:message name="connectCdasResponse">
> <wsdl:part name="parameters" element="ns0:connectCdasResponse"/>
> </wsdl:message>
> <wsdl:portType name="ConnectCdasPortType">
> <wsdl:operation name="connectCdas">
> <wsdl:input message="ns0:connectCdasRequest" wsaw:Action="urn:connectCdas"/>
> <wsdl:output message="ns0:connectCdasResponse" wsaw:Action="urn:connectCdasResponse"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="ConnectCdasSOAP11Binding" type="ns0:ConnectCdasPortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
> <wsdl:operation name="connectCdas">
> <soap:operation soapAction="urn:connectCdas" style="document"/>
> <wsdl:input>
> <soap:body use="literal"/>
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:binding name="ConnectCdasSOAP12Binding" type="ns0:ConnectCdasPortType">
> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
> <wsdl:operation name="connectCdas">
> <soap12:operation soapAction="urn:connectCdas" style="document"/>
> <wsdl:input>
> <soap12:body use="literal"/>
> </wsdl:input>
> <wsdl:output>
> <soap12:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:binding name="ConnectCdasHttpBinding" type="ns0:ConnectCdasPortType">
> <http:binding verb="POST"/>
> <wsdl:operation name="connectCdas">
> <http:operation location="ConnectCdas/connectCdas"/>
> <wsdl:input>
> <mime:content type="text/xml" part="connectCdas"/>
> </wsdl:input>
> <wsdl:output>
> <mime:content type="text/xml" part="connectCdas"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="ConnectCdas">
> <wsdl:port name="ConnectCdasSOAP11port_http" binding="ns0:ConnectCdasSOAP11Binding">
> <soap:address location="http://localhost:8080/axis2/services/ConnectCdas"/>
> </wsdl:port>
> <wsdl:port name="ConnectCdasSOAP12port_http" binding="ns0:ConnectCdasSOAP12Binding">
> <soap12:address location="http://localhost:8080/axis2/services/ConnectCdas"/>
> </wsdl:port>
> <wsdl:port name="ConnectCdasHttpport" binding="ns0:ConnectCdasHttpBinding">
> <http:address location="http://localhost:8080/axis2/services/ConnectCdas"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org