<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://www.bring.no/logistics/shippingguide/1.0" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.bring.no/logistics/shippingguide/1.0" targetNamespace="http://www.bring.no/logistics/shippingguide/1.0">
  <wsdl:types xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.bring.no/logistics/shippingguide/1.0" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.bring.no/logistics/shippingguide/1.0">

<!-- *** Bring Fraktguide - http://fraktguide.bring.no/ *** -->


  <!-- *** TOP LEVEL TYPES *** -->

  <xs:element name="ShippingGuideRequest" type="ShippingGuideRequestType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
  <xs:complexType name="ShippingGuideRequestType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:all xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="UserInformation" type="UserInformationType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="RequestProperties" type="RequestPropertiesType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="ProductIds" type="ProductIdsType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element maxOccurs="1" minOccurs="0" name="Consignment" type="ConsignmentInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="Packages" type="PackagesInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
   </xs:all>
  </xs:complexType>
  
  <xs:element name="ShippingGuideResponse" type="ShippingGuideResponseType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
  <xs:complexType name="ShippingGuideResponseType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="1" minOccurs="0" name="Consignment" type="ConsignmentOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="Packages" type="PackagesOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="TraceMessages" type="TraceType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:element name="OfflineShippingGuideRequest" type="OfflineShippingGuideRequestType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
  <xs:complexType name="OfflineShippingGuideRequestType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:all xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="UserInformation" type="UserInformationType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="OfflineRequestProperties" type="OfflineRequestPropertiesType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="ProductIds" type="ProductIdsType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="FromPostalCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!-- The date from which the data should be valid for -->
      <xs:element maxOccurs="1" minOccurs="0" name="ValidFromDate" type="DateAndTimeType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
   </xs:all>
  </xs:complexType>

  <xs:element name="OfflineShippingGuideResponse" type="OfflineShippingGuideResponseType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
  <xs:complexType name="OfflineShippingGuideResponseType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="DataInformation" type="OfflineDataInformationType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="Products" type="OfflineProductsType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="TraceMessages" type="TraceType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>


<!-- *** OFFLINE TYPES *** -->


 <xs:complexType name="OfflineDataInformationType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="FromPostalCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="EDI" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="PostingAtPostoffice" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="FormattedGeneratedDate" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="FormattedValidFromDate" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="Checksum" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="OfflineProductsType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="Product" type="OfflineProductType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="OfflineProductType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="ProductAttributes" type="OfflineProductAttributesType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="AdditionalPrices" type="OfflineAdditionalPricesType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="ExpectedDeliveryTimes" type="OfflineExpectedDeliveryTimesType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="PriceZoneForPostalCode" type="OfflinePriceZoneForPostalCodeType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="Prices" type="OfflinePricesType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
    <xs:attribute name="productId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
  </xs:complexType>

  <xs:complexType name="OfflineProductAttributesType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="ProductAttribute" type="OfflineProductAttributeType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="OfflineProductAttributeType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
              <xs:attribute name="productAttributeId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          </xs:extension>
      </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="OfflineAdditionalPricesType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="AdditionalPrice" type="AdditionalPriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AdditionalPriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
              <xs:attribute name="additionalPriceId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          </xs:extension>
      </xs:simpleContent>
  </xs:complexType>


  <xs:complexType name="OfflineExpectedDeliveryTimesType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="WorkingDays" type="OfflineWorkingDaysType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="OfflineWorkingDaysType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
              <xs:attribute name="toPostalCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          </xs:extension>
      </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="OfflinePriceZoneForPostalCodeType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="PriceZone" type="OfflinePriceZoneType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="OfflinePriceZoneType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
              <xs:attribute name="toPostalCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          </xs:extension>
      </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="OfflinePricesType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="Price" type="OfflinePriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="OfflinePriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <!-- Text node contains the price as decimal number with "." as decimal separator -->
          <xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
              <xs:attribute name="priceZone" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
              <xs:attribute name="weight" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          </xs:extension>
      </xs:simpleContent>
  </xs:complexType>


