wso2esb - How can we receive the url into wso2 esb proxy service -
my aim have receive url's www.google.com client in proxy service , send response client.
how can solve this.here sending proxy service.
<?xml version="1.0" encoding="utf-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="geturl" transports="https http" startonload="true" trace="enable" statistics="enable"> <description/> <target> <insequence onerror="fault"> <property name="response" value="true" scope="default" type="string"/> <property name="request_host_header" value="www.google.com" scope="axis2"/> <property name="querystrings" expression="get-property('axis2', 'rest_url_postfix')"/> <property name="rest_url_postfix" expression="get-property('request_host_header')" scope="axis2" type="string"/> <property name="http_method" value="get" scope="axis2" type="string"/> <header name="to" expression="get-property('www.google.com')"/> <property name="message" value="response message"/> <property name="sender address" expression="get-property('www.google.com')"/> <log level="full"/> <log level="full"> <property name="request_host_header" value="www.wso2.org"/> </log> <send/> </insequence> <outsequence onerror="fault"> <log level="full"/> <log level="full"> <property name="request_host_header" value="www.google.com"/> </log> <log level="full"> <property name="success" value="success"/> </log> <send/> </outsequence> </target> </proxy> thanks
in outsequence of proxy service, when call <send/> , response sent client. try sample proxy service [1], , invoke using try-it or soap ui. see response comming client.
[1]http://docs.wso2.org/wiki/display/esb460/sample+150%3a+introduction+to+proxy+services
Comments
Post a Comment