wso2

WSO2 API Manager “error”: “no response from server”

笑着哭i 提交于 2019-12-11 01:13:53
问题 I have published API in WSO2 using swagger JSON. After publish I am trying to call rest api using swagger in APP Console. It says Response Body no content Response Code 0 Response Headers { "error": "no response from server" } There is no any error on server which will help me to understand problem. Here is the request URL which I am using in local server : https://192.168.1.118:8243/api/2.0/questions/1/answers?start=1&end=1&fields=answerId%2CanswerDescription%2CcreateDate 回答1: In my API

Standalone java code to invoke wso2 secured web service

这一生的挚爱 提交于 2019-12-11 01:09:13
问题 I have a secured web service on wso2esb. It is based on Username token. Now, I want to create a standalone java program to invoke this web service. I m having hard time figuring out how to do this. Can you please help me in this. Thanks and Regards. 回答1: Access to a secure web service in this way, I presume you use UT scenario: String trustStore = null; ConfigurationContext ctx = null; String policyFilePath = "[file_system_path]/secure_sample_policy.xml"; trustStore = "[file_system_path]

BAM external cassandra

谁说胖子不能爱 提交于 2019-12-11 00:45:00
问题 I would like to use Cassandra with WSO2 BAM. BAM is coming out of the box cassandra db however I want to use external Cassandra Server. Is there any way to use external cassandra. 回答1: You can point WSO2 BAM to a external Cassandra Cluster using $CARBON_HOME/repocitory/conf/etc/cassandra-component.xml. https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/products/bam2/2.0.1/modules/distributed-setup/cassandra-component.xml You can give more than one host in the Nodes section. Use

startOnLoad is not working as expeceted

百般思念 提交于 2019-12-11 00:34:35
问题 I have created VFS based proxy service as below but property startOnLoad="false" is not working as expected. Even after the deployment of the proxy, we need to manually click Activate and then click disable to permanently disable VFX proxy. But the proxy status show as disabled but the proxy is still polling FTP server in the back end. We need to manually activate and disable the proxy to permanently disable it. Is there anyone faced this problem earlier and any fix for it. This issue is in

WSO2 Api Manager log Http request in log mediator

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 00:24:16
问题 Is there a way to include the http request remote host in the log mediator being used for a specific api? Having followed the instructions, i can log the soap message, but i have no info regarding the caller of the service. I currently use the following sequence definition: <sequence xmlns="http://ws.apache.org/ns/synapse" name="WSO2AM--Ext--In"> <log level="full"> <property name="TRACE" value="Gunet Mediation Extension"/> </log> </sequence> And the result i get when having a call is the

update local entry in wso2 esb via servce

谁都会走 提交于 2019-12-10 22:44:32
问题 Is there any way by which, I can update local entry from esb service. I have to store a token in global variable and need to update it when it is expired. I want to keep it in local entry. Looks like I can not update it from ESB service/sequence. <localEntry key="TestLocalEntry" xmlns="http://ws.apache.org/ns/synapse"><![CDATA[TestValue]]></localEntry> 回答1: If you requirement is to store a global variable and not really update a local entry, you can use esb registry Try this js to create /

WSO2 App Store throws error when attempting to save a users Application against mysql

时间秒杀一切 提交于 2019-12-10 22:21:48
问题 API Store is throwing errors when I try to create or edit an application java.sql.SQLException: Can't call commit when autocommit=true I've added the setting of init-command='set autocommit=0' to the my.cnf file I've also added the flag: ?relaxAutoCommit=true to the connection string but to no avail. I continue to get this error. I am using the same mysql database for both the WSO2_CARBON_DB and teh WSO2AM_DB plus I have a single publisher node and two separate store nodes all pointing to the

Error in getting json response from DSS server: “Error while writing to the output stream using JsonWriter”,“detail”:“”

帅比萌擦擦* 提交于 2019-12-10 20:27:30
问题 I'm getting following error while requesting json response from my dss service. {"Fault":{"faultcode":"soapenv:Server","faultstring":"Error while writing to the output stream using JsonWriter","detail":""}} curl request which i pass is curl -X GET -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:9764/services/userdetails/test I am getting the proper xml response if i remove accept header. Strange thing is if i am running the same dss service from my colleague's

Secured HL7 Transport in WS02 ESB?

拜拜、爱过 提交于 2019-12-10 19:58:57
问题 My group is evaluating HL7 Proxying and came across WS02 ESB. I have successfully configured an HL7 Proxy that seems to work well. Now my task is to secure the listening point with SSL (TLS specifically). This seems like something that the ESB should be able to handle. It can do HTTPS, Secured Web Services, etc. However, there doesn't seem to be a way to enable this with a simple check box for HL7 Proxying, nor am I finding any documentation on how to enable it manually. Is it even possible

WSO2 API Manager and XACML Entitlement

六眼飞鱼酱① 提交于 2019-12-10 19:44:01
问题 I'm investigating the possibility to use WSO2 API Manager 1.0 for creating an API Store to be used internally in my company; and I'm trying to figure out if it fits all requirements. In particular I would like to understand if it is possible to use a mechanism of entitlement of the API access based on XACML policies: I found several articles describing how to implement "XACML Fine Grained Authorization" using the WSO2 ESB and the WSO2 IS. So my question is if it possible (and how) to