wso2esb

How to debug WSO2 ESB code

主宰稳场 提交于 2019-12-05 01:35:19
How do you typically debug the ESB code? I am using log statements but they are kind of lost in system logs. Is there a better mechanism to be used? Thanks, You can do remote debugging from your IDE with ESB code. First start the ESB server script with debug option as follows. wso2server.sh -debug 5005 where the number is any port number used for remote debugging from your IDE. Then run debug in your IDE with whatever the port number you assigned. First, you have to setup debug configurations in your IDE which is can be learned using this wso2 article Then start the ESP server with debug

WSO2 ESB overwrites a ContentType property

情到浓时终转凉″ 提交于 2019-12-05 01:33:55
问题 I am working on the WSO2 ESB Proxy service, which involves exposing the internal RESTful service via SOAP endpoint on the ESB. My RESTful service requires Content-type = "application/rdf+xml". I tried setting it using all 3 properties mentioned in the documentation: messageType, ContentType and CONTENT_TYPE. However, the request Content-type still remains "application/xml". Here is an excerpt from my sequence that calls REST service: <property xmlns:ns="http://org.apache.synapse/xsd" name=

Do Policy Intersection in WSO2ESB Class Mediator

牧云@^-^@ 提交于 2019-12-04 23:26:58
I've created a Class Mediator in which I want to intersect two policies. I've created the Class Mediator with Carbon Studio for Eclipse, which automatically adds some predefined libs to the build path of my project. One of the libs is neethi-2.0.4.wso2v1.jar. If I want to use the intersect-method I get an exception. If I have a look at the source I see that the intersect-method just throws an "UnsupportedOperationException". So the given neethi lib is useless for intersection, therefore I want to use the newest Neethi lib (aka neethi-3.0.2.lib) for intersection inside my class mediator. Could

Client giving error when invoking a secured web service

百般思念 提交于 2019-12-04 21:16:18
I have written a client that invokes webservice. My client is: String publisherEPR = "https://abc:8280/services/ProviderPublication"; protected void publicationOpenSession(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println("Inside publicationOpenSession"); date = new Date(); namespace = "http://www.openoandm.org/xml/ISBM/"; fac = OMAbstractFactory.getOMFactory(); OMNamespace ns = fac.createOMNamespace(namespace, "ns1"); OMElement result = null; channelURI = request.getParameter("TxtPublisher1ChannelURI"); textfield = request

WSO2 ESB Custom Message Processor example

早过忘川 提交于 2019-12-04 17:56:27
I'm planning to create a custom message processor to pick up messages from message store. However I haven't find any examples how to create a custom class. Documentation under this topic is very limited.( http://docs.wso2.org/display/ESB481/Custom+Message+Processor ). Can somebody provide example to create custom message processor ? Thanks, Have a look at the MessageProcessor interface - and the implementations and other classes here . Once you have your processor setup, you can place your jars in the lib folder. Then follow the instructions in the link you posted in the OP. 来源: https:/

Deploying WSO2 ESB 4.6.0 onto JBoss 7

浪尽此生 提交于 2019-12-04 16:37:24
I'm looking for a way to deploy WSO2 ESB onto JBoss 7 . I saw in the Web such manuals for JBoss 5.1.0 . AFAIK JBoss 7 is quite different from JBoss 5.1.0 . In particular, forked from Tomcat JBossWeb is used there instead of Tomcat. Therefore I don't think that a manual for JBoss 5.1.0 is suitable for JBoss 7 . Has somebody done the subj successfully? Is there any manual, guide or something like that, describing how to do this? We stopped supporting webarchive deployment model from carbon 4.0.0 and later versions. So, you can not deploy the esb4.6.0 inside jboss. In fact you can't gain real

Data Service fails when deployed with ESB

岁酱吖の 提交于 2019-12-04 14:22:45
I have a data service that works perfectly when deployed in a DSS only environment. The exact data service when deployed in an environment with both dss and esb will fail an operation that has a simple input parameter. Any pointers as to what is failing would be greatly appreciated. The Data service has two operations; Simple get of information with no input parameters, GetLastRequest More complex get operation in which a single datetime parameter is passed in, GetNewRequests When deployed in DSS only environment, both operations work as expected using TryIT When deployed in the DSS/ESB

WSO2 ESB Axis2 Service throwing Host name verification failed for host

六月ゝ 毕业季﹏ 提交于 2019-12-04 11:01:59
问题 I have created an AXIS service which connects to WSO2 Identity Server and validates a token. When I deploy this axis service on WSO2 App Server, I get the correct response. Where as when I deploy it on WSO2 ESB, I get the following error org.apache.axis2.AxisFault: The input stream for an incoming message is null. at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:68) at org

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

孤者浪人 提交于 2019-12-04 04:56:15
问题 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 回答1: This can be achieved using XPath 1.0 like so, assuming that "WSO2" will be replaced by

WSO2 ESB: Unexpected Character Error when submitting JSON to Proxy Service

我是研究僧i 提交于 2019-12-04 04:34:01
问题 I'm attempting to retrieve data from Facebook using the WSO2 Facebook Connector in WSO2 ESB 4.9.0. I've provided the proxy configuration below. <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="facebook_getFeed" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence onError="fault"> <property name="messageType" value="application/json" scope="axis2"/> <log level="full"/> <property name="apiUrl" expression