Discovery.GetSubscriptions Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Get the Microsoft Office Live Small Business accounts that the user is a member of.

Namespace:  WebSvcDiscovery
Assembly:  OfficeLive (in OfficeLive.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/GetSubscriptions", RequestNamespace := "http://schemas.microsoft.com/officelive/soap/",  _
    ResponseNamespace := "http://schemas.microsoft.com/officelive/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetSubscriptions As String()
'Usage
Dim instance As Discovery
Dim returnValue As String()

returnValue = instance.GetSubscriptions()
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/GetSubscriptions", RequestNamespace = "http://schemas.microsoft.com/officelive/soap/", 
    ResponseNamespace = "http://schemas.microsoft.com/officelive/soap/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string[] GetSubscriptions()

Return Value

Type: []

Examples

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

POST /discoverywebsvc/discovery.asmx HTTP/1.1
Host: apis.officelive.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.microsoft.com/officelive/soap/GetSubscriptions"

<?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>
    <GetSubscriptions xmlns="http://schemas.microsoft.com/officelive/soap/" />
  </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>
    <GetSubscriptionsResponse xmlns="http://schemas.microsoft.com/officelive/soap/">
      <GetSubscriptionsResult>
        <string>string</string>
        <string>string</string>
      </GetSubscriptionsResult>
    </GetSubscriptionsResponse>
  </soap:Body>
</soap:Envelope>

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

POST /discoverywebsvc/discovery.asmx HTTP/1.1
Host: apis.officelive.com
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>
    <GetSubscriptions xmlns="http://schemas.microsoft.com/officelive/soap/" />
  </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>
    <GetSubscriptionsResponse xmlns="http://schemas.microsoft.com/officelive/soap/">
      <GetSubscriptionsResult>
        <string>string</string>
        <string>string</string>
      </GetSubscriptionsResult>
    </GetSubscriptionsResponse>
  </soap12:Body>
</soap12:Envelope>

See Also

Reference

Discovery Class

Discovery Members

WebSvcDiscovery Namespace