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 :
Finance | Project Operations, Human Resources, ...
Answered

Custom Outsource Web Service

(0) ShareShare
ReportReport
Posted on by 114

Hello everyone,

I have a custom web service for 3rd party application. That web service has a method for return event resutls. It is working on C#  very well but i coudun't type it on x++. I am open for any type of idea. 

This is the running C# example. When i run to ProjectCreate method it is returning message about event. (Success, Error") 

"string status =  client.ProjectCreate(token, projectCreateRequest).StatusMessage;"

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

    Please describe your problem. I guess that "i coudun't type it on x++" actually means that you can write your code, but it doesn't compile. If so, please show us your X++ code, tell us what the compiler complains about and where exaclty the problem occurs.

  • Emre Karakus Profile Picture
    114 on at

    Hello Martin,

    I gave incomplete information because I did not know how to express it exactly. Sorry about that. Yes you are right. It doesn't compile. This is my x++ code;

    3618.Capture.JPG

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

    First of all, split the statement to two, which will make the problem a bit clearer. For example:

    YourNamespace.SomeType updateResult;
    ...
    updateResult = axClient.ProjectUpdate(token, projectUpdateRequest);
    statusMessage = updateResult.StatusMessage;

    Compile it again and look at where is fails. It's also possible that it will work - the X compiler is always able to deal with chains of CLR calls.

  • Emre Karakus Profile Picture
    114 on at

    It is compiled and worked with your solution. Thank you so much.

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 758

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 655 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 496

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans