Hi Zahid, On Sun, Jan 30, 2011 at 8:03 PM, Zahid Munir <[email protected]> wrote:
> Thanks Hiranya. Does that mean I have to write the wsdl, or can it be > generated from an xsd? > I believe you just want to expose some REST services on Synapse. So you probably don't need any WSDLs. However, if there are any differences between the REST message schema and SOAP message schema, you will have to use some transformation mediators (eg: XSLT) to execute the schema transformations. Otherwise Synapse will simply wrap the incoming REST/POX message in a SOAP envelope. > > Any ideas on why I'm not getting an logs? > What is the app server you are using? Thanks, Hiranya > Thanks, > > Zahid > On 30 January 2011 07:48, Hiranya Jayathilaka <[email protected]> > wrote: > > > 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 > > > -- 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
