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.

Internal content