<?xml version="1.0" encoding="utf-8"?>
<definitions
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    targetNamespace="http://www.cityportal.com/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <message name="GetWeatherReportRequest">
        <part name="zipcode" type="xsd:string" />
    </message>
    <message name="GetWeatherReportResponse">
        <part name="weatherReport" type="xsd:string"/>
    </message>
    <message name="CityNewsReportRequest">
        <part name="zipcode" type="xsd:string" />
    </message>
    <message name="CityNewsReportResponse">
        <part name="newsReport" type="xsd:string"/>
    </message>
    <portType name="CityPortalServicePortType">
        <operation name="GetCityWeatherReport">
            <documentation>
              This method takes city zip code as input and returns the city weather update.
            </documentation>
            <input message="GetWeatherReportRequest" />
            <output message="GetWeatherReportResponse" />
        </operation>
        <operation name="GetCityNewsReport">
            <documentation>
              This method takes city zip code as input and returns the latest city news update.
            </documentation>
            <input message="CityNewsReportRequest" />
            <output message="CityNewsReportResponse" />
        </operation>
    </portType>
    <binding name="CityPortalServiceBinding" type="CityPortalServicePortType">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="GetWeatherReport">
        <soap:operation     soapAction="http://www.cityportal.com/webservices/weather" />
            <input>
                <soap:body
                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    namespace="http://www.cityportal.com/webservices/weather/"
                    use="encoded" />
            </input>
            <output>
                <soap:body
                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    namespace="http://www.cityportal.com/webservices/weather/"
                    use="encoded" />
            </output>
        </operation>
    </binding>
    <service name="CityPortal">
        <documentation>
           The CityPortal service provides round the clock city weather and news update.
        </documentation> 
        <port name="CityPortalServicePortType" binding="CityPortalServiceBinding">
            <soap:address location="http:// www.cityportal.com/webservices/weatherservice"/>
        </port>
    </service>
</definitions>