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 :
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
    237,795 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
    237,795 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans