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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Intercept SOAP request/response to/from AIF service in C#

(0) ShareShare
ReportReport
Posted on by 1,040

Hi,

I am consuming AIF service in my .NET (C#) code. I want to intercept and log the soap request(xml) before sending it to AIF service? Below is the code on how I call the Create customer operation in AX customer service in C#: 

So How can I intercept the request? 

BasicHttpBinding_CustomerService oService = new BasicHttpBinding_CustomerService();
AxdCustomer oAxCustomer = new AxdCustomer();
oAxCustomer.Name = "TestName";
EntityKey[] oResponse = oService.create(oAxCustomer);


*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,882 Most Valuable Professional on at

    What exactly you're trying to achieve? Wouldn't AIF message logging or .NET tracing do the job?

  • Ali R Profile Picture
    1,040 on at

    I am trying to get the SOAP request xml format in .NET? Does .NET tracing do that?  

  • Suggested answer
    Martin Dráb Profile Picture
    237,882 Most Valuable Professional on at

    Yes, tracing can be set up to log entire messages. Read How To: Enable WCF Tracing and MessageLogging, for instance.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans