I have a case and it needs to be instantiated through a XML based REST service. As we dont have a wizard for service-REST, I have to create the rules manually. Is there any easy way to create XML stream and parse rules? Work class have many properties of page mode. I was trying to execute the service wizard for service-soap to generate the xml stream and parse rules but it dint generate the rules for any page property.
Also how should my request/response classes for this. In my workclass, i have lot of properties and many properties of page mode. Should I create separate service class, request class and response class for this?
For example: Org-Div-App-Work-ReturnAuthorization is my class name which has many props. Request should contain all these props and the response contains the caseID, status and errors if any. Are the below classes correct? Or should i do it differently?
Org-Div-App-Int-CreateReturnAuth (service class)
Can someone please guide on this?
***Edited by Moderator Marissa to update categories***
I would suggest you to define the definitions of request and response structures first. You shall use XML tools such as Oxygen Editor, XMLSpy and so on, to work on the XSD parts of request and response xmls. Once you are satisfied with the structure, you would need to import the XSDs using Pega Wizard (Designer Studio --> Integration --> Connectors _-> Connector and Metadata Wizard -- Select 'Purpose' as 'Generate Data Mapping Rules' and chooose the right base class (may be in your example it should be as 'Org-Div-App-Int'). This would help you on creating Classes, Data Model, DTs, Parser rules and Stream rules, excluding the service rule(s) and service Package instance.