<!-- *** ONLINE TYPES *** -->

  <!--
        Element will be included in response if a Consignment element is specified in the request.
        Contains aggregated prices and delivery information.
    -->
  <xs:complexType name="ConsignmentOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element maxOccurs="unbounded" minOccurs="0" name="Product" type="ProductOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      </xs:sequence>
  </xs:complexType>

  <xs:complexType name="PackagesOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="Package" type="PackageOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="PackageOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="Product" type="ProductOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
    <xs:attribute name="packageId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
  </xs:complexType>

  <xs:complexType name="ProductOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="ProductId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="ProductCodeInProductionSystem" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="GuiInformation" type="GuiInformationType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="Price" type="PriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="ExpectedDelivery" type="ExpectedDeliveryType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="EnvironmentalInfo" type="EnvironmentalInfoType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="CourierSpecificEdiParameters" type="CourierSpecificEdiParametersType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="GuiInformationType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="SortOrder" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="MainDisplayCategory" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="SubDisplayCategory" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="DisplayName" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="ProductName" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="DescriptionText" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="HelpText" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="Tip" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="EnvironmentalInfoType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="1" minOccurs="1" name="GramsOfCO2Emitted" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>


  <xs:complexType name="CourierSpecificEdiParametersType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
              This section holds the data required to make a booking for Courier Services.
              The element OrderStartTime is the earliest possible pickup time, or in other words
              the earliest time at which the courier can be there to pick up your shipment.
              Please be advised that if you don't fill out Hour and Minute in ShippingDate in your request, Fraktguiden will assume that
              you want an immediate pickup of your shipment and return now as OrderStartTime.
              If ShippingDate is not set at all OrderStartTime is not returned.
          </xs:documentation>
      </xs:annotation>
      <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element name="OperationsID" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <xs:element name="FromRegion" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <xs:element name="ToRegion" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <xs:element name="FromZone" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <xs:element name="ToZone" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <xs:element minOccurs="0" name="OrderStartTime" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AddressType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="PostalCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="City" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="CountryCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element maxOccurs="2" minOccurs="1" name="AddressLine" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>


  <xs:complexType name="PriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="PackagePriceWithoutAdditionalServices" type="DetailedPriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="AdditionalServicePrices" type="AdditionalServicePricesType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
    <xs:attribute name="currencyIdentificationCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>

  </xs:complexType>


  <xs:complexType name="AdditionalServicePricesType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="AdditionalService" type="AdditionalServicePriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AdditionalServicePriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="AdditionalServiceId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="AdditionalServiceDescription" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="AdditionalServicePrice" type="DetailedPriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="AdditionalServiceCodeFromProductionSystem" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="DetailedPriceType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="AmountWithoutVAT" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!-- VAT is only included for Norwegian currency -->
      <xs:element name="VAT" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!-- VAT is only included for Norwegian currency -->
      <xs:element name="AmountWithVAT" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="ExpectedDeliveryType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="WorkingDays" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="UserMessage" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="FormattedExpectedDeliveryDate" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="ExpectedDeliveryDate" type="DateAndTimeType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element minOccurs="0" name="AlternativeDeliveryDates" type="AlternativeDeliveryDatesType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AlternativeDeliveryDatesType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element maxOccurs="unbounded" minOccurs="0" name="AlternativeDeliveryDate" type="AlternativeDeliveryDateType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AlternativeDeliveryDateType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element name="ShippingDate" type="DateAndTimeType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <xs:element minOccurs="0" name="UserMessage" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <xs:element minOccurs="0" name="FormattedExpectedDeliveryDate" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
        <xs:element name="ExpectedDeliveryDate" type="DateAndTimeType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AdditionalServicesInformationOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="AdditionalService" type="AdditionalServiceInformationOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AdditionalServiceInformationOutputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="AdditionalServiceId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="AdditionalServiceName" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="AdditionalServiceDescription" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>


  <!-- *** COMMON TYPES *** -->

  <xs:complexType name="TraceType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
       <xs:element maxOccurs="unbounded" minOccurs="0" name="Message" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>


  <!-- *** INPUT TYPES *** -->

  <xs:complexType name="RequestPropertiesType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:all xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <!-- Which fraktguide schema version the client is using -->
      <xs:element name="SchemaVersion" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!-- Which language the response should have. Currently only Norwegian (no) is supported -->
      <xs:element default="no" minOccurs="0" name="Language" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!--  default true. Set it to false if you don't want prices -->    
      <xs:element default="true" minOccurs="0" name="WithPrice" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
      <!--  default true. Set it to false if you don't want estimated delivery time -->
      <xs:element default="true" minOccurs="0" name="WithExpectedDelivery" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>  
      <!--  default true. Set it to false if you don't want gui information -->
      <xs:element default="true" minOccurs="0" name="WithGuiInformation" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>  
      <!--  default 0. Set it to the number of days ahead you want alternative shipping/delivery times. Useful for the PA_DOREN product. No effect for offline data -->
      <xs:element default="0" minOccurs="0" name="NumberOfAlternativeDeliveryDates" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!--  default true. Set to false if this is not an EDI package -->
      <xs:element default="true" maxOccurs="1" minOccurs="0" name="EDI" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
      <!--  default false. Set to true if you are delivering the package through a postal office -->
      <xs:element default="false" maxOccurs="1" minOccurs="0" name="PostingAtPostoffice" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!--  default true to make adoption of the service easier for new users. Set to false if you don't want trace messages -->
      <xs:element default="true" minOccurs="0" name="Trace" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="OfflineRequestPropertiesType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:all xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <!-- Which fraktguide schema version the client is using -->
      <xs:element name="SchemaVersion" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!-- Which language the response should have. Currently only Norwegian (no) is supported -->
      <xs:element default="no" minOccurs="0" name="Language" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!--  default true. Set it to false if you don't want prices -->    
      <xs:element default="true" minOccurs="0" name="WithPrice" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
      <!--  default true. Set it to false if you don't want estimated delivery time -->
      <xs:element default="true" minOccurs="0" name="WithExpectedDelivery" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>  
      <!--  default true. Set to false if this is not an EDI package -->
      <xs:element default="true" maxOccurs="1" minOccurs="0" name="EDI" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
      <!--  default false. Set to true if you are delivering the package through a postal office -->
      <xs:element default="false" maxOccurs="1" minOccurs="0" name="PostingAtPostoffice" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!--  default false. Set to true if you want trace messages -->
      <xs:element default="false" minOccurs="0" name="Trace" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>   
    </xs:all>
  </xs:complexType>

  <!--
    Element indicating that all packages in the package list (PackagesInputType) are part of a single consignment.
    If present, produces a ConsignmentOutputType in the response to get consignment (total) price.

    This element is required when certain products are requested (consignment oriented products).
    See the fraktguide documentation for which products that require this element.
    The field values set on this element does not have to be repeated on each package element,
    though if set on a package and it has a different value than the value set on the consignment, an error is returned.
  -->
  <xs:complexType name="ConsignmentInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:all xmlns:xs="http://www.w3.org/2001/XMLSchema">
          <!-- The country code the consignment is sent from. Will be used for all packages -->
          <xs:element name="FromCountryCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          <!-- The postal code the consignment is sent from. Will be used for all packages -->
          <xs:element name="FromPostalCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          <!-- The country code the consignment is sent to. Will be used for all packages -->
          <xs:element name="ToCountryCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          <!-- The postal code the consignment should be delivered to. Will be used for all packages -->
          <xs:element name="ToPostalCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          <!-- The date the consignment could be shipped (used for estimated delivery date). Will be used for all packages -->
          <xs:element maxOccurs="1" minOccurs="0" name="ShippingDate" type="DateAndTimeType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          <!-- default blank. Set to 0024 if you deliver the package to Oslo Terminal before 1200 and it's a På Døren package delivered same day. Will be used for all packages -->
          <xs:element maxOccurs="1" minOccurs="0" name="EarlyCollectionAtTerminal" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
          <!-- List of additional services requested. Will be used for all packages -->
          <xs:element maxOccurs="1" minOccurs="0" name="AdditionalServices" type="AdditionalServicesInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      </xs:all>
  </xs:complexType>
  
  <xs:complexType name="PackagesInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="Package" type="PackageInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>

  <!-- Please note that you don't need all elements. The more elements the better result. -->
  <xs:complexType name="PackageInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
    <xs:all xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <!-- The height of the package in centimetres -->
        <xs:element maxOccurs="1" minOccurs="0" name="Height" type="UnitCodeLengthType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!--  The width of the package in centimetres -->
        <xs:element maxOccurs="1" minOccurs="0" name="Width" type="UnitCodeLengthType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!--  The length of the package in centimetres (the highest value of height, width and length will always be used as length -->
        <xs:element maxOccurs="1" minOccurs="0" name="Length" type="UnitCodeLengthType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!--  The weight of the package in gram -->
        <xs:element maxOccurs="1" minOccurs="0" name="GrossWeight" type="UnitCodeWeightType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!--  The volume of the package in decimetres cubic -->
        <xs:element maxOccurs="1" minOccurs="0" name="Volume" type="UnitCodeCubicType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!-- default false. Set to true if you know the package price will be adjusted for special volume (Spesialgodstillegg) -->
        <xs:element default="false" maxOccurs="1" minOccurs="0" name="VolumeSpecial" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!-- The country code the package is sent from -->
        <xs:element name="FromCountryCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!-- The postal code the package is sent from -->
        <xs:element name="FromPostalCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!-- The country code the package is sent to -->
        <xs:element name="ToCountryCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!--  The postal code the package should be delivered to -->
        <xs:element name="ToPostalCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!-- The date the package could be shipped (used for estimated delivery date) -->
        <xs:element maxOccurs="1" minOccurs="0" name="ShippingDate" type="DateAndTimeType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!-- List of additional services requested -->
        <xs:element maxOccurs="1" minOccurs="0" name="AdditionalServices" type="AdditionalServicesInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
        <!-- default blank. Set to 0024 if you deliver the package to Oslo Terminal before 1200 and it's a PA_DOREN package product delivered same day -->
        <xs:element maxOccurs="1" minOccurs="0" name="EarlyCollectionAtTerminal" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
    </xs:all>
    <xs:attribute name="packageId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> <!-- Your internal reference to this package (you may estimate several packages at the same time) -->
    
  </xs:complexType>
  
   
    <xs:complexType name="UnitCodeWeightType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xs:attribute default="GRM" name="unitCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>

    <xs:complexType name="UnitCodeLengthType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xs:attribute default="CMT" name="unitCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    
    <xs:complexType name="UnitCodeCubicType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xs:attribute default="DMQ" name="unitCode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>

  
  
  <xs:complexType name="DateAndTimeType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:all xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="Year" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="Month" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="Day" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!-- The hour element is only valid for some products (in both request and response) -->
      <xs:element minOccurs="0" name="Hour" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <!-- The minute element is only valid for some products (in both request and response) -->
      <xs:element minOccurs="0" name="Minute" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:all>
  </xs:complexType>
  
  <xs:complexType name="AdditionalServicesInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="AdditionalService" type="AdditionalServiceInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> <!-- See documentation -->
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AdditionalServiceInputType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:all xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="AdditionalServiceId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
      <xs:element name="AdditionalServiceParameters" type="AdditionalServiceInputParametersType" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="AdditionalServiceInputParametersType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="AdditonalServiceParameter" xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema">
                    <xs:extension base="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">
                        <xs:attribute name="name" type="xs:string" use="required" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                    </xs:extension>
                </xs:simpleContent>
            </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="UserInformationType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:all xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <!-- Usercode must be exactly the same value that you received in the Bring Fraktguide GUI -->
      <xs:element name="Usercode" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> 
    </xs:all>
  </xs:complexType>
  
  <xs:complexType name="ProductIdsType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element maxOccurs="unbounded" minOccurs="0" name="ProductId" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
    </xs:sequence>
  </xs:complexType>


