Support Article
Service REST deployment
SA-3778
Summary
You are creating a Service-REST rule. In the linked Service Package record, trying to create a WSDL file fails with the below error. is there a way to generate a WSDL file for a REST service?
Error Messages
Unexpected Error: Could not determine status of REST deployment
Steps to Reproduce
1. Create a Service Package.
2. Create a Service-REST selecting package as above created package.
3. In Service Package -> Methods tabs , select Rule-Service-REST to generate the service method.
4. in Service Package -> Deployment tab, click "Generate Deployment Files" after entering deployment type and service class.
Resolution
There are no WSDL files for REST services. WSDL files are only for SOAP services. REST only uses the standard HTTP methods, so it does not need the level of detail WSDL files provide.
You will need to set up your REST client manually. You can invoke a Service-REST rule as per the documentation on the PDN:
https://pdn.pega.com/sites/default/files/help_v71/procomhelpmain.htm#rule-/rule-service-/rule-service-rest/related.htm .
The syntax is http://servername:portnumber/contextroot/PRRestService/packageName/className/methodName (note that it's PRRestService and not PRServlet. Contextroot is "prweb" unless you've changed it).
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.