I'm working for a customer who provide web services. But they do not provide WSDL URL so I can call automaticly on the service and see what the service include.
Most projects that I have worked with have live WSDL URL like http://www.customs.com/CSServices.wsdl - by addint Service Reference in VS C# Project I can see all that service include. In that chases it's all OK to work with it in C#
But, the provider just send me an two XSD Schemas who is HUGE (about 23.000 elements) :(
Here below I describe some demonstration from MS book 80416 about AIF Services in AX. and I think I need to do something like this.
This project:
I create a Service and ServiceGroup and Deploy as an inbound port and that is activated and OK
- I create AX class with only one string input parameter
- I create Service named Greeting.
- And also ServiceGroup named GreetingGroup
- Implement the service Greeting into the GreetingGroup ServiceGroup
- Then Right-Click the ServiceGroup and choose Deploy Service Group
- I confirm the activation and working InboundPort - so that is OK.
- I create VS C# Console Application.
- Inport Service Reference from the InboundPort and paste the WSDL URL http://AX2012R2A:8101/DynamicsAx/Services/GreetingsGroup
- And I just write some code to generate the string in the AX Class and get some response from Console Window in C# Project.
-But the XSD files are about 23.000 element total - so there is a hell lot of work to generate that.
I need to generate all the element in the XSD into AX Classes so I can work with them in AX, put the variables (who is generated from XSD element) into UserInterfaces or Report.
The provider only represent one URL like https://www.cusoms.com/lib2b.dll?ProcessXML where ProcessXML will take all functions from these XSD files and process them in and out (sending and receiving).
Is some automatically way to create necessary classes and other objects against the XSD files?
In Document QueryWizard I can't see any options to import XSD to generate the classes.
What can I do? Do I have to create the classes manually?