﻿<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.microsoft.com/ws/06/2004/policy/http" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" targetNamespace="http://tempuri.org/" name="IOutlookService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <xs:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
      <xs:import namespace="http://schemas.datacontract.org/2004/07/XaktCommonWCFApplication" />
      <xs:import namespace="http://schemas.datacontract.org/2004/07/OutlookWCFApplication" />
      <xs:import namespace="http://schemas.datacontract.org/2004/07/System" />
      <xs:element name="TicketIsValid">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" name="ticket" nillable="true" xmlns:q1="http://schemas.datacontract.org/2004/07/XaktCommonWCFApplication" type="q1:XaktServiceTicket" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TicketIsValidResponse">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" name="TicketIsValidResult" type="xs:boolean" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GetCustomersByEmailAddress">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" name="ticket" nillable="true" xmlns:q2="http://schemas.datacontract.org/2004/07/XaktCommonWCFApplication" type="q2:XaktServiceTicket" />
            <xs:element minOccurs="1" name="email" nillable="true" type="xs:string" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GetCustomersByEmailAddressResponse">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" maxOccurs="1" name="GetCustomersByEmailAddressResult">
              <xs:complexType>
                <xs:sequence>
                  <xs:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" />
                  <xs:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax" />
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GetCustomersBySemiColonSeperatedEmailAddresses">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" name="ticket" nillable="true" xmlns:q3="http://schemas.datacontract.org/2004/07/XaktCommonWCFApplication" type="q3:XaktServiceTicket" />
            <xs:element minOccurs="1" name="emailAddresses" nillable="true" type="xs:string" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GetCustomersBySemiColonSeperatedEmailAddressesResponse">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" maxOccurs="1" name="GetCustomersBySemiColonSeperatedEmailAddressesResult">
              <xs:complexType>
                <xs:sequence>
                  <xs:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" />
                  <xs:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax" />
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SaveMailToXakt">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" name="ticket" nillable="true" xmlns:q4="http://schemas.datacontract.org/2004/07/XaktCommonWCFApplication" type="q4:XaktServiceTicket" />
            <xs:element minOccurs="1" name="direction" type="xs:int" />
            <xs:element minOccurs="1" name="htmlBody" nillable="true" type="xs:string" />
            <xs:element minOccurs="1" name="subject" nillable="true" type="xs:string" />
            <xs:element minOccurs="1" name="creationDate" type="xs:dateTime" />
            <xs:element minOccurs="1" xmlns:q5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" name="customerIds" nillable="true" type="q5:ArrayOfint" />
            <xs:element minOccurs="1" name="sentFrom" nillable="true" type="xs:string" />
            <xs:element minOccurs="1" name="sentTo" nillable="true" type="xs:string" />
            <xs:element minOccurs="1" name="sentCopyTo" nillable="true" type="xs:string" />
            <xs:element minOccurs="1" name="sentBlindCopyTo" nillable="true" type="xs:string" />
            <xs:element minOccurs="1" name="sent" type="xs:boolean" />
            <xs:element minOccurs="1" name="sentDate" type="xs:dateTime" />
            <xs:element minOccurs="1" name="attachments" nillable="true" xmlns:q6="http://schemas.datacontract.org/2004/07/OutlookWCFApplication" type="q6:ArrayOfXaktEmailAttachment" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SaveMailToXaktResponse">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" name="SaveMailToXaktResult" type="xs:int" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GetCustomersByNumberOrNameLike">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" name="ticket" nillable="true" xmlns:q7="http://schemas.datacontract.org/2004/07/XaktCommonWCFApplication" type="q7:XaktServiceTicket" />
            <xs:element minOccurs="1" name="searchStr" nillable="true" type="xs:string" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GetCustomersByNumberOrNameLikeResponse">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" maxOccurs="1" name="GetCustomersByNumberOrNameLikeResult">
              <xs:complexType>
                <xs:sequence>
                  <xs:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" />
                  <xs:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax" />
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/">
      <xs:element name="anyType" nillable="true" type="xs:anyType" />
      <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
      <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
      <xs:element name="boolean" nillable="true" type="xs:boolean" />
      <xs:element name="byte" nillable="true" type="xs:byte" />
      <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
      <xs:element name="decimal" nillable="true" type="xs:decimal" />
      <xs:element name="double" nillable="true" type="xs:double" />
      <xs:element name="float" nillable="true" type="xs:float" />
      <xs:element name="int" nillable="true" type="xs:int" />
      <xs:element name="long" nillable="true" type="xs:long" />
      <xs:element name="QName" nillable="true" type="xs:QName" />
      <xs:element name="short" nillable="true" type="xs:short" />
      <xs:element name="string" nillable="true" type="xs:string" />
      <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
      <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
      <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
      <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
      <xs:element name="char" nillable="true" type="tns:char" />
      <xs:simpleType name="char">
        <xs:restriction base="xs:int" />
      </xs:simpleType>
      <xs:element name="duration" nillable="true" type="tns:duration" />
      <xs:simpleType name="duration">
        <xs:restriction base="xs:duration">
          <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
          <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
          <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
        </xs:restriction>
      </xs:simpleType>
      <xs:element name="guid" nillable="true" type="tns:guid" />
      <xs:simpleType name="guid">
        <xs:restriction base="xs:string">
          <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
        </xs:restriction>
      </xs:simpleType>
      <xs:attribute name="FactoryType" type="xs:QName" />
      <xs:attribute name="Id" type="xs:ID" />
      <xs:attribute name="Ref" type="xs:IDREF" />
    </xs:schema>
    <xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/XaktCommonWCFApplication" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/XaktCommonWCFApplication" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
      <xs:import namespace="http://schemas.datacontract.org/2004/07/System" />
      <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
      <xs:complexType name="XaktServiceTicket" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
        <xs:sequence>
          <xs:element minOccurs="0" name="OrganizationNumber" type="xs:int" />
          <xs:element minOccurs="0" name="Password" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="XaktCustomerNumber" type="xs:int" />
        </xs:sequence>
      </xs:complexType>
      <xs:element name="XaktServiceTicket" nillable="true" type="tns:XaktServiceTicket" />
    </xs:schema>
    <xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/OutlookWCFApplication" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/OutlookWCFApplication" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
      <xs:import namespace="http://schemas.datacontract.org/2004/07/System" />
      <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
      <xs:complexType name="XaktEmailAttachment" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
        <xs:sequence>
          <xs:element minOccurs="0" name="FileBinary" type="xs:base64Binary" />
          <xs:element minOccurs="0" name="FileName" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="FileType" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:complexType>
      <xs:element name="XaktEmailAttachment" nillable="true" type="tns:XaktEmailAttachment" />
      <xs:complexType name="ArrayOfXaktEmailAttachment" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
        <xs:sequence>
          <xs:element minOccurs="0" maxOccurs="unbounded" name="XaktEmailAttachment" nillable="true" type="tns:XaktEmailAttachment" />
        </xs:sequence>
      </xs:complexType>
      <xs:element name="ArrayOfXaktEmailAttachment" nillable="true" type="tns:ArrayOfXaktEmailAttachment" />
    </xs:schema>
    <xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/System" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/System" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
      <xs:import namespace="http://schemas.datacontract.org/2004/07/System" />
      <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
      <xs:complexType name="ArrayOfByte" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
        <xs:sequence>
          <xs:element minOccurs="0" maxOccurs="unbounded" name="byte" type="xs:byte" />
        </xs:sequence>
      </xs:complexType>
      <xs:element name="ArrayOfByte" nillable="true" type="tns:ArrayOfByte" />
    </xs:schema>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
      <xs:complexType name="ArrayOfint">
        <xs:sequence>
          <xs:element minOccurs="0" maxOccurs="unbounded" name="int" type="xs:int" />
        </xs:sequence>
      </xs:complexType>
      <xs:element name="ArrayOfint" nillable="true" type="tns:ArrayOfint" />
    </xs:schema>
  </wsdl:types>
  <wsdl:message name="IOutlookService_TicketIsValid_InputMessage">
    <wsdl:part name="parameters" element="tns:TicketIsValid" />
  </wsdl:message>
  <wsdl:message name="IOutlookService_TicketIsValid_OutputMessage">
    <wsdl:part name="parameters" element="tns:TicketIsValidResponse" />
  </wsdl:message>
  <wsdl:message name="IOutlookService_GetCustomersByEmailAddress_InputMessage">
    <wsdl:part name="parameters" element="tns:GetCustomersByEmailAddress" />
  </wsdl:message>
  <wsdl:message name="IOutlookService_GetCustomersByEmailAddress_OutputMessage">
    <wsdl:part name="parameters" element="tns:GetCustomersByEmailAddressResponse" />
  </wsdl:message>
  <wsdl:message name="IOutlookService_GetCustomersBySemiColonSeperatedEmailAddresses_InputMessage">
    <wsdl:part name="parameters" element="tns:GetCustomersBySemiColonSeperatedEmailAddresses" />
  </wsdl:message>
  <wsdl:message name="IOutlookService_GetCustomersBySemiColonSeperatedEmailAddresses_OutputMessage">
    <wsdl:part name="parameters" element="tns:GetCustomersBySemiColonSeperatedEmailAddressesResponse" />
  </wsdl:message>
  <wsdl:message name="IOutlookService_SaveMailToXakt_InputMessage">
    <wsdl:part name="parameters" element="tns:SaveMailToXakt" />
  </wsdl:message>
  <wsdl:message name="IOutlookService_SaveMailToXakt_OutputMessage">
    <wsdl:part name="parameters" element="tns:SaveMailToXaktResponse" />
  </wsdl:message>
  <wsdl:message name="IOutlookService_GetCustomersByNumberOrNameLike_InputMessage">
    <wsdl:part name="parameters" element="tns:GetCustomersByNumberOrNameLike" />
  </wsdl:message>
  <wsdl:message name="IOutlookService_GetCustomersByNumberOrNameLike_OutputMessage">
    <wsdl:part name="parameters" element="tns:GetCustomersByNumberOrNameLikeResponse" />
  </wsdl:message>
  <wsdl:portType name="IOutlookService">
    <wsdl:operation name="TicketIsValid">
      <wsdl:input wsam:Action="http://tempuri.org/IOutlookService/TicketIsValid" message="tns:IOutlookService_TicketIsValid_InputMessage" />
      <wsdl:output wsam:Action="http://tempuri.org/IOutlookService/TicketIsValidResponse" message="tns:IOutlookService_TicketIsValid_OutputMessage" />
    </wsdl:operation>
    <wsdl:operation name="GetCustomersByEmailAddress">
      <wsdl:input wsam:Action="http://tempuri.org/IOutlookService/GetCustomersByEmailAddress" message="tns:IOutlookService_GetCustomersByEmailAddress_InputMessage" />
      <wsdl:output wsam:Action="http://tempuri.org/IOutlookService/GetCustomersByEmailAddressResponse" message="tns:IOutlookService_GetCustomersByEmailAddress_OutputMessage" />
    </wsdl:operation>
    <wsdl:operation name="GetCustomersBySemiColonSeperatedEmailAddresses">
      <wsdl:input wsam:Action="http://tempuri.org/IOutlookService/GetCustomersBySemiColonSeperatedEmailAddresses" message="tns:IOutlookService_GetCustomersBySemiColonSeperatedEmailAddresses_InputMessage" />
      <wsdl:output wsam:Action="http://tempuri.org/IOutlookService/GetCustomersBySemiColonSeperatedEmailAddressesResponse" message="tns:IOutlookService_GetCustomersBySemiColonSeperatedEmailAddresses_OutputMessage" />
    </wsdl:operation>
    <wsdl:operation name="SaveMailToXakt">
      <wsdl:input wsam:Action="http://tempuri.org/IOutlookService/SaveMailToXakt" message="tns:IOutlookService_SaveMailToXakt_InputMessage" />
      <wsdl:output wsam:Action="http://tempuri.org/IOutlookService/SaveMailToXaktResponse" message="tns:IOutlookService_SaveMailToXakt_OutputMessage" />
    </wsdl:operation>
    <wsdl:operation name="GetCustomersByNumberOrNameLike">
      <wsdl:input wsam:Action="http://tempuri.org/IOutlookService/GetCustomersByNumberOrNameLike" message="tns:IOutlookService_GetCustomersByNumberOrNameLike_InputMessage" />
      <wsdl:output wsam:Action="http://tempuri.org/IOutlookService/GetCustomersByNumberOrNameLikeResponse" message="tns:IOutlookService_GetCustomersByNumberOrNameLike_OutputMessage" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="BasicHttpBinding_IOutlookService" type="tns:IOutlookService">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="TicketIsValid">
      <soap:operation soapAction="http://tempuri.org/IOutlookService/TicketIsValid" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetCustomersByEmailAddress">
      <soap:operation soapAction="http://tempuri.org/IOutlookService/GetCustomersByEmailAddress" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetCustomersBySemiColonSeperatedEmailAddresses">
      <soap:operation soapAction="http://tempuri.org/IOutlookService/GetCustomersBySemiColonSeperatedEmailAddresses" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SaveMailToXakt">
      <soap:operation soapAction="http://tempuri.org/IOutlookService/SaveMailToXakt" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetCustomersByNumberOrNameLike">
      <soap:operation soapAction="http://tempuri.org/IOutlookService/GetCustomersByNumberOrNameLike" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="IOutlookService">
    <wsdl:port name="BasicHttpBinding_IOutlookService" binding="tns:BasicHttpBinding_IOutlookService">
      <soap:address location="https://services.aspnor.no/OutlookService.svc" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>