wso2carbon

How to delete tenants in WSO2 Identity Server?

柔情痞子 提交于 2019-12-05 12:54:39
In v 4.6.0, we cannot delete tenats through the UI, only disable. However, I see there is a deleteTenant method on the TenantMgtAdminService soap service. I have tried to call this service, but I get an error. From the logs, it has: {org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService} - Error deleting tenant with domain: test7.tenant and tenant id: 136. {org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService} java.lang.NullPointerException at org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.deleteTenant(TenantMgtAdminService.java:520) Looking at the source code, I think this

WSO2 api manager stops after 1000 sync call with large payload

泪湿孤枕 提交于 2019-12-05 12:11:52
I have a server which can send response of any size. When I make calls of with response size 1MB the WSO2 api manger works fine. (1000 requests per minute) When we make same calls with response size of 10MB the WSO2 api manager initially cuts down the size of responnse and finally becomes 0 sized responses. With 1000 requests per minute only first 28 requests response back with 10MB others are lesser size. I have tried hitting the backend service directly with 10MB response sizes and all the responses are 10MB. Here is my server.js (written for nodejs) var http = require("http"); var url =

How to set tenant to header in mediator with WSO2 API Manager

余生颓废 提交于 2019-12-05 05:13:29
I have an API that requires the tenant as a header. If I create a custom in-sequence: <sequence name="WSO2AM--Ext--In"> <header name="X-Tenant-Id" scope="transport" action="set" expression="???????????????????" /> </sequence> Is there an expression that I can use to achieve this? Or should I resort to creating a per-API mediator to set it? PS: Looking at WSO2 source code ( CarbonTenantInfoConfigurator.java ), I found this fragment that could be useful as a hint: PrivilegedCarbonContext cc = PrivilegedCarbonContext.getThreadLocalCarbonContext(); String tenantDomain = cc.getTenantDomain(); int

wso2 carbon hacking - eclipse development environment set up steps

笑着哭i 提交于 2019-12-04 21:41:37
It would be great if the carbon source tree could be set up in eclipse so that eclipse can be used for building and running carbon. Is this possible? How do the WSO2 carbon developers set up their development environments? For example based on eclipse 4.3 RC2 Java EE: $ svn checkout http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.1.0 wso2carbon $ cd wso2carbon $ mvn install -Dmaven.test.skip=true (first ensure you have enough permgen space, e.g. set MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M ) $ mvn eclipse:eclipse ensure eclipse M2_REPO variable points to your ~/.m2/repository folder

CDATA in payload factory in WSO2 ESB

六月ゝ 毕业季﹏ 提交于 2019-12-03 16:48:46
I am trying to write a sequence in ESB and populate my payload data by using payload factory as i stated below example. <payloadFactory> <format> <p:echoInt xmlns:p="http://echo.services.core.carbon.wso2.org"> <in xmlns="">$1</in> </p:echoInt> </format> <args> <arg xmlns:ns="http://org.apache.synapse/xsd" expression="an-xml-formatted-string"/> </args> </payloadFactory> <send> <endpoint> <address uri="http://noon101:8280/services/echo" format="soap11"/> </endpoint> </send> Because my string is formatted as xml when i send this payload to the service, the service tries to parse my xml parameter

WSO2 MDM Connection Failer

人走茶凉 提交于 2019-12-02 21:48:02
问题 Im trying to setup WSO2MDM on Nexus 07 tablet. I have configured web based backend and its up and running. I followed the guide lines in documentation to set up Client mobile app on the tablet. (Already set the configuration according to steps on documentation and compiled it.) But When I try to register using tablet it gives me an error saying "Authentication failed due to a connection failure do you want to try again?"; Please advise me how to sort this out. 回答1: What's the authentication

can wso2 carbon 4.1 run as a web app (war)?

我是研究僧i 提交于 2019-12-02 16:31:50
问题 I'm limited to what applications I can deploy in my environment, however, standard WAR files are usually not a problem. Can carbon 4.1.0 run as a web app? This link describes how it can be done for carbon 3.2.2. Are these steps still valid for 4.1.0? According to the answer in this link some functionality is limited in webapp mode for 3.2.2. What functionality is limited if 4.1.0 is deployed in webapp mode? EDIT: A webapp-mode folder is available in $CARBON_HOME C:\Users\snowc\Desktop

How to send a soap request(xml) to soap service using wso2 proxy service

白昼怎懂夜的黑 提交于 2019-12-02 15:03:14
问题 I am new to wso2 I have created a Custom Proxy Service to call a backend Soap Service... I need to POST a Soap XML request to back end service,using a proxy service.. I am using REST CLIENT (Mozilla firefox addon) for calling my proxy service I put the method as POST and content type as text/xml Below is my proxy service configuration <target> <inSequence> <property name="messageType" value="text/xml" scope="axis2" type="STRING"/> </inSequence> <outSequence> <send/> </outSequence>

XML to XML transformation with wso2

人走茶凉 提交于 2019-12-02 13:48:48
问题 I am using wso2 esb 4.8.1. I am trying to do xml to xml transformation with the help of smooks mediator but I am getting following exception when is hit request from the try it from application deployment console of wso2, [2014-11-07 09:39:20,401] ERROR - SmooksMediator Failed to filter source. org.milyn.SmooksException: Failed to filter source. at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:86) at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java

can wso2 carbon 4.1 run as a web app (war)?

浪尽此生 提交于 2019-12-02 08:23:12
I'm limited to what applications I can deploy in my environment, however, standard WAR files are usually not a problem. Can carbon 4.1.0 run as a web app? This link describes how it can be done for carbon 3.2.2. Are these steps still valid for 4.1.0? According to the answer in this link some functionality is limited in webapp mode for 3.2.2. What functionality is limited if 4.1.0 is deployed in webapp mode? EDIT: A webapp-mode folder is available in $CARBON_HOME C:\Users\snowc\Desktop\wso2carbon-4.1.0>type webapp-mode\README.txt Running WSO2 Carbon in Webapp mode ------------------------------