Hello to all,
I am consuming a Webservice. by which i am sending data from AX to CRM. When i am passing data to CreateBill method by parameter through variable or from Table Field, it is Showing this error "Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeException: CreateBill is not a member of CRM_WebService1SoapClient."
but when i am directly passing values to method { For Example : CreateBill("Dhe",1,"ZAZA2",5,"ZAZACu");} it is working fine.
Kindly help Please.
The Code is as Below.
static void Job9(Args _args)
{
ClrObject clientType;
AX_CRM.ServiceReference1.CRM_WebService1SoapClient _client;
str ResultSet;
System.Exception ex;
str CustName="Anandita";
real BillAmount=4587.25;
str SalesID="ANDN98765";
real CurrentReading=458.25;
str CustAccount="ZAZA77766";
;
try
{
//Construct and configure the service client by retrieving the X++ type for the service and //using the AifUtil class Retrieve the X++ type for the service client object.
clientType = CLRInterop::getType("AX_CRM.ServiceReference1.CRM_WebService1SoapClient");
// Use the AifUtil class to create an instance of the service client object.
_client = AifUtil::CreateServiceClient(clientType);
ResultSet = _client.CreateBill(CustName,BillAmount,SalesID,CurrentReading,CustAccount);
info(ResultSet);
}
catch(Exception::CLRError)
{
ex = CLRInterop::getLastException();
info(ex.ToString());
}
}
*This post is locked for comments
I have the same question (0)