<?xml version="1.0"?>
<wsdl:definitions 
	xmlns="http://schemas.xmlsoap.org/wsdl/" 
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
	xmlns:s="http://www.w3.org/2001/XMLSchema" 
	xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
	xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
	xmlns:tns="http://www.phpfever.com/web-services/ZipCode.php" 
	targetNamespace="http://www.phpfever.com/web-services/ZipCode.php">

	<!-- message block begins -->
	<wsdl:message name="getZipsByRadiusRequest">
		<wsdl:part name="zip_code" type="s:int"/>
		<wsdl:part name="radius" type="s:int"/>
		<wsdl:part name="return_type" type="s:string"/>
		<wsdl:part name="start" type="s:int" />
		<wsdl:part name="end" type="s:int" />
	</wsdl:message>
	<wsdl:message name="getZipsByRadiusResponse">
		<wsdl:part name="return" type="s:string"/>
	</wsdl:message>
	
	<wsdl:message name="getLocalTimeRequest">
		<wsdl:part name="zip_code" type="s:int" />
		<wsdl:part name="return_type" type="s:string" />
	</wsdl:message>
	<wsdl:message name="getLocalTimeResponse">
		<wsdl:part name="return" type="s:string" />
	</wsdl:message>

	<wsdl:message name="getDistanceByZipRequest">
		<wsdl:part name="zip_code_one" type="s:int" />
		<wsdl:part name="zip_code_two" type="s:int" />
	</wsdl:message>
	<wsdl:message name="getDistanceByZipResponse">
		<wsdl:part name="return" type="s:string" />
	</wsdl:message>

	<!-- port block begins -->
	<wsdl:portType name="ZipCodeServiceSoap">
		
		<!-- operation block begins -->
		<wsdl:operation name="getZipsByRadius">
			<wsdl:input message="tns:getZipsByRadiusRequest"/>
			<wsdl:output message="tns:getZipsByRadiusResponse"/>
		</wsdl:operation>
		
		<wsdl:operation name="getLocalTime">
			<wsdl:input message="tns:getLocalTimeRequest" />
			<wsdl:output message="tns:getLocalTimeResponse" />
		</wsdl:operation>
		
		<wsdl:operation name="getDistanceByZip">
			<wsdl:input message="tns:getDistanceByZipRequest" />
			<wsdl:output message="tns:getDistanceByZipResponse" />
		</wsdl:operation>
		
	</wsdl:portType>

	<!-- binding block begins -->
	<wsdl:binding name="ZipCodeServiceSoap" type="tns:ZipCodeServiceSoap">
		<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
		
		<!-- operation block begins -->
		<wsdl:operation name="getLocalTime">
			<soap:operation soapAction="urn:getLocalTime" />
			<wsdl:input>
				<soap:body use="encoded" namespace="urn:xmethods" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use="encoded" namespace="urn:xmethods" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</wsdl:output>
		</wsdl:operation>
		
		<wsdl:operation name="getZipsByRadius">
			<soap:operation soapAction="urn:getZipsByRadius"/>
			<wsdl:input>
				<soap:body use="encoded" namespace="urn:xmethods" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use="encoded" namespace="urn:xmethods" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</wsdl:output>
		</wsdl:operation>
		
		<wsdl:operation name="getDistanceByZip">
			<soap:operation soapAction="urn:getDistanceByZip"/>
			<wsdl:input>
				<soap:body use="encoded" namespace="urn:xmethods" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use="encoded" namespace="urn:xmethods" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<!-- service block begins -->
	<wsdl:service name="ZipCode">
		<wsdl:port name="ZipCodeService" binding="tns:ZipCodeServiceSoap">
			<soap:address location="http://www.phpfever.com/web-services/ZipCode.php"/><!-- http://localhost/my-service-name.php -->
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>
