<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://premiumcalc.homewarranty.nsw.gov.au" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://premiumcalc.homewarranty.nsw.gov.au" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://premiumcalc.homewarranty.nsw.gov.au">
      <s:element name="CalculatePremium">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="insuranceAgent" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="brokerID" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="brokerPassword" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="builderABN" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="builderBLN" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="typeofCover" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="contractVal" type="s:double" />
            <s:element minOccurs="0" maxOccurs="1" name="postCode" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="multiRectification" nillable="true" type="s:boolean" />
            <s:element minOccurs="1" maxOccurs="1" name="ownerBuilder" type="s:boolean" />
            <s:element minOccurs="1" maxOccurs="1" name="ageofWorks" nillable="true" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="numOfDwellings" nillable="true" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="CalculatePremiumResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="CalculatePremiumResult" type="tns:PremiumCalcResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="PremiumCalcResult">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="InsuranceAgent" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="PrevInsuranceAgent" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="BrokerID" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="BrokerPassword" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="BuilderABN" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="BuilderBLN" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="TypeofCover" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="ContractVal" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="AvergarePerUnitContractVal" type="s:double" />
          <s:element minOccurs="0" maxOccurs="1" name="PostCode" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="MultiRectification" type="s:boolean" />
          <s:element minOccurs="0" maxOccurs="1" name="OwnerBuilder" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="AgeofWorks" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="NumOfDwellings" type="s:int" />
          <s:element minOccurs="0" maxOccurs="1" name="BuilderName" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="PreviousInsurer" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="LastCertificateDate" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="ChargedPremium" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="ChargedPremiumBase" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="ChargedPremiumGST" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="ChargedPremiumStampDuty" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="ChargedPerUnitPremium" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="ChargedPerUnitPremiumBase" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="ChargedPerUnitPremiumGST" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="ChargedPerUnitPremiumStampDuty" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="Flag30" type="s:boolean" />
          <s:element minOccurs="1" maxOccurs="1" name="PerUnitFlag" type="s:boolean" />
          <s:element minOccurs="1" maxOccurs="1" name="BuilderFlatRate" type="s:boolean" />
          <s:element minOccurs="0" maxOccurs="1" name="AuthorizationDate" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="AuthorisationCode" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="ReturnCode" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="Message" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:element name="CalculatePremium2">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="insuranceAgent" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="brokerID" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="brokerPassword" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="builderABN" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="builderBLN" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="typeofCover" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="contractVal" type="s:double" />
            <s:element minOccurs="0" maxOccurs="1" name="postCode" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="multiRectification" nillable="true" type="s:boolean" />
            <s:element minOccurs="1" maxOccurs="1" name="ownerBuilder" type="s:boolean" />
            <s:element minOccurs="1" maxOccurs="1" name="ageofWorks" nillable="true" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="numOfDwellings" nillable="true" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="asAtDate" nillable="true" type="s:dateTime" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="CalculatePremium2Response">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="CalculatePremium2Result" type="tns:PremiumCalcResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="UpdateBrokerDetails">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="BrokerCode" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="BrokerPassword" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="BrokerType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="VerificationCode" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="Percentage" type="s:double" />
            <s:element minOccurs="1" maxOccurs="1" name="Amount" type="s:double" />
            <s:element minOccurs="0" maxOccurs="1" name="BrokerName" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="UpdateBrokerDetailsResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="UpdateBrokerDetailsResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="CalculatePremiumSoapIn">
    <wsdl:part name="parameters" element="tns:CalculatePremium" />
  </wsdl:message>
  <wsdl:message name="CalculatePremiumSoapOut">
    <wsdl:part name="parameters" element="tns:CalculatePremiumResponse" />
  </wsdl:message>
  <wsdl:message name="CalculatePremium2SoapIn">
    <wsdl:part name="parameters" element="tns:CalculatePremium2" />
  </wsdl:message>
  <wsdl:message name="CalculatePremium2SoapOut">
    <wsdl:part name="parameters" element="tns:CalculatePremium2Response" />
  </wsdl:message>
  <wsdl:message name="UpdateBrokerDetailsSoapIn">
    <wsdl:part name="parameters" element="tns:UpdateBrokerDetails" />
  </wsdl:message>
  <wsdl:message name="UpdateBrokerDetailsSoapOut">
    <wsdl:part name="parameters" element="tns:UpdateBrokerDetailsResponse" />
  </wsdl:message>
  <wsdl:portType name="HWPremiumCalcServiceSoap">
    <wsdl:operation name="CalculatePremium">
      <wsdl:input message="tns:CalculatePremiumSoapIn" />
      <wsdl:output message="tns:CalculatePremiumSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="CalculatePremium2">
      <wsdl:input message="tns:CalculatePremium2SoapIn" />
      <wsdl:output message="tns:CalculatePremium2SoapOut" />
    </wsdl:operation>
    <wsdl:operation name="UpdateBrokerDetails">
      <wsdl:input message="tns:UpdateBrokerDetailsSoapIn" />
      <wsdl:output message="tns:UpdateBrokerDetailsSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="HWPremiumCalcServiceSoap" type="tns:HWPremiumCalcServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="CalculatePremium">
      <soap:operation soapAction="http://premiumcalc.homewarranty.nsw.gov.au/CalculatePremium" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="CalculatePremium2">
      <soap:operation soapAction="http://premiumcalc.homewarranty.nsw.gov.au/CalculatePremium2" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="UpdateBrokerDetails">
      <soap:operation soapAction="http://premiumcalc.homewarranty.nsw.gov.au/UpdateBrokerDetails" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="HWPremiumCalcServiceSoap12" type="tns:HWPremiumCalcServiceSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="CalculatePremium">
      <soap12:operation soapAction="http://premiumcalc.homewarranty.nsw.gov.au/CalculatePremium" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="CalculatePremium2">
      <soap12:operation soapAction="http://premiumcalc.homewarranty.nsw.gov.au/CalculatePremium2" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="UpdateBrokerDetails">
      <soap12:operation soapAction="http://premiumcalc.homewarranty.nsw.gov.au/UpdateBrokerDetails" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="HWPremiumCalcService">
    <wsdl:port name="HWPremiumCalcServiceSoap" binding="tns:HWPremiumCalcServiceSoap">
      <soap:address location="http://ws.homewarranty.nsw.gov.au/HWPremiumCalcService.asmx" />
    </wsdl:port>
    <wsdl:port name="HWPremiumCalcServiceSoap12" binding="tns:HWPremiumCalcServiceSoap12">
      <soap12:address location="http://ws.homewarranty.nsw.gov.au/HWPremiumCalcService.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>