Search Engine: Elastic

Article ID: 111518, created on Jun 23, 2011, last review on Jan 11, 2017

  • Applies to:
  • Operations Automation 7.0
  • Operations Automation 6.0
  • Operations Automation 5.4

Resolution

OA works with Microsoft Office 365 servers using MOSI Gateway software, which is working as a web application on the Windows Gateway Host.

To test the connectivity between MOSI Gateway and Microsoft Office 365 servers, one may use the curl utility on any server in the OA infrastructure connected to the Internet. Curl utility for Windows could be downloaded from the following location: http://curl.haxx.se/download.html

Below is an example of the request and correct response:

  • For APS 1.2:

    # echo '{}' | curl -H "X-MOSI-Gateway-Method: testConnectivity" -H "X-MOSI-Gateway-Required-Version: 1.0" -D - -d @- -X POST <MOSI_GATEWAY_URL>
    HTTP/1.1 200 OK
    Cache-Control: private
    Server: Microsoft-IIS/7.5
    Set-Cookie: ASP.NET_SessionId=nocevu55eamhmk55uexftt45; path=/; HttpOnly
    X-AspNet-Version: 2.0.50727
    X-Powered-By: ASP.NET
    Date: Thu, 23 Jun 2011 08:55:10 GMT
    Content-Length: 0
    

    Replace <MOSI_GATEWAY_URL> in the command above with the actual URL of MOSI Gateway installed in the OA-managed environment, it may look like this - https://office365gateway01.hosting.local/Office365Gateway01/HttpEndpoint.aspx.

  • For APS 2.0 (Syndication Partner Scenario only):

    # curl -H "X-MOSI-Gateway-Method: testConnectivity" -H "X-MOSI-Gateway-Required-Version: 1.0" -k -D - -d - -X POST GATEWAY_URL
    

    If the call reports that the callback was not received, collect the XML payload returned and contact the Microsoft support.

MOSI Gateway URL can be found in the OA Provider Control Panel in properties of the resource type created for the APS application Office 365 for APS 1.2:

  • Log into the POA Provider Control Panel
  • Go to Top > Service Director > Application Manager > Applications
  • Click on the Office 365 application
  • Switch to the Resource Types tab
  • Click on the resource type based on the resource class Application
  • Switch to the Activation Parameters tab
  • Switch to the Global Settings sub-tab
  • Get the value of the parameter URL for MOSI Connector

For APS 2.0, MOSI Gateway URL can be found in the OA Provider Control Panel in General parameters of the application instance:

  • Log into the POA Provider Control Panel
  • Go to Top > Service Director > Application Manager > Applications
  • Click on the Office 365 application
  • Switch to Instances
  • Click on the Instance
  • Switch to General tab
  • Get the value of the parameter Application API end-point URI

Once the script returns the correct response (HTTP status 200 OK), you can watch the results of the communication to the MOSI endpoints in the file OFFICE365GATEWAY_DIR\APP_Data\XMLPayload\Customer-Pings file, where OFFICE365GATEWAY_DIR is the directory of the Office 365 Gateway. This file contains the synchronous part of the MOSI Ping (a call to the IStatus.Ping() method) exchange. The asynchronous part of the MOSI Ping response will be written to the OFFICE365GATEWAY_DIR\APP_Data\XMLPayload\Callbacks file.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 ac82ce33439a9c1feec4ff4f2f638899 2554725ed606193dd9bbce21365bed4e e12cea1d47a3125d335d68e6d4e15e07 0871c0b47b3b86ae3b1af4c2942cd0ce 1941880841f714e458ae4dc3d9f3062d 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF