cancel
Showing results for 
Search instead for 
Did you mean: 

Call a webservice Operation with a list element (ComplexeType)

Former Member
0 Kudos

Hi,

I consume a webservice in ByD with ABSL.

There is no Problem to access "wfName" or "customerID" with ABSL:

here my sample:

Import ABSL;

var Request:Library::BitFlowBalanceService.invoke.request;

Request.parameters.wfName = "wert1";

var Response = Library::BitFlowBalanceService.invoke(Request, "", "BitFlowBalanceService");

The problem is to set balanceOrderDtos.

balanceOrderDtos is a List!

How can I fill a list?

How can I "add" elements with complexe objecttype (in this case BitFlowBalanceServicebalanceOrderDtosComplex)?

I tried to set elem1 (see below) but type BitFlowBalanceServicebalanceOrderDtosComplex is unknown.

var elem1:elemtsof BitFlowBalanceServicebalanceOrderDtosComplex;

Request.parameters.Input.orderDto.orders.balanceOrderDtos.Add(elem1)

Any idea?

Kay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Kay,

Here is an example of using Customer Invoice web service from ABSL.

Declare two variables for Root and Item Level elements.

var customerinvRoot : CustomerInvoiceRequestInteg.MaintainBundle.Request.CustomerInvoiceRequestBundleMaintainRequest_sync.CustomerInvoiceRequest;

var customerinvItem : CustomerInvoiceRequestInteg.MaintainBundle.Request.CustomerInvoiceRequestBundleMaintainRequest_sync.CustomerInvoiceRequest.Item;

After you assign the values for the elements for both the nodes add the Item to the Root as shown below:

customerinvRoot.Item.Add(customerinvItem)

Hope this helps.

Thanks & Regards,

Meghna

Former Member
0 Kudos

Hi Meghna,

this is the same approach then I used.

CustomerInvoiceRequestInteg can be used if you import AP.CustomerInvoicingGlobal;

In my case I have a "external" wsdl with its own defined types (e.g. BitFlowBalanceServicebalanceOrderDtosComplex)

How can I use none ByD Types?

Is there a possibility to import types from WSDL?

Thanks & Regards,

Kay