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)

Dynamics AX 2012 Custom service XSD

(0) ShareShare
ReportReport
Posted on by 545

Hi,

I create my custom service by using contractor classes and by creating service class. New service has been created and deployed. The question is, how to get xsd schema for such kind of service? Is it possible to get XSD by using WSDL url from created port?

Thanks

*This post is locked for comments

I have the same question (0)
  • Bilal Issa Profile Picture
    4,370 on at

    Hi ,

    please try to click data policy on inbound port, and then view schema

    Regards,

    Bilal

  • MarisR Profile Picture
    545 on at

    Hi.

    As it is deployed via ServiceGroup it is like "basic" port and there are no Data policy available. I tried to create inbound port manually like enhanced port, but fields and schema in Data policy were empty. I don't know, should there be something by using contractor classes, it seems it works different than standard AIF document services with AxdQuery and AxdClass.

  • Suggested answer
    Aijaz Profile Picture
    on at

    Hi AxUser,

    Please check AxService form in AOT open it and search your service on this form.

    AOT--->Forms--->AxService

    step 1: choose your service and click on service operation button here you found your service methods then Select your service method

    AxService--->Click service operation button

    Step 2:  Child form will be open after clicking button

    service operation--->Click Parameter schema

    Step 3: on Parameter schema  form---->View schema button click it here you have schema of your required method

    Regards,

  • MarisR Profile Picture
    545 on at

    Hi,

    Thanks for reply.

    I tried how you described, but I got an error: "There is no schema associated with the specified class."  It seems, Ax tried to find document class, but by creating own custom service, document class is not created and used.

  • Anand Menon Profile Picture
    30 on at

    Hi,

    Did u done with this, I also have the same issue, please let me know if you are through with this..

  • MarisR Profile Picture
    545 on at

    Hi,

    Here are steps to generate xsd. files

    1.	Open Command Prompt.  (Go to Programs > Run > type ‘cmd’ > Click ‘OK’.
    
    2.	Change Folder location. Type command as ;-
    
    cd C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools
    
    3.	Type command as follows ;- 
    
    svcutil.exe /t:metadata /<folder location where you want to generate the schemas> <service URL> 
                    
    and ‘Enter’
    

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