Sample WSDL File Created By Apache Axix 1.3 From A Simple Java File

This is not a WSDL tutorial. I am simply posting a simple Java file and the corresponding WSDL file created by Apache Axix 1.3. This was done using IBM’s Rational Software Architect (RSA) which is equivalent to eclipse IDE.

The java file:

package com.webservice;

public class HelloWebservice {
	
	public String sayHello (String name)
	{
		return "Hello"+name;
	}

}

The above file was converted to WSDL file by Apache Axix 1.3. The following is the generated .wsdl file.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://webservice.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="http://webservice.com" xmlns:intf="http://webservice.com" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" targetNamespace="http://webservice.com" 
xmlns="http://www.w3.org/2001/XMLSchema">
   <element name="sayHello">
    <complexType>
     <sequence>
      <element name="name" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="sayHelloResponse">
    <complexType>
     <sequence>
      <element name="sayHelloReturn" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
  </schema>
 </wsdl:types>
   <wsdl:message name="sayHelloResponse">
      <wsdl:part element="intf:sayHelloResponse" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="sayHelloRequest">
      <wsdl:part element="intf:sayHello" name="parameters"/>
   </wsdl:message>
   <wsdl:portType name="HelloWebservice">
      <wsdl:operation name="sayHello">
         <wsdl:input message="intf:sayHelloRequest" name="sayHelloRequest"/>
         <wsdl:output message="intf:sayHelloResponse" name="sayHelloResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="HelloWebserviceSoapBinding" type="intf:HelloWebservice">
      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="sayHello">
         <wsdlsoap:operation soapAction=""/>
         <wsdl:input name="sayHelloRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="sayHelloResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="HelloWebserviceService">
      <wsdl:port binding="intf:HelloWebserviceSoapBinding" name="HelloWebservice">
         <wsdlsoap:address location="http://localhost:8080/WebServiceTutorial/services/HelloWebservice"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>

[My Video Promotion]
  1. How to import SSL Certificate to IBM Websphere Server through admin console
  2. How to display UTF-8 characters in Eclipse / RAD Console
  3. How to force HTTPS use in a Java Web Application
  4. How to easily add SSL Certificates to IBM Websphere Server
  5. What Are The Differences Between SAX and DOM Parsers?
  6. Sample WSDL File Created By Apache Axix 1.3 From A Simple Java File
  7. Converting Java Object To SOAP Request And Response XML
  8. How To Set Conditional Debug Breakpoints in Eclipse or IBM RAD?
  9. Generating XML File Using Java Streaming API for XML (StAX) – A Clean Tutorial
  10. How to change the author name in Eclipse Generated java comments?
  11. How to use spaces in IBM RAD or Eclipse Instead of Tabs
  12. What is XML Pull Parsing?
  13. Complete Tutorial On Using SOAP-UI to Mock Web Service Request / Response
  14. How to delete saved SVN password from Eclipse IDE?
  15. How to increase the number of recent workspaces in the eclipse based IBM RAD (Rational Application Developer) IDE?
Tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.