Synapse

Can't apply concat function in WSO2 ESB CONFIGURATION with json-eval

谁说我不能喝 提交于 2019-12-23 23:17:39
问题 I'm trying to set this expression in order to obtain the output file name as a concat between the name of the city and the extention of the file: <?xml version="1.0" encoding="UTF-8"?> <sequence name="WriteFile_City" xmlns="http://ws.apache.org/ns/synapse"> <property expression="concat(json-eval($.city.name),'.xml')" name="transport.vfs.ReplyFileName" scope="transport" type="STRING" xmlns:ns="http://org.apache.synapse/xsd"/> <property name="OUT_ONLY" value="true"/> <send> <endpoint> <address

WSO2 Synapse: setting a URL parameter

妖精的绣舞 提交于 2019-12-23 19:45:42
问题 I am trying to do something that seems straightforward but can't get it to work. Basically I want the WSO2 API manager to add a URL parameter to a REST call. Setup and Problem I have a WSO2 API manager installed. I also have a Tomcat running with a bogus servlet called someservlet that simply logs anything it receives and returns ok. I have added the servlet as an API in the manager, so I can either call the servlet directly or via WSO2 API mgr. I can run curl http://localhost:8080

WSO2 ESB - Dynamic value for proxy parameters (transport)

拟墨画扇 提交于 2019-12-23 12:29:06
问题 I need to be able to specify a dynamic value for proxy parameter. Actually, I have to specify each parameter with complete URL like : <parameter name="transport.vfs.FileNamePattern">.*.txt</parameter> I see some samples with property mediator and I guess it's working for next proxies but the problem here is that I need to change the proxy parameters value before its execution I think. I tried with a "trigger" proxy calling a custom mediator which change SynapseConfiguration of required proxy

Access NTLM Secured WS Througth WSO2ESB

倾然丶 夕夏残阳落幕 提交于 2019-12-23 02:04:11
问题 Hello guys I'm trying to setup a proxy service on WSO2ESB to access a NTLMv2 secured WS. I created a mediator class to achieve this but not luck so far, I keep receiving 401 status Here is the code. Proxy Service: <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="test" transports="http" statistics="disable" trace="disable" startOnLoad="true"> <target endpoint="fincasEP"> <inSequence> <class name="com.aig.mediator.NTLMAuthMediator"> <property name=

Access NTLM Secured WS Througth WSO2ESB

守給你的承諾、 提交于 2019-12-23 02:01:56
问题 Hello guys I'm trying to setup a proxy service on WSO2ESB to access a NTLMv2 secured WS. I created a mediator class to achieve this but not luck so far, I keep receiving 401 status Here is the code. Proxy Service: <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="test" transports="http" statistics="disable" trace="disable" startOnLoad="true"> <target endpoint="fincasEP"> <inSequence> <class name="com.aig.mediator.NTLMAuthMediator"> <property name=

WSO2 Aggregate Mediator premature/incomplete/unknown completion

陌路散爱 提交于 2019-12-20 04:38:51
问题 I'm having a confusing issue with my aggregate mediator inside an out Sequence of a proxy. Configuration : A sequence implementing the iterate mediator Iterated the following message : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <productSearchRs xmlns="SHC"> <productDetails> <Product_ID>1487326</Product_ID> <Product_Name>SECRET</Product_Name> <Product_Size>M</Product_Size> <Product_Colour>BLACK</Product_Colour> <Product_Type>SOCKS</Product_Type>

Get property value in JavaScript with script mediator

大兔子大兔子 提交于 2019-12-13 14:51:34
问题 Is there a way, inside the javascript code from WSO2 ESB's Script mediator, to get a property's value when this property has a scope different from "default" ? In case of a property with default scope : get-property('MyProperty') OR <script language="js"> mc.getProperty("MyProperty"); </script> In case of a property with 'transport' scope : get-property('transport','FILE_NAME') OR <script language="js"> mc.???????? </script> 回答1: It seems that you can not get properties of other scopes than

WSO2 ESB 4.8.1 ERROR White spaces are required between publicId and systemId

送分小仙女□ 提交于 2019-12-12 07:07:26
问题 We are working with WSO2 ESB 4.8.1 with JAVA 1.7.0_55. Always, when we start the ESB and make the first request we receive this error: TID: [0] [ESB] [2015-04-22 10:51:31,067] ERROR {org.apache.synapse.transport.passthru.util.RelayUtils} - Error while building Passthrough stream {org.apache.synapse.transport.passthru.util.RelayUtils} org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,62] Message: White spaces are required between publicId and

What exactly is the transport scope in Property mediators in WSO2 esb?

我怕爱的太早我们不能终老 提交于 2019-12-12 05:03:46
问题 What exactly is the transport scope in Property mediators in WSO2 esb? Is it thread safe? That is, if the scope is marked as transport, is this local to the current execution of the proxy ? There does not seem to be enough documentation on this. 回答1: Bellow information is extracted from the WSO2 ESB document itself and it has been documented. It is noting to do with the thread safe but more towards integration config level scope. Scope The scope at which the property will be set or removed

Transform response to plain-text using wso2 esb 4.0.6

我的未来我决定 提交于 2019-12-12 04:47:32
问题 I'm new to web-service and somehow I have created a simple web-service over http/https using wso2 esb 4.0.6. Now my requirement is to remove the tag from response i.e. i need plain text in response, below code snippets will give u a brief idea of my requirement. <case regex="POST"> <property name="HTTP_METHOD" value="POST" scope="axis2" type="STRING"/> <enrich> <source type="inline" clone="true"> <success xmlns="">Your request for subscription is being processed.</success> </source> <target