<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:schema="http://bala.com/calcmsg"
<--------------- THIS IS WHAT I DEFINE
xmlns:tns="http://bala.com/calcmsg"
<--------------- THIS IS WHAT I DEFINE
targetNamespace="http://bala.com/calcmsg"
<--------------- THIS IS WHAT I DEFINE>
<wsdl:types>
<xs:schema ......
</wsdl:types>
<wsdl:message name="..">
<wsdl:part name="body"
element="...."/>
</wsdl:message>
<wsdl:portType name="..">
<wsdl:operation name="..">
<wsdl:input message="..."/>
<wsdl:output
message="...."/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CalcBinding"
type="tns:CalcPortType">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/> <----
THIS IS A SOAP/HTTP binding
<wsdl:operation name="Add">
<wsdlsoap:operation
soapAction="http://bala.com/calc#Add"/>
<wsdl:input>
<wsdlsoap:body
use="literal"/>
</wsdl:input>
<wsdl:output>
<wsdlsoap:body
use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CalcService">
<wsdl:port name="CalcPort"
binding="tns:CalcBinding">
<wsdlsoap:address
location="http://localhost:8080/axis2/services/CalcService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
xmlns:tns="http://bala.com/calcmsg"
targetNamespace="http://bala.com/calcmsg"
xmlns="http://bala.com/calcmsg"
xmlns:blah="http://bala.com/calcmsg"
.....
<blah:MyEntry....
C:\home\raj\VersionAxis>ant run
Buildfile: build.xml
run:
[java] log4j:WARN No appenders could be found
for logger (org.apache.axiom.
om.impl.builder.StAXOMBuilder).
[java] log4j:WARN Please initialize the log4j
system properly.
[java] <ns:getVersionResponse
xmlns:ns="http://axisversion.sample/xsd"><ret
urn>Hello I am Axis2 version service , My version is 1.0 May 05,
2006 (12:30:54
IST)</return></ns:getVersionResponse>
[java] <ns:getVersionResponse
xmlns:ns="http://axisversion.sample/xsd"><ret
urn>Hello I am Axis2 version service , My version is 1.0 May 05,
2006 (12:30:54
IST)</return></ns:getVersionResponse>
BUILD SUCCESSFUL
Total time: 2 seconds