The GetCodes web service lets you obtain codes.
Parameter |
Type |
Description |
Sample Values |
|---|---|---|---|
Subsystem |
String |
The subsystem to which your activity belongs. |
INV, MTG |
Type |
String |
The system type held in the system types and codes table. |
DELIMITER, ENCLOSED_BY |
Option1 |
String |
An optional text field for entering any additional, not required, text. |
Sample text |
Option2 |
String |
An optional text field for entering any additional, not required, text. |
Sample text |
Option3 |
String |
An optional text field for entering any additional, not required, text. |
Sample text |
Option4 |
String |
An optional text field for entering any additional, not required, text. |
Sample text |
Option5 |
String |
An optional text field for entering any additional, not required, text. |
Sample text |
Option6 |
String |
An optional text field for entering any additional, not required, text. |
Sample text |
Placeholders
(shown in bold) need to be replaced
with actual values.
POST /simplewebservice/Default.asmx HTTP/1.1
Host: dd-ebusiness
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://personify.tmaresources.com/GetCodes"
<?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>
<GetCodes xmlns="http://personify.tmaresources.com/">
<Token>string</Token>
<Subsystem>string</Subsystem>
<Type>string</Type>
<Option1>string</Option1>
<Option2>string</Option2>
<Option3>string</Option3>
<Option4>string</Option4>
<Option5>string</Option5>
<Option6>string</Option6>
</GetCodes>
</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>
<GetCodesResponse xmlns="http://personify.tmaresources.com/">
<GetCodesResult>
<GetCodesArray>
<ClassGetCodes>
<App_Code>string</App_Code>
<Option_1>string</Option_1>
<Option_2>string</Option_2>
<Option_3>string</Option_3>
<Option_4>string</Option_4>
<Option_5>string</Option_5>
<Option_6>string</Option_6>
<SystemFlag>boolean</SystemFlag>
</ClassGetCodes>
<ClassGetCodes>
<App_Code>string</App_Code>
<Option_1>string</Option_1>
<Option_2>string</Option_2>
<Option_3>string</Option_3>
<Option_4>string</Option_4>
<Option_5>string</Option_5>
<Option_6>string</Option_6>
<SystemFlag>boolean</SystemFlag>
</ClassGetCodes>
</GetCodesArray>
<ErrorMessage>string</ErrorMessage>
</GetCodesResult>
</GetCodesResponse>
</soap:Body>
</soap:Envelope>
<TestMethod()> Public Sub GetCodes1()
' true test
Dim ws As New SimpleWebService.SimpleWebService
Dim Token As String = ws.Connect(“OrgId”, “OrgUnitId”, "E-Commerce", "E-Commerce Application", "Web-site", "7.0.0.0", "TIMSS7 on Skunkworks", "admin", "admin")
Dim aResultGetCodes As SimpleWebService.ResultGetCodes = ws.GetCodes(Token, "APP", "ACCOUNT_FUNCTION", Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)
Assert.IsTrue(aResultGetCodes.ErrorMessage = Nothing AndAlso aResultGetCodes.GetCodesArray.Length > 0, aResultGetCodes.ErrorMessage)
End Sub