<?xml version="1.0" encoding="utf-8"?>
<wsdl: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:wsdl="http://schemas.xmlsoap.org/wsdl/">

    <wsdl:message name="GetWeatherReportRequest">
        <wsdl:part name="zipcode" type="xsd:string" />
    </wsdl:message>

    <wsdl:message name="GetWeatherReportResponse">
        <wsdl:part name="weatherReport" type="xsd:string"/>
    </wsdl:message>

    <wsdl:message name="CityNewsReportRequest">
        <wsdl:part name="zipcode" type="xsd:string" />
    </wsdl:message>

    <wsdl:message name="CityNewsReportResponse">
        <wsdl:part name="newsReport" type="xsd:string"/>
    </wsdl:message>

    <wsdl:portType name="CityPortalServicePortType">
        <wsdl:operation name="GetCityWeatherReport">
            <wsdl:documentation>
              This method takes city zip code as input and returns the city weather update.
            </wsdl:documentation>
      <wsdl:input message="GetWeatherReportRequest" />
            <wsdl:output message="GetWeatherReportResponse" />
        </wsdl:operation>

        <wsdl:operation name="GetCityNewsReport">
            <wsdl:documentation>
              This method takes city zip code as input and returns the latest city news update.
            </wsdl:documentation>
      <wsdl:input message="CityNewsReportRequest" />
            <wsdl:output message="CityNewsReportResponse" />
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="CityPortalServiceBinding" type="CityPortalServicePortType">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="GetWeatherReport">
            <soap:operation soapAction="http://www.cityportal.com/webservices/weather" />
            <wsdl:input>
                <soap:body 
                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    namespace="http://www.cityportal.com/webservices/weather/" 
                    use="encoded" />
            </wsdl:input>
            <wsdl:output>
                <soap:body
                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    namespace="http://www.cityportal.com/webservices/weather/" 
                    use="encoded" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="CityPortal">
        <wsdl:documentation>
            The CityPortal service provides round the clock city weather and news update.
        </wsdl:documentation> 
        <wsdl:port name="CityPortalServicePortType" binding="CityPortalServiceBinding">
            <soap:address location="http:// www.cityportal.com/webservices/weatherservice"/>
          </wsdl:port>
    </wsdl:service>
</wsdl:definitions>