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, ...
Unanswered

Wcf and custom services

(0) ShareShare
ReportReport
Posted on by 1,552

If i am right there are w two types of custom services (soap service and json service)

1. Is json service the same as rest service? 

2. When i write code for a a custom service, where in my code do i refer if this is json or soap. Or in another words which part of code i write tells that this service that i created is json or soap?

3. What are wcf services? And how are they related to custom services? 

**Please i don't need links because i read alot and i got a little bit lost so  i just need someone to explain to me in simple words. 

I have the same question (0)
  • Blue Wang Profile Picture
    on at

    Hi Junior,

    No,Json service is not same as REST service.

    REST (Representational State Transfer) – messages can be transfeered in JSON (Java script object notation), XML or even a text format. Thus making it light weight.

    JSON stands for JavaScript Object Notation. It’s an easy-to-parse and lightweight data-interchange format.

     

    WCF  service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application,such as AOS is the WCF service host for Microsoft Dynamics AX 2012 services that are exposed to users and applications on an intranet.

    You can consume web services by adding new class libraries

  • WillWU Profile Picture
    22,361 on at

    Hi juniorAX,

    1, Rest is not a framework or specification ,but a architectural style and design constraints to reduce the complexity of development.Strictly speaking, they're not the same, but if you build a REST service, clients will be accessing your service by JSON. JSON-based service  is a Restful service.

    2, After creating a service and adding it to a service group and building an application, all service groups under the AOT \ service group node will be automatically deployed in D365

      The SOAP endpoint is at  https : //host_uri/soap/services/service_group_name

      The JSON Endpoint is at  https : //host_uri/api/services/service_group_name/service_group_service_name/operation_name.

    3, WCF is a frameworks and technologies that allow programmers to create HTTP services, it is part of the .NET framework.

        WFC is SOAP-based and uses standard XML schema which can be a little slower.

    Hope this helps.

  • junior AX Profile Picture
    1,552 on at

    Hi,

    so from what i understood:

    1) when i create a service and service group in AOT. If I create a c# project and add service reference using the SOAP endpoint in the address then write code to access these methods using client,context etc... Then it is considered a soap based service. Is the add service reference considered wsdl?

    2) If i put the json endpoint instead of soap in the add service reference, then i should write code in the same way as i did for soap based? is there anything different? and by that it is considered json based service?

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    1) If you add a reference to the SOAP endpoint, then yes, you're using a SOAP service. WSDL is a language used to describe web services; it's not the same thing as a reference in Visual Studio.

    2) No, you can't use REST services in the same way as SOAP, because there isn't all the infrastructure that SOAP provides.

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