web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Showing error when passing data to web service from AX.

(0) ShareShare
ReportReport
Posted on by 1,010

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)
  • Community Member Profile Picture
    on at

    Did you add a reference for the webserives in AX?

  • Verified answer
    Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    Please use IntelliSense to review expected types of parameters and ensure yourself that your providing variables of exactly the same types. There is no type conversion during marshalling to .NET types.

  • Verified answer
    D.K.S. Profile Picture
    1,010 on at

    Hello Martin, It got solved. It was problem in webservices. It was not taking parameters having decimals.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans