on 06-10-2015 2:54 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.