Hi Nuwan, To clarify my question, is there a mediator create a REST fault message according to the xsd or wsdl file? I know there is a FAULT mediator.But it generate SOAP fault message. And it didn't generate the response message according to the xsd/wsdl file(At least, I didn't find how to do that.).
Another question to VALIDATE mediator. I found it was used to check the value of one field. Is it possible to valid the request data against the schema? How to do that? Thanks, Bin On Thu, Sep 13, 2012 at 2:47 PM, Maeglin Vardamir <[email protected]> wrote: > Hi Nuwan, > > Thanks for your help. It did work for me. I retrieved the variable from > HTTP header and used switch mediator to do different things according the > different value of it. > > Now my new question is how I can generate legal response message according > to schema/wsdl and sent it back to the client. Fault mediator only return a > string which is not enough for the client. > > (My web service would support both REST and SOAP. For now, we use > RESTClient addon for Firefox to do testing.) > > Is there a mediator for this job? > > Thanks, > Bin > > > On Mon, Sep 10, 2012 at 6:08 PM, Nuwan Bandara <[email protected]> wrote: > >> Hi Bin, >> >> Sure its possible with WSO2 ESB, you can refer to switch mediator [1] >> documentation for more information. Based on the header you can switch the >> target endpoint. >> >> [1] http://docs.wso2.org/wiki/display/ESB450/Switch+Mediator >> >> Regards, >> /Nuwan >> >> On Mon, Sep 10, 2012 at 2:43 PM, Maeglin Vardamir <[email protected]>wrote: >> >>> Hi all, >>> >>> Sorry to resend this email. I got no response. Not sure this email was >>> lost or not. >>> >>> Here is my case. >>> >>> Client-------->Reverse Proxy-------->WSO2ESB proxy >>> service------->Backend webservices >>> https https >>> https >>> >>> >>> 1) Client sends https request to Reverse Proxy. --- I can do it now >>> 2) Reverse Proxy got all information from https connection and put them >>> in the HTTP header and then forward WSO2ESB proxy service -- I can do it >>> now >>> 3) WSO2ESB proxy service retrieves http header information. For example, >>> I choose Common Name. If the Common Name is 'abc', then the request would >>> be forward to endpoint 'ep1'. --- Don't know how to do. >>> >>> Is it possible for WSO2? >>> >>> Thanks a lot. >>> >>> Regards, >>> Bin >>> >>> _______________________________________________ >>> User mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/user >>> >>> >> >> >> -- >> *Thanks & Regards, >> >> Nuwan Bandara >> Associate Technical Lead & Member, MC, Development Technologies >> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 763 >> 9629 >> * >> <http://www.nuwanbando.com/> >> > >
_______________________________________________ User mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/user
