Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 64535 invoked from network); 15 Apr 2009 06:21:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2009 06:21:03 -0000 Received: (qmail 38414 invoked by uid 500); 15 Apr 2009 06:21:02 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 38387 invoked by uid 500); 15 Apr 2009 06:21:02 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 38378 invoked by uid 99); 15 Apr 2009 06:21:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 06:21:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dimuthuc@gmail.com designates 209.85.221.134 as permitted sender) Received: from [209.85.221.134] (HELO mail-qy0-f134.google.com) (209.85.221.134) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 06:20:51 +0000 Received: by qyk40 with SMTP id 40so1463887qyk.30 for ; Tue, 14 Apr 2009 23:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=7h4nQhLsqTkrrlRZ7ZlvlPxx/rJLfs6KuxYjst57yo0=; b=HBEtXrmtLbxc4UNUHlP27gFL1p9PYjQYnp9wroyVsnA/6kde22rIJWuFNeWQYoSIpo eN4NXH/H4ONKbUSVPeOQN525c6JE40tSnhHE/p+BbAzrqH1MBICyyh5DHneX2M7T3Y50 VTEA+T0JFP7x+FlSUeP8a6XOcUvgwAM+LdRGY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=PksR81yDaqetOQ05mLenuSIAlFT0L1xR2rgjbkuDHM07JsrtGz5He0whekQY8P2y6v m3cXDhLQ8w/bzXdk3tffdO+iKm3oxjheh7q3LUBn2AYQ8XTT7lhv8uCrig0DJD5Prhh/ Wsnp84rVVEDL7k4SCTnNMLhW9E6sZFdMvHJos= MIME-Version: 1.0 Received: by 10.229.82.79 with SMTP id a15mr2304375qcl.57.1239776430143; Tue, 14 Apr 2009 23:20:30 -0700 (PDT) In-Reply-To: <45c43ef50904081613g3f8a6c34g16f9ba1e49593ad2@mail.gmail.com> References: <45c43ef50904081613g3f8a6c34g16f9ba1e49593ad2@mail.gmail.com> From: Dimuthu Gamage Date: Wed, 15 Apr 2009 11:50:15 +0530 Message-ID: Subject: Re: WSDL representation for methods with no input parameters To: Apache AXIS C User List Content-Type: multipart/alternative; boundary=00163646d542b839e0046791f174 X-Virus-Checked: Checked by ClamAV on apache.org --00163646d542b839e0046791f174 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, 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. 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 > -- Thanks, Dimuthu Gamage http://www.dimuthu.org http://www.wso2.org --00163646d542b839e0046791f174 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
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=3D"1.0"= encoding=3D"UTF-8"?>
<wsdl:definitions xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/" xmlns:mime=3D"http://schemas.xmlsoap.org/w= sdl/mime/" xmlns:ns0=3D"http://wso2.org/dyn/codegen/demo" xmlns:soap12=3D"http://schemas.xmlsoap.org/wsdl/<= /a>
=A0=A0=A0 <wsdl:types>
=A0=A0=A0=A0=A0=A0=A0 <xs:schema xmlns:t= ns=3D"
http://wso2.org/dyn= /codegen/demo" attributeFormDefault=3D"qualified" elemen= tFormDefault=3D"qualified" targetNamespace=3D"http://wso2.org/dyn/codegen/demo"&g= t;
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <!-- demonstrating element-->
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <xs:element name=3D"myDemo"&= gt;
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <xs:sequence/>
=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </xs:element>

=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 <!-- kept just for the completeness -->
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <xs:element name=3D"myDemoRespons= e" type=3D"xs:int"/>
=A0=A0=A0=A0=A0=A0=A0 </xs:sch= ema>
=A0=A0=A0 </wsdl:types>
=A0=A0=A0 <wsdl:message name= =3D"myDemoRequest">
=A0=A0=A0=A0=A0=A0=A0 <wsdl:part nam= e=3D"parameters" element=3D"ns0:myDemo"/>
=A0=A0=A0 </wsdl:message>
=A0=A0=A0 <wsdl:message name=3D"= myDemoResponse">
=A0=A0=A0=A0=A0=A0=A0 <wsdl:part name=3D&quo= t;parameters" element=3D"ns0:myDemoResponse"/>
=A0=A0= =A0 </wsdl:message>
=A0=A0=A0 <wsdl:portType name=3D"MySer= vicePortType">
=A0=A0=A0=A0=A0=A0=A0 <wsdl:operation name=3D"myDemo">
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <wsdl:input message=3D"ns0:myDemo= Request"/>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <wsdl:output mes= sage=3D"ns0:myDemoResponse"/>
=A0=A0=A0=A0=A0=A0=A0 </ws= dl:operation>
=A0=A0=A0 </wsdl:portType>
=A0=A0=A0 <wsdl:binding name=3D"= ;MyServiceSOAP12Binding" type=3D"ns0:MyServicePortType"><= br>=A0=A0=A0=A0=A0=A0=A0 <soap12:binding transport=3D"http://schemas.xmlsoap.org/soap/http" style=3D"document"/>
=A0=A0=A0=A0=A0=A0=A0 <wsdl:operation name=3D"myDemo">
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <soap12:operation soapAction=3D"u= rn:myDemo" style=3D"document"/>
=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 <wsdl:input>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 <soap12:body use=3D"literal"/>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </wsdl:input>
=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 <wsdl:output>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 <soap12:body use=3D"literal"/>
=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 </wsdl:output>
=A0=A0=A0=A0=A0=A0=A0 </wsdl:= operation>
=A0=A0=A0 </wsdl:binding>
=A0=A0=A0 <wsdl:service name=3D"MyService">
=A0=A0=A0=A0= =A0=A0=A0 <wsdl:port name=3D"MyServiceSOAP12port_http" binding= =3D"ns0:MyServiceSOAP12Binding">
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 <soap:address location=3D"
http://localhost/services/wsdl_mode/= SimpleTypeService.php"/>
=A0=A0=A0=A0=A0=A0=A0 </wsdl:port>
=A0=A0=A0 </wsdl:service>=
</wsdl:definitions>


On Thu,= Apr 9, 2009 at 4:43 AM, Bruce Edge <bruce.edge@gmail.com> wrote:
Hi,
I'm tr= ying 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 out= put parameters only.

Thanks

-Bruce



--
Thanks,
Dimut= hu Gamage

http://www.dimuthu.org<= /a>
http://www.wso2.org
--00163646d542b839e0046791f174--