wso2esb

how to send response as String using class mediator in wso2 esb

混江龙づ霸主 提交于 2019-12-02 06:24:38
In my project I created some proxy.There transport type is tcp . My response is { "BillingSystem": { "request_id": "20114140080000011479122000", "request_timestamp": "12102012121200", "response_timestamp": "12102012121300", "action": "AddSubscription", "username": "Cellcard ", "result_code": "0", "result_desc": "Success" } } I catch this response using class mediator and create WZ2OCS2:1:14:14008:1:@1479122000# using that response. I need to send this string to tcp client . I set this String in the class meditor context.setProperty("responseClientValue", responseClientValue); After set this

How to send json request to restful webservice using wso2 proxy service

∥☆過路亽.° 提交于 2019-12-02 06:17:41
问题 I am new to wso2.. I have asked lot of question regarding wso2 proxy service,i am not getting a correct response,can anyone help me on this please I want to send a JSON request to a Restful webservice using a WSO2 proxy service.. I have tried the below configuration <target> <inSequence> <log level="custom"> <property name="in seq --------------of proxy" expression="$trp:Content-Type"/> </log> <property name="messageType" value="application/json" scope="axis2" type="STRING"/> <log level=

Is it possible with WSO2ESB to send E-Mail Using Header

谁说我不能喝 提交于 2019-12-02 03:55:03
问题 i wish to send a e-mail to my client using Header mediator . Is it possible with that or not My proxy like this <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="Mail" transports="https http" startOnLoad="true" trace="disable"> <description/> <target> <inSequence> <log/> <property name="workpartybranchid" expression="//workpartybranchid/text()" scope="default" type="STRING"/> <payloadFactory> <format> <p:SelectMail_Op xmlns:p="http://ws.wso2.org

How to escape apostrophe in WSO2 property XPath expression

試著忘記壹切 提交于 2019-12-02 03:12:24
My problem is to quote the values obtained from get-property('cf') in <property expression="fn:concat(get-property('whereConcat'),' AND PA_INATO=', get-property('cf'))" name="whereConcat" scope="default" type="STRING"/> I have tried in different ways(character encoding: &apos; , character escape: \' ) but without success. the cleanest way is to define a constant: <property name="apos" scope="default" type="STRING" value="'"/> and then use it as follow: <property expression="fn:concat(get-property('whereConcat'),' AND PA_INATO=',get-property('apos'), get-property('cf'),get-property('apos'))"

How to escape apostrophe in WSO2 property XPath expression

我只是一个虾纸丫 提交于 2019-12-02 02:12:44
问题 My problem is to quote the values obtained from get-property('cf') in <property expression="fn:concat(get-property('whereConcat'),' AND PA_INATO=', get-property('cf'))" name="whereConcat" scope="default" type="STRING"/> I have tried in different ways(character encoding: &apos; , character escape: \' ) but without success. 回答1: the cleanest way is to define a constant: <property name="apos" scope="default" type="STRING" value="'"/> and then use it as follow: <property expression="fn:concat(get

How to send json request to restful webservice using wso2 proxy service

末鹿安然 提交于 2019-12-02 01:58:02
I am new to wso2.. I have asked lot of question regarding wso2 proxy service,i am not getting a correct response,can anyone help me on this please I want to send a JSON request to a Restful webservice using a WSO2 proxy service.. I have tried the below configuration <target> <inSequence> <log level="custom"> <property name="in seq --------------of proxy" expression="$trp:Content-Type"/> </log> <property name="messageType" value="application/json" scope="axis2" type="STRING"/> <log level="custom"> <property name="in seq --------------of proxy" expression="$trp:Content-Type"/> </log> <property

Is it possible with WSO2ESB to send E-Mail Using Header

我的梦境 提交于 2019-12-02 01:37:25
i wish to send a e-mail to my client using Header mediator . Is it possible with that or not My proxy like this <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="Mail" transports="https http" startOnLoad="true" trace="disable"> <description/> <target> <inSequence> <log/> <property name="workpartybranchid" expression="//workpartybranchid/text()" scope="default" type="STRING"/> <payloadFactory> <format> <p:SelectMail_Op xmlns:p="http://ws.wso2.org/dataservice"> <p:workpartybranchid>$1</p:workpartybranchid> </p:SelectMail_Op> </format> <args> <arg

Is there any XPath expression for String Padding in wso2 ESB?

只谈情不闲聊 提交于 2019-12-02 01:35:32
I have enabled XPath 2.0 configuration synapse.xpath.dom.failover.enabled=true in synapse.properties but still unable to get string padding done. Is there any expression to achieve it? Edit : The length of a particular string needs to be 10 chars, if it is lesser than it, we have to pad it with the special character '%'. Eg., Input = ' WSO2 ', after padding it should be ' WSO2%%%%%% ' Thanks in advance har07 This can be achieved using XPath 1.0 like so, assuming that "WSO2" will be replaced by dynamic input string in the actual implementation : substring(concat('WSO2', '%%%%%%%%%%'), 1, 10)

SMS Transport sender in wso2 ESB

做~自己de王妃 提交于 2019-12-02 00:53:48
问题 Recently I read an article about Sending SMS notifications using WSo2 esb. Unfortunately it does not work for me and I am not 100% sure about some of those configurations. Following are the problems that I have. Are there any other library files, rather than the two files below, that can be used to enable SMS transport sender over SMPP? axis2-transport-sms-1.0.0.jar jsmpp-2.1.0.jar What is the actual directory into which I should put each of those jars - is it $ESB_HOME/repository/components

SMS Transport sender in wso2 ESB

不羁岁月 提交于 2019-12-01 20:23:51
Recently I read an article about Sending SMS notifications using WSo2 esb . Unfortunately it does not work for me and I am not 100% sure about some of those configurations. Following are the problems that I have. Are there any other library files, rather than the two files below, that can be used to enable SMS transport sender over SMPP? axis2-transport-sms-1.0.0.jar jsmpp-2.1.0.jar What is the actual directory into which I should put each of those jars - is it $ESB_HOME/repository/components/lib ?. Finally, what should the address endpoint for sending a specific number look like? Is it like