Autogenerated WSDL misses element if POJO function has no parameters
--------------------------------------------------------------------
Key: AXIS2-3733
URL: https://issues.apache.org/jira/browse/AXIS2-3733
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: wsdl
Affects Versions: 1.3
Environment: CentOS 5.1/i386
Tomcat/6.0.16
Sun JVM 1.6.0_05-b13
Reporter: Felix J. Ogris
Given this tiny service:
package net.ogris.test;
public class TestService {
public String helloWorld() {
return "hello, world";
}
}
Results in this WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:ns0="http://test.ogris.net" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
targetNamespace="http://test.ogris.net">
<wsdl:documentation>TestService</wsdl:documentation>
<wsdl:types>
<xs:schema xmlns:ns="http://test.ogris.net"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://test.ogris.net">
<xs:element name="helloWorldResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="helloWorldRequest"/>
<wsdl:message name="helloWorldResponse">
<wsdl:part name="parameters" element="ns0:helloWorldResponse"/>
</wsdl:message>
<wsdl:portType name="TestServicePortType">
<wsdl:operation name="helloWorld">
<wsdl:input message="ns0:helloWorldRequest"
wsaw:Action="urn:helloWorld"/>
<wsdl:output message="ns0:helloWorldResponse"
wsaw:Action="urn:helloWorldResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TestServiceSOAP11Binding"
type="ns0:TestServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<wsdl:operation name="helloWorld">
<soap:operation soapAction="urn:helloWorld" 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="TestServiceSOAP12Binding"
type="ns0:TestServicePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<wsdl:operation name="helloWorld">
<soap12:operation soapAction="urn:helloWorld" 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="TestServiceHttpBinding" type="ns0:TestServicePortType">
<http:binding verb="POST"/>
<wsdl:operation name="helloWorld">
<http:operation location="TestService/helloWorld"/>
<wsdl:input>
<mime:content type="text/xml" part="helloWorld"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="helloWorld"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TestService">
<wsdl:port name="TestServiceSOAP11port_http"
binding="ns0:TestServiceSOAP11Binding">
<soap:address
location="http://81.89.251.15:8080/axis2/services/TestService"/>
</wsdl:port>
<wsdl:port name="TestServiceSOAP12port_http"
binding="ns0:TestServiceSOAP12Binding">
<soap12:address
location="http://81.89.251.15:8080/axis2/services/TestService"/>
</wsdl:port>
<wsdl:port name="TestServiceHttpport"
binding="ns0:TestServiceHttpBinding">
<http:address
location="http://81.89.251.15:8080/axis2/services/TestService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Problem:
There should be an empty element "helloWorldRequest", eg: <xs:element
name="helloWorldRequest" />. Otherwise <wsdl:message name="helloWorldRequest"/>
has no corresponding element as shown above.
--
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]