So I built a class object to be able to consume in a class in D365.
namespace ExternalWebServices
{
public class GetBDFFund
{
public string getXXXFunds(String billto, ref decimal CoopFunds, ref decimal AMFFunds, ref string strError)
{
string error = string.Empty;
decimal AMFFFunds = 0;
string pass = "ft89UL1aa7P4";
// BasicHttpBinding httpBinding = new BasicHttpBinding();
//EndpointAddress endPoint = new EndpointAddress(@"http://XXXdev.channel-fusion.com/asmx/FundByDealerNumber.asmx");
var soapClient = new XXXSoap.FundByDealerNumberSoapClient();
var usdToinr = soapClient.AvailableFunds(billto.ToString(), ref CoopFunds, ref AMFFFunds, ref strError, pass);
return usdToinr.ToString();
}
}
}
In the D365 class I am getting an "}" expected at the list reference. I tried using just a simple var and it was giving me the same error.
using ExternalWebServices;
internal final class ConsumeXXXFunds
{
ExternalWebServices.GetBDFFund getXXXFunds = new ExternalWebServices.GetBDFFund();
list funds = new strlist(Types::String);
funds(0) = getXXXFunds.getXXXFunds("3333");
Info(strFmt("%1", Funds);
}