title | description | author | ms.author | ms.topic | ms.date | ms.reviewer | audience | ms.assetid | ms.search.region | ms.search.validFrom | ms.search.form | ms.dyn365.ops.version |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Custom service development |
Learn about how to create a custom service including an oultine and key changes of SOAP-based custom services. |
sericks007 |
sericks |
article |
02/07/2020 |
johnmichalak |
Developer |
5ff7fd93-1bb8-4883-9cca-c8c42ddc1746 |
Global |
2016-02-28 |
AX 7.0.0 |
[!include banner]
You can develop custom services for finance and operations. When a developer writes a custom service under a service group, the service group is always deployed on two endpoints:
- SOAP endpoint
- JSON endpoint
SOAP-based services remain the same as they were in Dynamics AX 2012.
Code examples for consuming custom services using SOAP are available in the Microsoft Dynamics AX Integration GitHub repository.
- All the service groups under the AOTService group node are automatically deployed.
- All services that must be deployed must be part of a service group.
Example endpoint for a dev environment
https://usnconeboxax1aos.cloud.onebox.dynamics.com/soap/services/UserSessionService?wsdl
Example endpoint for a non-dev environment
https://<baseurl>/soap/services/UserSessionService?wsdl
For more information about custom services, see:
- Using Custom Services [AX 2012] (TechNet)
- Walkthrough: Exposing an X++ Class as a Data Contract (TechNet)
This feature enables X++ classes to be consumed as JSON services. In other words, the return data set is in JSON format. JSON, which stands for JavaScript Object Notation, is a compact, lightweight format that is commonly used communicate data between the client and the server.
The JSON Endpoint is at https://host_uri/api/services/service_group_name/service_group_service_name/operation_name
.
Example
https://usnconeboxax1aos.cloud.onebox.dynamics.com/api/services/UserSessionService/AifUserSessionService/GetUserSessionInfo
Code examples for consuming JSON services are available in the Microsoft Dynamics AX Integration GitHub repository.
[!INCLUDEfooter-include]