wso2esb

WSO2 ESB print all TRANSPORT_HEADERS

◇◆丶佛笑我妖孽 提交于 2019-12-08 09:00:14
问题 I can print individual transport headers in the WSO2 ESB with the following code inside a sequence: <log level="custom"> <property name="oneHeader" expression="$trp:FILE_NAME"/> </log> But I need to print all available transport properties. There is a axis2 property called "[TRANSPORT_HEADERS][1]", but when printing this property it is always empty. <log level="custom"> <property name="allHeaders" expression="get-property('axis2','TRANSPORT_HEADERS')"/> </log> Because I don't know all header

How can i get HEADER in my ESB i am using following property, its not not working

泄露秘密 提交于 2019-12-08 07:53:07
问题 i am getting the data from mobile client they are sending data in JSON as well as sending some values as HEADER to WSO2ESB i am getting normal values using this property <property name="asset" expression="//asset/text()" scope="default"/> but how can i get HEADER in my ESB i am using this property its not not working <property name="username" expression="get-property('transport', 'Accept')"/> how it will work will you revert me as soon as Thanks in advance 回答1: if what you are trying to

WSO2 ESB REST API - Dynamic HTTP EndPoint (using Template Endpoint) Externalise - Hostname and port number

一世执手 提交于 2019-12-08 07:52:39
问题 I want to externalize the hostname and port number in HTTP endpoint, so I am trying to pass the hostname and port number in JVM argument while starting the ESB. Using script/class mediator, I can get it from system properties and put it in message context. Then using property mediator, I can access and log the value of it. Till this point, I don't have any issue but when I try to use this value to replace in the HTTP endpoint as below; it doesn't work. Actual ESB Synapse API Config: <api

Enrich mediator Invalid Object type to be inserted into message body

本秂侑毒 提交于 2019-12-08 07:30:53
问题 ERROR: Enrich mediator Invalid Object type to be inserted into message body when trying to enrich the message, here is the proxy configuration: <proxy xmlns="http://ws.apache.org/ns/synapse" name="Database" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <dblookup> <connection> <pool> <password>1234</password> <user>root</user> <url>jdbc:mysql://localhost:3306/new_db</url> <driver>com.mysql.jdbc.Driver</driver> </pool> </connection>

how to set a property globally in wso2 ESB

我是研究僧i 提交于 2019-12-08 07:08:38
问题 I am trying to figure out how to implement session management in wso2 esb.So i have written a class mediator which generates session_ID that i want to store.For storing the session id I am using following code as: org.apache.axis2.context.ServiceContext serviceContext = org.apache.axis2.context.MessageContext .getCurrentMessageContext().getServiceContext(); serviceContext.setProperty("SessionIDGlobal", uuid); But while running it in my esb's proxy it throws null pointer exception at

WSO2ESB Rest API error: Invalid UTF-8 middle byte 0x6f (at char #143, byte #127)

强颜欢笑 提交于 2019-12-08 06:56:25
问题 I developed a REST API in wso2esb 5.0.0 and I am facing some problems when client send a request that contains ã , ç or é for example, the first mediator on inSequence pipeline, Raise an error about Invalid UTF-8 middle byte . When we force charset of message in HTTP header as ISO-8859-1, works fine. But we need to work with UTF-8. Somebody already face this issue and could help me? Following the stack trace off error: TID[-1234] [ESB] [2017-07-04 15:12:26,738] ERROR {API_LOGGER.ResourceAPI}

Writing on a text file using VFS in WSO2 ESB 4.8.1

懵懂的女人 提交于 2019-12-08 05:10:05
问题 I am using VFS transport to poll a simple text file and then i send the text of a file to a queue. This flow works fine but in case of error scenario when fault sequence is executed , i want to write my error message to a simple text file and it is not Working. Note: I am using WSO2 ESB Version 4.8.1. I have enabled the VFS transport in my "axis2.xml" file. I have also tried all the solutions provided in this question which is related to mine. My Service Code: <?xml version="1.0" encoding=

How to call python script file from wso2 proxy services

别来无恙 提交于 2019-12-08 05:03:01
问题 How to call python script file from wso2 proxy service. We tried with send mediator to call the python script file which is located in my local machine. <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="FilepythonTest" transports="http https" startOnLoad="true"> <description/> <target > <inSequence> <send> <endpoint> <address uri="local:///Users/vikashsaharan/Desktop/python/testpy.py"/> </endpoint> </send> </inSequence> <outSequence> <log level="full"

WSO2 esb get attach files from email

混江龙づ霸主 提交于 2019-12-08 04:13:16
问题 I am trying with WSO2 ESB to get an email (pop mail) with attach files and put all theses attach files in a folder with vfs. So I create a proxy service with MailTransportListener. I manage to get the email message but I don't know how to extract all attach files from the email and save them to a local folder. Here is my Proxy service. Thank for your help. Nicolas `<proxy xmlns="http://ws.apache.org/ns/synapse" name="MailProxy" transports="mailto" statistics="enable" trace="enable"

AXIS2Server packed with ESB 4.9.0 doesn't start while it works fine 4.8.0

半世苍凉 提交于 2019-12-08 02:20:09
问题 AXIS2Server packed with ESB 4.9.0 doesn't start while it works fine 4.8.0.. .any help Hi, I'm running ESB 4.9.0 on Win 7 OS 64-it. Let's say my esb is available at following location D:\wso2esb\samples\axis2Server As per instructions to run samples, I'm able to successfully build sample apps using ant but axis2 server doesn't start at all. It prints following on CMD when i execute axis2server.bat. Am i missing something? ========================================================= Microsoft