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="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://wso2.org/dyn/codegen/demo" xmlns:soap12=" http://schemas.xmlsoap.org/wsdl/ <wsdl:types> <xs:schema xmlns:tns="http://wso2.org/dyn/codegen/demo" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://wso2.org/dyn/codegen/demo"> <!-- demonstrating element--> <xs:element name="myDemo"> <xs:sequence/> </xs:element> <!-- kept just for the completeness --> <xs:element name="myDemoResponse" type="xs:int"/> </xs:schema> </wsdl:types> <wsdl:message name="myDemoRequest"> <wsdl:part name="parameters" element="ns0:myDemo"/> </wsdl:message> <wsdl:message name="myDemoResponse"> <wsdl:part name="parameters" element="ns0:myDemoResponse"/> </wsdl:message> <wsdl:portType name="MyServicePortType"> <wsdl:operation name="myDemo"> <wsdl:input message="ns0:myDemoRequest"/> <wsdl:output message="ns0:myDemoResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="MyServiceSOAP12Binding" type="ns0:MyServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="myDemo"> <soap12:operation soapAction="urn:myDemo" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="MyService"> <wsdl:port name="MyServiceSOAP12port_http" binding="ns0:MyServiceSOAP12Binding"> <soap:address location=" http://localhost/services/wsdl_mode/SimpleTypeService.php"/> </wsdl:port> </wsdl:service> </wsdl:definitions> On Thu, Apr 9, 2009 at 4:43 AM, Bruce Edge <[email protected]> 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
