Rollbase and WebServices

Posted by johan.pouget on 23-May-2014 03:00

Hi,


Possible Rollbase Private Cloud subscribe to a WebService, in C# for exemple ? If it's true, how ?

I want Rollbase to call method for an external WebService.


Thanks

Posted by Bill Wood on 23-May-2014 05:47

There is a Trigger Type called “Send HTTP Post”.   This Trigger sends an HTTP POST request to a specified URL. It can be used to send a SOAP message to your Web Service Endpoint – the fact that it is implemented in C# is immaterial.  As long as it is a standard Web Service (though this Trigger can also work with non-soap. 
 
To use this Trigger, you need to specify:

·        A Document Template to generate the request with an .XML extension

·        The target URL to send the HTTP POST request to

·        Encoding for selected template: XML, URL, or other

·        The Content Type (text/xml by default)

 
You can immediately debug your Trigger by selecting a record to debug. This sends a generated HTTP POST request to the specified URL and displays results in a popup window.
 
There is a whitepaper on Community that shows the steps and how to do this at  https://community.progress.com/technicalusers/m/technicalusersgallery/56.aspx.   The whitepaper is about Accessing Corticon Business Rules in Rollbase, but the way this is done is with Web Services, so the steps are the same (just the SOAP and Endpoint would differ.  But it gives the full ‘blow-by-blow’ for how to accomplish calling a WebService from Rollbase.
 

All Replies

Posted by Bill Wood on 23-May-2014 04:25

Rollbase has the capability to call both SOAP and REST web services, but you asked if it could "subscribe" to a web service.

Can you explain the subscription process?

Posted by johan.pouget on 23-May-2014 05:08

I create a WebService in C#.

I would like Rollbase access to this WS when a triggers is called.

It's possible ?

Posted by Bill Wood on 23-May-2014 05:47

There is a Trigger Type called “Send HTTP Post”.   This Trigger sends an HTTP POST request to a specified URL. It can be used to send a SOAP message to your Web Service Endpoint – the fact that it is implemented in C# is immaterial.  As long as it is a standard Web Service (though this Trigger can also work with non-soap. 
 
To use this Trigger, you need to specify:

·        A Document Template to generate the request with an .XML extension

·        The target URL to send the HTTP POST request to

·        Encoding for selected template: XML, URL, or other

·        The Content Type (text/xml by default)

 
You can immediately debug your Trigger by selecting a record to debug. This sends a generated HTTP POST request to the specified URL and displays results in a popup window.
 
There is a whitepaper on Community that shows the steps and how to do this at  https://community.progress.com/technicalusers/m/technicalusersgallery/56.aspx.   The whitepaper is about Accessing Corticon Business Rules in Rollbase, but the way this is done is with Web Services, so the steps are the same (just the SOAP and Endpoint would differ.  But it gives the full ‘blow-by-blow’ for how to accomplish calling a WebService from Rollbase.
 

Posted by johan.pouget on 23-May-2014 09:22

Tanks you very much ! :)

This thread is closed