Service


Click here for a complete list of operations.

SendMessage

To Send Message to Staff

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /PatientPortalWebService/Service.asmx HTTP/1.1
Host: pa-portalws.trimed.cloud
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/SendMessage"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <AuthSoapHeader xmlns="http://tempuri.org/">
      <Key>string</Key>
      <EnterpriseId>int</EnterpriseId>
      <CompanyId>int</CompanyId>
    </AuthSoapHeader>
  </soap:Header>
  <soap:Body>
    <SendMessage xmlns="http://tempuri.org/">
      <_from_staffid>long</_from_staffid>
      <_priority>string</_priority>
      <_action_type>string</_action_type>
      <_message>string</_message>
      <_route_datetime>string</_route_datetime>
      <_generic_item_id>string</_generic_item_id>
      <_item_type_id>string</_item_type_id>
      <_patientprofileid>long</_patientprofileid>
      <_from_patientprofileId>string</_from_patientprofileId>
      <_to_patientprofileId>string</_to_patientprofileId>
      <_item_description>string</_item_description>
      <_document_Id>string</_document_Id>
      <_doctor_Id>string</_doctor_Id>
      <_dept_Id>string</_dept_Id>
      <_msgTo>
        <long>long</long>
        <long>long</long>
      </_msgTo>
      <_msgToNames>
        <string>string</string>
        <string>string</string>
      </_msgToNames>
      <_ErrorMessage>string</_ErrorMessage>
      <lEnterPriseID>long</lEnterPriseID>
    </SendMessage>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SendMessageResponse xmlns="http://tempuri.org/">
      <SendMessageResult>long</SendMessageResult>
      <_ErrorMessage>string</_ErrorMessage>
    </SendMessageResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /PatientPortalWebService/Service.asmx HTTP/1.1
Host: pa-portalws.trimed.cloud
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <AuthSoapHeader xmlns="http://tempuri.org/">
      <Key>string</Key>
      <EnterpriseId>int</EnterpriseId>
      <CompanyId>int</CompanyId>
    </AuthSoapHeader>
  </soap12:Header>
  <soap12:Body>
    <SendMessage xmlns="http://tempuri.org/">
      <_from_staffid>long</_from_staffid>
      <_priority>string</_priority>
      <_action_type>string</_action_type>
      <_message>string</_message>
      <_route_datetime>string</_route_datetime>
      <_generic_item_id>string</_generic_item_id>
      <_item_type_id>string</_item_type_id>
      <_patientprofileid>long</_patientprofileid>
      <_from_patientprofileId>string</_from_patientprofileId>
      <_to_patientprofileId>string</_to_patientprofileId>
      <_item_description>string</_item_description>
      <_document_Id>string</_document_Id>
      <_doctor_Id>string</_doctor_Id>
      <_dept_Id>string</_dept_Id>
      <_msgTo>
        <long>long</long>
        <long>long</long>
      </_msgTo>
      <_msgToNames>
        <string>string</string>
        <string>string</string>
      </_msgToNames>
      <_ErrorMessage>string</_ErrorMessage>
      <lEnterPriseID>long</lEnterPriseID>
    </SendMessage>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SendMessageResponse xmlns="http://tempuri.org/">
      <SendMessageResult>long</SendMessageResult>
      <_ErrorMessage>string</_ErrorMessage>
    </SendMessageResponse>
  </soap12:Body>
</soap12:Envelope>