IncomingSMSMessage (SOAP)

Modified on Thu, 14 Oct 2010 12:41 by tormar — Categorized as: SOAP API

The IncomingSMSMessage object is used when receiving an incoming SMS message from the Gateway when using the SOAP API.


Properties

The attributes supported are defined as follows:

AttributeDescription
ReceiverNumberNumber that the message was sent to. This may be an international formatted number (with country prefix) or an operator specific short/long number (for example 2077)
SenderNumberNumber of the subscriber that sent the message. This will be an internationally formatted number (with country prefix).
TextThe message text received.
NetworkOptional. May contain information about the Network which the message is received through. This information can be ignored unless otherwise instructed by PSWinCom.
AddressOptional. This attribute may contain detailed information about the sender, such as name and address. The information is retrieved by the Gateway which is requesting such data from a phone directory service. The internal format is as follows:

Firstname;middlename;lastname;address;ZipCode;City;RegionNumber;CountyNumber

Sample result:

Kari;;Nordmann;Hjemmeveien 46;5211;BERGEN;12;1201

Additional values may be added at the end in the future.

This is a value added feature that requires an additional agreement with PSWinCom.
GSMPositionOptional. May contain geographical position information about the subscriber. This is a value added feature that requires an additional agreement with PSWinCom. See GSMPosition

Code

C# notation of the IncomingSMSMessage object:

public class IncomingSMSMessage
{
  public string ReceiverNumber;
  public string SenderNumber;
  public string Text;
  public string Network;
  public string Address;
 public GSMPosition Position;

  public IncomingSMSMessage()
  {
  }
}

XML

<IncomingSMSMessage>
  <ReceiverNumber>2077</ReceiverNumber>
  <SenderNumber>4792112233</SenderNumber>
  <Text>test incoming</Text>
  <Network></Network>
  <Address></Address>
  <Position>
    <Longitude></Longitude>
    <Lattitude></Lattitude>
    <Radius></Radius>
    <County></County>
    <Council></Council>
    <CouncilNumber></CouncilNumber>
    <Place></Place>
    <SubPlace></SubPlace>
    <ZipCode></ZipCode>
    <City></City>
  </Position>
</IncomingSMSMessage>

See also