Part 1

Introduction to Web services and WSDL

Return to article

Listing 4: WSDL implementation file
<?xml version="1.0" encoding="UTF-8" ?> 
<definitions name="MobilePhoneService" 		 
		 targetNamespace="http://www.mobilephoneservice.com/MobilePhoneService"
		 xmlns="http://schemas.xmlsoap.org/wsdl/"
		 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
		 xmlns:tns="http://www.mobilephoneservice.com/MobilePhoneService"
		 xmlns:xsd="http://www.w3.org/1999/XMLSchema">

		 <import location="http://localhost:8080/wsdl/MobilePhoneService-interface.wsdl"
		 		 namespace="http://www.mobilephoneserviceservice.com/MobilePhoneService-interface" /> 
		 
		 <service name="MobilePhoneService">
		 		 <documentation> Mobile Phone Information Service </documentation> 
		 		 <port binding="MobilePhoneService_Binding" name="MobilePhoneService_ServicePort">
		 		 		 <soap:address location="http://localhost:8080/soap/servlet/rpcrouter" /> 
		 		 </port>
		 </service>
</definitions>

Return to article