Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

AddPackageToUser( username, packageID, chargeCreditCard, IsChildUser ) : Integer

Since: EngageIP v25.2

Assigns a package to a user, returns the ID of the User Package record or throws exception if the addition of the package fails or if the user or package does not exist.

NOTE: The User Package will not include any Optional Services that might be configured on the Package.

Parameters:

  • username (String) - The username of the user in which to add the package.  An exception will be thrown if the username does not exist.

  • packageID (Integer)  - The ID of the package to add to the user.

  • chargeCreditCard (Boolean) - Indicates if the credit card should be billed immediately.

  • IsChildUser (Boolean) - Indicates if the user is a child account.

Returns:

The ID of the new User Package added.

Possible Exceptions:

  • INVALID USERNAME

  • INVALID PACKAGE

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 /adminportal/webservice.asmx HTTP/1.1
Host: demo.logisense.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:Header>
    <AuthHeader xmlns="Logisense_EngageIP">
      <Username>string</Username>
      <Password>string</Password>
    </AuthHeader>
  </soap12:Header>
  <soap12:Body>
    <AddPackageToUser xmlns="Logisense_EngageIP">
      <username>string</username>
      <packageID>int</packageID>
      <chargeCreditCard>boolean</chargeCreditCard>
      <IsChildUser>boolean</IsChildUser>
    </AddPackageToUser>
  </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>
    <AddPackageToUserResponse xmlns="Logisense_EngageIP">
      <AddPackageToUserResult>int</AddPackageToUserResult>
    </AddPackageToUserResponse>
  </soap12:Body>
</soap12:Envelope>


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 /adminportal/webservice.asmx HTTP/1.1
Host: demo.logisense.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "Logisense_EngageIP/AddPackageToUser"

<?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>
    <AuthHeader xmlns="Logisense_EngageIP">
      <Username>string</Username>
      <Password>string</Password>
    </AuthHeader>
  </soap:Header>
  <soap:Body>
    <AddPackageToUser xmlns="Logisense_EngageIP">
      <username>string</username>
      <packageID>int</packageID>
      <chargeCreditCard>boolean</chargeCreditCard>
      <IsChildUser>boolean</IsChildUser>
    </AddPackageToUser>
  </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>
    <AddPackageToUserResponse xmlns="Logisense_EngageIP">
      <AddPackageToUserResult>int</AddPackageToUserResult>
    </AddPackageToUserResponse>
  </soap:Body>
</soap:Envelope>
  • No labels