wso2esb

Combine two queries using WSO2 ESB

情到浓时终转凉″ 提交于 2019-12-25 09:17:26
问题 I've been trying to figure out how to get WSO2's ESB to make calls to two different APIs and combine their results into a single response, and running into nothing but trouble. At its most basic, I've got two backends I'm making requests to that respond something like this: http://example.com/items : <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www

SOAP messages are not sent using wso2 ESB REST API

﹥>﹥吖頭↗ 提交于 2019-12-25 07:59:12
问题 I'm trying to expose SOAP backend as REST API using wso2 ESB. I'm using payload factory to send the soap body message, but it doesn't work. This is my API resource in wso2 esb code : <?xml version="1.0" encoding="UTF-8"?> <api context="/akademik" name="SampleAPI" xmlns="http://ws.apache.org/ns/synapse"> <resource methods="GET" uri-template="/students?symbol={symbol}"> <inSequence> <log level="custom"> <property expression="$url:symbol" name="symbol"/> </log> <payloadFactory media-type="xml">

Is there any replace function in wso2esb?

耗尽温柔 提交于 2019-12-25 07:31:53
问题 i have string like htt://api.orgsync.com/orgs/{orgId}/events?key={orgSyncKey}&startdate={startDate}&enddate={endDate} i need to replace {orgId} with 1234, {orgSyncKey} with 2345 , {startDate} with 12/01/2004 and {endDate} with 15/02/2005. is there any replace kind of function in wso2esb? 回答1: replace is a function that comes with XPath 2.0. To enable XPath 2.0 functions uncomment the following entry in the synapse.properties file which is located at $ESB_HOME/repository/conf directory.

Publishing API in WSO2 ESB from WSDL

核能气质少年 提交于 2019-12-25 07:19:05
问题 I can see here that I can publish a WSLD like Proxy Service in WSO2 ESB. But, I want to publish an API from a WSDL. Is it possible to do that in 4.8.1? 回答1: WSO2 API Manager allows you to publish an api from a WSDL. If your soap service is accessible from internet, you can easily try this using WSO2 API Cloud. This tutorial shows how to do it in cloud. But, its also valid for the standalone product too. 回答2: Short answer is no. You cannot create an ESB Rest API from a WSDL or WSDL url as you

Using XPath functions in filter mediator

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 06:32:10
问题 In my inSequence of a proxy I'm filtering with a xpath query in the filter mediator. But I want to use XPath functions like exists() or count() . But this does not work and always creates an exception. Here my example: <filter xpath="count($body/myElement)>2"> <drop/> </filter> And the exception I always get: ERROR - FilterMediator Error evaluating XPath expression : n:exists($body/avintis:Exception) org.jaxen.UnresolvableException: No Such Function exists How can I make these functions work?

How to Invoke External PHP Web Services with WSO2 ESB

一个人想着一个人 提交于 2019-12-25 04:28:38
问题 Hello WSO2 ESB community, I have a services in PHP. I have invoked into WSO2ESB through WSDL proxy and no problem with that. But, when I tried to call it from either SOAP client or 'try this services' built in WSO2ESB, that services can't be called and show an error : org.apache.axis2.AxisFault: Read timed out Can you help me what's wrong..? As a note, that's PHP services is goes well when call directly from SOAP client, not through WSO2ESB.. this is my PHP services code.. ** <?php //call

How to know ERROR message in wso2DSS

馋奶兔 提交于 2019-12-25 03:33:20
问题 Is there any link or reference to WSO2 Data Service error codes ? I am getting error code '401000',500000, I need to know what exactly mean by that error code using this i am sending errorcode to backend but i need to send exact message also in WSO2ESB we have paroperty call get-property('ERROR_MESSAGE') .is there any property we have in WSO2DSS which will show me exact error message ERROR_CODE = 500000, ERROR_MESSAGE = null, and sending this message to backend directly {"insert_dept

Soap request to wso2 ESB working with curl, not with python

本秂侑毒 提交于 2019-12-25 03:31:08
问题 I'm having a strange problem. When I add an ESB connector by sending a soap request using curl, the connector is added successfully. When I send the same message using python, I get this weird error. What am I missing? Curl command: curl --basic -u admin:admin -H "Content-Type: application/soap+xml" -k -d @request.xml https://localhost:9443/services/MediationLibraryAdminService.MediationLibraryAdminServiceHttpsSoap12Endpoint ESB log after curl command: [2015-03-20 06:09:05,154] INFO -

Apply Role security to WSO2 ESB Proxy using Java API

浪子不回头ぞ 提交于 2019-12-25 03:28:45
问题 I am looking for a way to apply Role based security on existing Proxy WSDLs of WSO2 ESB using Java API. Using org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub I could manage to enable security for unsecured proxy service, but unable to find a way to apply Role based security (please note the roles are coming from WSO2 Identity Server). I understand it's possible to perform this action with Wso2 ESB management console, but is there is a way to handle it through Java API? Any carbon

Errors using input-only web service (OUT_ONLY from ESB)

自古美人都是妖i 提交于 2019-12-25 03:07:35
问题 I have a webservice with some input only operations. In the ESB i've created a proxy and sets the properties OUT_ONLY and FORCE_SC_ACCEPTED to true. Everytime I call the proxied operation I get the following error message in the wso2carbon.log: TID: [0] [ESB] [2015-04-02 09:52:45,307] ERROR {org.apache.axis2.transport.base.threads.NativeWorkerPool} - Uncaught exception {org.apache.axis2.transport.base.threads.NativeWorkerPool} java.lang.UnsupportedOperationException: Not yet implemented at