<?xml version="1.0" encoding="UTF-8" ?> 

<wsd:definitions  name="BillingService" 
	targetNamespace="http://www.ElectricSupplyCompany.com/BillingService-interface"
	xmlns:wsd="http://schemas.xmlsoap.org/wsdl/" 
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
	xmlns:tns="http://www.ElectricSupplyCompany.com/BillingService" 
	xmlns:xsd="http://www.w3.org/1999/XMLSchema">

	<message name="MonthNumber">
		<part name="number" type="xsd:int"/>
	</message>

	<message name="TotalBill">
		<part name="bill" type="xsd:int"/>
	</message>

	<portType name="BillingService_port">
		<operation name="getBillForMonth">
			<input message="MonthNumber"/>
			<output message="TotalBill"/>
		</operation>
		<operation name="getCurrentBill">
			<output message="TotalBill"/>
		</operation>
	</portType>

	<binding name="BillingService_Binding" type="BillingService_port">
		<soap:binding style="rpc" 
			transport="http://schemas.xmlsoap.org/soap/http" />
		<operation name="getBillForMonth">
			<soap:operation soapAction="urn:BillingService" /> 
			<input>
				<soap:body
						encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  						namespace="urn:BillingService"  
						use="encoded" /> 
			</input>
			<output>
				<soap:body 
						encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  						namespace="urn:BillingService"  
						use="encoded" /> 
			</output>
		</operation>
		 
		<operation name="getCurrentBill">
			<soap:operation soapAction="urn:BillingService" />
			<input>
				<soap:body 
						encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
						namespace="urn:BillingService"  
						use="encoded" /> 
			</input>
			<output>
		 		 <soap:body 
						encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  
						namespace="urn:BillingService"  
						use="encoded" /> 
			</output>
		</operation>

	</binding>

	<service name="BillingService">
		<documentation> Billing Service of Electric Supply Company. </documentation> 
		<port binding="BillingService_Binding" 
				name="BillingService_ServicePort">
			<soap:address 
				location="http://localhost:8080/soap/servlet/rpcrouter" /> 
		</port>
	</service>

</wsd:definitions>