axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimuthu Gamage <>
Subject Re: WSDL representation for methods with no input parameters
Date Wed, 15 Apr 2009 06:20:15 GMT
You can use an empty sequence to represent a function with no input
parameters in (doc-lit style), probably you can try it with java2wsdl tool.
Here is one that should work.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="" xmlns:mime="" xmlns:ns0="" xmlns:soap12="
        <xs:schema xmlns:tns=""
attributeFormDefault="qualified" elementFormDefault="qualified"
            <!-- demonstrating element-->
            <xs:element name="myDemo">

            <!-- kept just for the completeness -->
            <xs:element name="myDemoResponse" type="xs:int"/>
    <wsdl:message name="myDemoRequest">
        <wsdl:part name="parameters" element="ns0:myDemo"/>
    <wsdl:message name="myDemoResponse">
        <wsdl:part name="parameters" element="ns0:myDemoResponse"/>
    <wsdl:portType name="MyServicePortType">
        <wsdl:operation name="myDemo">
            <wsdl:input message="ns0:myDemoRequest"/>
            <wsdl:output message="ns0:myDemoResponse"/>
    <wsdl:binding name="MyServiceSOAP12Binding"
        <soap12:binding transport=""
        <wsdl:operation name="myDemo">
            <soap12:operation soapAction="urn:myDemo" style="document"/>
                <soap12:body use="literal"/>
                <soap12:body use="literal"/>
    <wsdl:service name="MyService">
        <wsdl:port name="MyServiceSOAP12port_http"
            <soap:address location="

On Thu, Apr 9, 2009 at 4:43 AM, Bruce Edge <> wrote:

> Hi,
> I'm trying to get up to speed with Axis2/c.
> Can anyone provide an example of a wsdl that defines functions that do not
> have input parameters? IOW output parameters only.
> Thanks
> -Bruce

Dimuthu Gamage

View raw message