<?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://www.RecordsForLiving.com/Schemas/2008-10/HealthFrameWorks/PHRExchange_V1/" 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://www.RecordsForLiving.com/Schemas/2008-10/HealthFrameWorks/PHRExchange_V1/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
	<!--
        Note - this protocol/WSDL is also know as HealthFrameWorks Simple Transfer Protocol (HSTP V1)

		Note - the subjectName (subject of PHR) is the phrName - if specified, and if that is omitted or blank, the userName is presumed to be the subject.
	-->
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.RecordsForLiving.com/Schemas/2008-10/HealthFrameWorks/PHRExchange_V1/">
      <s:element name="UploadPHR">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="phrName" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="data" type="s:base64Binary" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="UploadPHRResponse">
        <s:complexType />
      </s:element>
      <s:element name="DownloadPHR">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="phrName" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="DownloadPHRResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="DownloadPHRResult" type="s:base64Binary" />
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="UploadPHRSoapIn">
    <wsdl:part name="parameters" element="tns:UploadPHR" />
  </wsdl:message>
  <wsdl:message name="UploadPHRSoapOut">
    <wsdl:part name="parameters" element="tns:UploadPHRResponse" />
  </wsdl:message>
  <wsdl:message name="DownloadPHRSoapIn">
    <wsdl:part name="parameters" element="tns:DownloadPHR" />
  </wsdl:message>
  <wsdl:message name="DownloadPHRSoapOut">
    <wsdl:part name="parameters" element="tns:DownloadPHRResponse" />
  </wsdl:message>
  <wsdl:portType name="ExchangePHRSoap">
    <wsdl:operation name="UploadPHR">
      <wsdl:input message="tns:UploadPHRSoapIn" />
      <wsdl:output message="tns:UploadPHRSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="DownloadPHR">
      <wsdl:input message="tns:DownloadPHRSoapIn" />
      <wsdl:output message="tns:DownloadPHRSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ExchangePHRSoap" type="tns:ExchangePHRSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="UploadPHR">
      <soap:operation soapAction="http://www.RecordsForLiving.com/Schemas/2008-10/HealthFrameWorks/PHRExchange_V1/UploadPHR" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="DownloadPHR">
      <soap:operation soapAction="http://www.RecordsForLiving.com/Schemas/2008-10/HealthFrameWorks/PHRExchange_V1/DownloadPHR" 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="ExchangePHRSoap12" type="tns:ExchangePHRSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="UploadPHR">
      <soap12:operation soapAction="http://www.RecordsForLiving.com/Schemas/2008-10/HealthFrameWorks/PHRExchange_V1/UploadPHR" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="DownloadPHR">
      <soap12:operation soapAction="http://www.RecordsForLiving.com/Schemas/2008-10/HealthFrameWorks/PHRExchange_V1/DownloadPHR" 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="ExchangePHR">
    <wsdl:port name="ExchangePHRSoap" binding="tns:ExchangePHRSoap">
      <soap:address location="http://Demo.HealthFrameWorks.com/" />
    </wsdl:port>
    <wsdl:port name="ExchangePHRSoap12" binding="tns:ExchangePHRSoap12">
      <soap12:address location="http://Demo.HealthFrameWorks.com/" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
