Hi Zahid, On Sun, Jan 30, 2011 at 1:01 AM, Zahid Munir <[email protected]> wrote:
> Hi, > > We're are currently trying to use Synapse 2.0 to proxy REST calls to SOAP > Business Services. I have a few questions: > > 1. When we deployed the extracted war file we can't seem to get any logs. > We've added log4j.properties to the classes directory, but still nothing. > We > can hit http://localhost:8280/services which shows a list of services > defined in the synapse.xml file > 2. Are there any docs that can help me set-up REST proxy services and > route them to SOAP web services? > Synapse has the ability to process REST calls without any additional configurations. Such invocations can be converted into SOAP requests and sent to back-end services. You just need to set the format="soap11" (or format="soap12") attribute on the endpoints and Synapse will take care of the REST to SOAP conversion. Take a look at sample 50 [1] for a similar scenario. Sample 152 [2] shows how to convert a SOAP request into a REST call using a proxy service. Thanks, Hiranya [1] - http://synapse.apache.org/Synapse_Samples.html#Sample50 [2] - http://synapse.apache.org/Synapse_Samples.html#Sample152 > > Thanks for your help, > > Zahid > -- Hiranya Jayathilaka Senior Software Engineer; WSO2 Inc.; http://wso2.org E-mail: [email protected]; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com
