Create a custom REST service based on SOAP service
I'm looking to create a custom REST service that performs the same function as my current SOAP service in Windchill 12, which retrieves the Windchill version. Can anyone provide guidance on how to achieve this.
Here are some details :
- This link below shows the steps to create a custom REST service in Windchill.
- My code is a JSP-based SOAP service that retrieves the version of Windchill installed. It imports necessary Java classes, creates an output group, and attempts to fetch the Windchill version using WindchillVersion.getInstalledAssemblyReleaseIdFor("wnc"). If successful, it adds the version string to an element and then to the output group. The final part uses an InfoEngine webject to return this group as the SOAP response. This service ensures that the Windchill version is retrieved and returned in a structured format.
I attempted to create one REST service and tested it using Postman, but I encountered an error. The error message stated :
"Failed to get the search results using Windchill search service: Info resource not found for wt.util.version.WindchillVersion."

This indicates that the REST service was unable to locate the necessary Windchill version resource, causing the operation to fail.

