wso2esb

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

Will JSON based REST - ESB - REST communication build AXIS 2 XML MessageContext

隐身守侯 提交于 2019-12-12 04:24:46
问题 I have a use-case for end to end JSON based REST services i.e. REST Client -> ESB -> Rest Service (all on JSONs) which I am planning to handle using APIs & PayLoad factory for transformations In this scenario, will WSO2 ESB convert JSON into XML before invoking the target Rest Service? If no for #1, then how will it prepare MessageContext object which looks having all XML constrcuts like SOAPEnvevelope, Body etc.? Update 1 : To further clarify my question, I have updated this my sample API &

How can I declare and use a “global property” in WSO2 ESB? (a property that is outside the sequence defined by a message processor)

人盡茶涼 提交于 2019-12-12 03:54:56
问题 I have the following doubt related how to store something like a global property in WSO2 ESB . I try to explain my situation. I have a message processor in which is defined a sequence that is executed every second, something like this: <?xml version="1.0" encoding="UTF-8"?> <messageProcessor class="org.apache.synapse.message.processor.impl.forwarder.ScheduledMessageForwardingProcessor" messageStore="glisMessageStore" name="glisMessageProcessor" targetEndpoint="glisEndpoint" xmlns="http://ws

WSO2 API POST Python Web Service - Empty or No Payload to server

独自空忆成欢 提交于 2019-12-12 03:44:49
问题 I am not able to send request payload to my POST service from WSO2. On rest console, my service is working. From WSO2 server I am able to do curl to my server with successful response. here is my API configuration Payload to send: {"query":"Hi I am a POST query parameter"} My server is receiving {} as request payload. It expect RAW body in JSON (as above) in payload. I have tried all combinations for Parameter Type, but still not able to send payload to my server from WSO2. How can I do this?

WSO2ESB: Property setting not accepting empty value

好久不见. 提交于 2019-12-12 03:39:56
问题 Actually I'm trying to get an empty value when I set a Property in a sequence in WSO2 ESB with an empty string. I have tried many things but always get the result "null" or "\"\"" instead of "" when I get the property, here is my code: <property value="""" name="arq.general.DestinationSystem" scope="default" type="STRING" xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns2="http://org.apache.synapse/xsd"/> <property name="arq.general.ParentInstanceID" scope="default" type="STRING" value=""/>

WSO2 ESB : Aggregate node droppping message after aggregation

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:14:28
问题 I am implementing the Fan out -- Fan in splitter EIP inside a proxy , whereby : |-----> shoe store-(1-M)------------- productSearchRq -- |-->Rs |-----> ack clothes store-(0-1)------ Shoe store = Data service and Clothes store = Axis 2 service . So in short I implement the pattern above ; I clone the request , send it , get responses , format them using payloadFactory: <productDetails> <productID>$1</productID> <productName>$2</productName> <productSize>$3</productSize> <productColour>$4<

Can we append the data in single text file using WSO2ESB?

泪湿孤枕 提交于 2019-12-12 02:58:37
问题 I am getting error message from mobile app or somewhere any of front end. I need keep that message in one single text file. That file could be stored in my local system. How can I do this using WSO2ESB? <proxy xmlns="http://ws.apache.org/ns/synapse" name="AppendFile" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence onError="fault"> <property name="error_TYPE" expression="//error/text()" scope="axis2" type="STRING"/> <property name="HTTP

WSO2 ESB - how to unwrap the SOAP envelope of REST messagess

笑着哭i 提交于 2019-12-12 02:39:20
问题 I noticed that REST messages are wrapped in a SOAP envelope by the ESB. Is there a way to keep the message as POX even inside the ESB, without being wrapped by a SOAP envelope? I tried setting format="rest" by using an http endpoint. But it didn't work. 回答1: Within the ESB, message get converted to a soap message regardless of incoming/out going message format. That is happening to provide a consistent message format to all the mediators to work with. What you can do is, remove the soap

WSO2 class mediator not work

一个人想着一个人 提交于 2019-12-12 02:25:28
问题 This is my first time to write NTLM mediator followed by NTLM Mediator The mediator project: Exported Jar and [ESB_HOME]/repository/components/dropins Proxy service to test: The mediator seems not work: Line 73 throw out exception: 回答1: You have to put jars into lib ($ESB_HOME/repository/components/lib). Delete jar in the dropins. As ESB start, it will put that jar into dropins folder. Try that. If not you may have to add three folders as given in documentation[2]. Further references: [1]

WSO2 ESB 4.9 - Send mediator causing errors

南笙酒味 提交于 2019-12-12 02:24:34
问题 I've been working on a resource over the last few days (I'm very new to WSO2 so I'm still pretty slow) and when I submit a request to it via SoapUI, it logs everything it should up to the <send/> mediator and then dumps the following errors: ERROR - Failed to submit the response {org.apache.synapse.transport.passthru.PassThroughHttpSender} java.lang.NullPointerException at org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64) at org.apache