[
https://issues.apache.org/jira/browse/AXIS2-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amila Chinthaka Suriarachchi resolved AXIS2-3315.
-------------------------------------------------
Resolution: Fixed
fixed the issue already
> Compile error in generated JUnit
> --------------------------------
>
> Key: AXIS2-3315
> URL: https://issues.apache.org/jira/browse/AXIS2-3315
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.3
> Environment: Windows XP
> Reporter: Kathy Chan
> Assignee: Amila Chinthaka Suriarachchi
>
> Using Axis2 v1.3, when I issue the following:
> wsdl2java -uri Persondetails.wsdl -t
> to generate JUnit testcase for client,I got a PersondetailsTest.java
> generated with compile error:
> public void testStartgetPersonDetails() throws java.lang.Exception{
> wtp.PersondetailsStub stub = new wtp.PersondetailsStub();
>
> stub.startgetPersonDetails(
> ,
> new tempCallbackN1000C()
> );
>
> }
> Note that there's a "," with no field in the call to
> stub.startgetPersonDetails.
> Here's the Persondetails.wsdl used:
> <wsdl:definitions xmlns:axis2="http://wtp"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:ns0="http://wtp/xsd"
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:ns1="http://org.apache.axis2/xsd"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> targetNamespace="http://wtp">
> <wsdl:documentation>
> Please Type your service description here
> </wsdl:documentation>
> <wsdl:types>
> <xs:schema xmlns:ns="http://wtp/xsd"
> attributeFormDefault="qualified"
> elementFormDefault="qualified"
> targetNamespace="http://wtp/xsd">
> <xs:element name="getPersonDetailsResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="return"
> nillable="true"
> type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="setPersonDetails">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="name"
> nillable="true"
> type="xs:string" />
> <xs:element name="age"
> nillable="true"
> type="xs:int" />
> <xs:element name="address"
> nillable="true"
> type="ns:Address" />
> <xs:element name="homeNo"
> nillable="true"
> type="xs:string" />
> <xs:element name="street"
> nillable="true"
> type="xs:string" />
> <xs:element name="ciry"
> nillable="true"
> type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="Address" type="ns:Address" />
> <xs:complexType name="Address">
> <xs:sequence>
> <xs:element name="address"
> nillable="true"
> type="xs:string" />
> <xs:element name="ciry" nillable="true"
> type="xs:string" />
> <xs:element name="country"
> nillable="true"
> type="xs:string" />
> <xs:element name="name" nillable="true"
> type="xs:string" />
> <xs:element name="no" nillable="true"
> type="xs:string" />
> <xs:element name="street"
> nillable="true"
> type="xs:string" />
> <xs:element name="zipCode"
> nillable="true"
> type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:schema>
> </wsdl:types>
> <wsdl:message name="getPersonDetailsMessage" />
> <wsdl:message name="getPersonDetailsResponse">
> <wsdl:part name="part1" element="ns0:getPersonDetailsResponse"
> />
> </wsdl:message>
> <wsdl:message name="setPersonDetailsMessage">
> <wsdl:part name="part1" element="ns0:setPersonDetails" />
> </wsdl:message>
> <wsdl:portType name="PersondetailsPortType">
> <wsdl:operation name="getPersonDetails">
> <wsdl:input
>
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
> message="axis2:getPersonDetailsMessage"
> wsaw:Action="urn:getPersonDetails" />
> <wsdl:output message="axis2:getPersonDetailsResponse" />
> </wsdl:operation>
> <wsdl:operation name="setPersonDetails">
> <wsdl:input
>
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
> message="axis2:setPersonDetailsMessage"
> wsaw:Action="urn:setPersonDetails" />
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="PersondetailsSOAP11Binding"
> type="axis2:PersondetailsPortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document" />
> <wsdl:operation name="getPersonDetails">
> <soap:operation soapAction="urn:getPersonDetails"
> style="document" />
> <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> <wsdl:operation name="setPersonDetails">
> <soap:operation soapAction="urn:setPersonDetails"
> style="document" />
> <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:binding name="PersondetailsSOAP12Binding"
> type="axis2:PersondetailsPortType">
> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document" />
> <wsdl:operation name="getPersonDetails">
> <soap12:operation soapAction="urn:getPersonDetails"
> style="document" />
> <wsdl:input>
> <soap12:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap12:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> <wsdl:operation name="setPersonDetails">
> <soap12:operation soapAction="urn:setPersonDetails"
> style="document" />
> <wsdl:input>
> <soap12:body use="literal" />
> </wsdl:input>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:binding name="PersondetailsHttpBinding"
> type="axis2:PersondetailsPortType">
> <http:binding verb="POST" />
> <wsdl:operation name="getPersonDetails">
> <http:operation location="getPersonDetails" />
> <wsdl:input>
> <mime:content type="text/xml" />
> </wsdl:input>
> <wsdl:output>
> <mime:content type="text/xml" />
> </wsdl:output>
> </wsdl:operation>
> <wsdl:operation name="setPersonDetails">
> <http:operation location="setPersonDetails" />
> <wsdl:input>
> <mime:content type="text/xml" />
> </wsdl:input>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="Persondetails">
> <wsdl:port name="PersondetailsSOAP11port_http"
> binding="axis2:PersondetailsSOAP11Binding">
> <soap:address
>
> location="http://9.26.187.24:8080/p1/services/Persondetails" />
> </wsdl:port>
> <wsdl:port name="PersondetailsSOAP12port_http"
> binding="axis2:PersondetailsSOAP12Binding">
> <soap12:address
>
> location="http://localhost:8080/p1/services/Persondetails" />
> </wsdl:port>
> <wsdl:port name="PersondetailsHttpport"
> binding="axis2:PersondetailsHttpBinding">
> <http:address
>
> location="http://localhost:8080/p1/services/Persondetails" />
> </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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]