In ABL I would like to define a class SXCustomerRequest, instantiate it and then call WS BlackboxServiceClient's method SendCustomer. The goal is to have the client and web service use the same class.
Here's the .NET/C# code that I would like to translate to ABL:
using System.Runtime.Serialization;
using BlackboxService.MessageBase;
using BlackboxService.Criteria;
using CIC_Business_Objects;
namespace BlackboxService.Messages
{
/// <summary>
/// Represents a customer request message from client.
/// </summary>
[DataContract(Namespace = "
http://www.cicgo.com/types/")]
public class SXCustomerRequest
{
/// <summary>
/// Selection criteria
/// </summary>
[DataMember]
public int Cono;
[DataMember]
public int Custno;
[DataMember]
public string Shiptono;
}
}
SXCustomerRequest request = new SXCustomerRequest();
request.Cono = 1;
request.Custno = 1234;
request.Shiptono = "01";
BlackboxServiceClient.SendCustomer(request);
Do I have to use SAX writer to create the XML for "request" ?
I realize I have to CREATE SERVER, CONNECT...
Can I pass "request" as an input parameter when I call the WS's method?