RulePoint
- RulePoint 6.1
- All Products
PUT http://localhost:8080/rulepoint/api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01 Accept: application/json Content-Type: application/json Cookie: JSESSIONID=<VALID SESSION ID>
{ "name": "MyWebServiceResponder", "responderType": "webService", "connection": { "rel": "connection", "href": "api/projects/1/connections/e9bcc9ae-8e78-4b2c-a3f4-48352e817052", "title": "WsConnection1", "id": "e9bcc9ae-8e78-4b2c-a3f4-48352e817052" }, "valid": true, "config": { "serviceName": "HelloWorldServices", "operation": "hello", "inputParameters": "hello.name=Chris" }, "marshaller": { "marshallerClassname": null, "marshallerProperties": {}, "marshallerThreadsafe": false } }
{ "id": "776acc35-7a4a-47e1-8b9a-07f7d8bb6f01", "name": "MyWebServiceResponder", "valid": false, "self": { "rel": "self", "href": "api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01", "title": "MyWebServiceResponder", "id": "776acc35-7a4a-47e1-8b9a-07f7d8bb6f01" }, "actions": [ { "rel": "update", "href": "api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01", "type": "PUT", "title": "Edit" }, { "rel": "delete", "href": "api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01", "type": "DELETE", "title": "Delete" }, { "rel": "createResponse", "href": "api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01", "type": "DELETE", "title": "Create Response" } ], "acl": { "rel": "acl", "href": "api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01/acl", "title": "acl" }, "owningProject": { "rel": "owningProject", "href": "api/projects/1", "title": "Default Project", "id": "1" }, "type": "responders", "lastModifiedDate": "2013-09-13T17:06:27+05:30", "createDate": "2013-09-13T17:05:02+05:30", "createdBy": "Administrator", "predefined": false, "deployable": true, "deployState": "DRAFT", "force": false, "dtError": "There are no responses associated with this Responder", "responderType": "webService", "responderTypeDisplayName": "Web Service Responder", "config": { "operation": "hello", "inputParameters": "hello.name=Chris", "serviceName": "HelloWorldServices" }, "connection": { "rel": "connection", "href": "api/projects/1/connections/e9bcc9ae-8e78-4b2c-a3f4-48352e817052", "title": "WsConnection1", "id": "e9bcc9ae-8e78-4b2c-a3f4-48352e817052" }, "marshaller": { "marshallerClassname": null, "marshallerProperties": {}, "marshallerThreadsafe": false } }
PUT http://localhost:8080/rulepoint/api/projects/1/responders/ec9ba07c-7ac1-48b0-8b7d-ffcd35c1f8f7 Accept: application/xml Content-Type: application/xml Cookie: JSESSIONID=<VALID SESSION ID>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <responder> <name>MyWebServiceResponder</name> <type>responders</type> <config> <entry> <key>operation</key> <value>hello</value> </entry> <entry> <key>inputParameters</key> <value>hello.name=Chris</value> </entry> <entry> <key>serviceName</key> <value>HelloWorldServices</value> </entry> </config> <connection> <href>api/projects/1/connections/e9bcc9ae-8e78-4b2c-a3f4-48352e817052</href> <id>e9bcc9ae-8e78-4b2c-a3f4-48352e817052</id> <rel>connection</rel> <title>WsConnection1</title> </connection> <marshaller> <marshallerProperties/> <marshallerThreadsafe>false</marshallerThreadsafe> </marshaller> <responderType>webService</responderType> </responder>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <responder> <acl> <href>api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01/acl</href> <rel>acl</rel> <title>acl</title> </acl> <actions> <action> <href>api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01</href> <rel>update</rel> <title>Edit</title> <type>PUT</type> </action> <action> <href>api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01</href> <rel>delete</rel> <title>Delete</title> <type>DELETE</type> </action> <action> <href>api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01</href> <rel>createResponse</rel> <title>Create Response</title> <type>DELETE</type> </action> </actions> <id>776acc35-7a4a-47e1-8b9a-07f7d8bb6f01</id> <links/> <name>wsResponder1</name> <owningProject> <href>api/projects/1</href> <id>1</id> <rel>owningProject</rel> <title>Default Project</title> </owningProject> <self> <href>api/projects/1/responders/776acc35-7a4a-47e1-8b9a-07f7d8bb6f01</href> <id>776acc35-7a4a-47e1-8b9a-07f7d8bb6f01</id> <rel>self</rel> <title>wsResponder1</title> </self> <valid>false</valid> <createDate/> <createdBy>Administrator</createdBy> <deployState>DRAFT</deployState> <deployable>true</deployable> <dtError>There are no responses associated with this Responder</dtError> <force>false</force> <lastModifiedDate/> <predefined>false</predefined> <type>responders</type> <config> <entry> <key>operation</key> <value>hello</value> </entry> <entry> <key>inputParameters</key> <value>hello.name=Chris</value> </entry> <entry> <key>serviceName</key> <value>HelloWorldServices</value> </entry> </config> <connection> <href>api/projects/1/connections/e9bcc9ae-8e78-4b2c-a3f4-48352e817052</href> <id>e9bcc9ae-8e78-4b2c-a3f4-48352e817052</id> <rel>connection</rel> <title>WsConnection1</title> </connection> <marshaller> <marshallerProperties/> <marshallerThreadsafe>false</marshallerThreadsafe> </marshaller> <responderType>webService</responderType> <responderTypeDisplayName>Web Service Responder</responderTypeDisplayName> <responses /> <topics /> </responder>