</xs:schema>
  </wsdl:types>
  <wsdl:message name="ShippingGuideRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:part element="tns:ShippingGuideRequest" name="ShippingGuideRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="OfflineShippingGuideResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:part element="tns:OfflineShippingGuideResponse" name="OfflineShippingGuideResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="OfflineShippingGuideRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:part element="tns:OfflineShippingGuideRequest" name="OfflineShippingGuideRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="ShippingGuideResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:part element="tns:ShippingGuideResponse" name="ShippingGuideResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="Fraktguide" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:operation name="ShippingGuide" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:input message="tns:ShippingGuideRequest" name="ShippingGuideRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    </wsdl:input>
      <wsdl:output message="tns:ShippingGuideResponse" name="ShippingGuideResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="OfflineShippingGuide" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:input message="tns:OfflineShippingGuideRequest" name="OfflineShippingGuideRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    </wsdl:input>
      <wsdl:output message="tns:OfflineShippingGuideResponse" name="OfflineShippingGuideResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="FraktguideSoap11" type="tns:Fraktguide" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
    <wsdl:operation name="ShippingGuide" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      <wsdl:input name="ShippingGuideRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      </wsdl:input>
      <wsdl:output name="ShippingGuideResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="OfflineShippingGuide" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      <wsdl:input name="OfflineShippingGuideRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      </wsdl:input>
      <wsdl:output name="OfflineShippingGuideResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="FraktguideService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:port binding="tns:FraktguideSoap11" name="FraktguideSoap11" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <soap:address location="http://fraktguide.bring.no:80/fraktguide/ws/1.0/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
