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:
Attribute | Description |
ReceiverNumber | Number 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) |
SenderNumber | Number of the subscriber that sent the
message. This will be an internationally
formatted number (with country prefix). |
Text | The message text received. |
Network | Optional. May contain information about the
Network which the message is received through.
This information can be ignored unless
otherwise instructed by PSWinCom. |
Address | Optional. 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. |
GSMPosition | Optional. 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