w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » WSO2 » Page 1
WSO2ESB Create a custom EntitlementCallbackHandler
You can use action property to define your operation https://docs.wso2.com/display/ESB481/Entitlement+Mediator

Categories : Wso2

PKIX path building failed in WSO2 ESB
I had a similar problem with another wso2 product. I had successfully imported the certificate into the store. It appears it only reloads the keystore on restart of the server, so yoo will have to restart your server (if you haven't already). Also, there are 2 keystores, the wso2carbon.jks (which is what I assume you are referring to) and the client-truststore.jks. You maky need to import it i

Categories : Wso2

WSO2 Cloud Gateway How to add new proxy service
In WSO2-CG it is not possible to add directly a new entry, it has to be executed from others products from WSO2 stack where the CG agent is installed, therefore WSO2-CG only works with products within WSO2 stack

Categories : Wso2

WSO2 ESB - Java 7 Watch Service
Try VFS(Virtual file system transport) transport. It will pick files in a configured time period..Samples are listed here

Categories : Wso2

Do I need any other wso2 product or ESB is just fine?
Please find my answer.. Do protocol Bridging (eg: rest to soap ---> ESB Apply data transformation (apply xslt on xml) ----> ESB Content based routing ----> ESB Load balancing ---> ESB can be used. But i prefer Apache HTTP and Nginx. They are more intended for that purpose Create authentication and authorization layer to legacy services (authentication via oauth 1.0a) --> ESB can be

Categories : Wso2

WSO2 Self Registration Confirmation Email
Are you working on IS 5.0.0? I went through the code and it seems that the sending of emails is commented out. Simply commenting it in didn't work. But it worked for me, if you register the user without specifying a password. In that use case the server runs through a different part of code which really sends out emails.

Categories : Wso2

wso2 esb twitter connector not invoking the twitter api
I could solve the above issue with slight modification to the proxy. I added respond mediator and got the expected result. The working proxy is as per given below. <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="twitter-connector-proxy" transports="http https" startOnLoad="true" trace="disable"> <target> <inSequence>

Categories : Wso2

Swagger definition in WSO2 API MANAGER?
In API Manager 1.7.0 or previous versions, we are creating the Swagger definition at the API creation time only. So if some one add more API resources by editing APIs, those will not get reflected in the Swagger JSON. The reason is in those API Manager versions, we do not provide the complete support to build swagger json from the UI (ex:add parameters). So it should be manually updated according

Categories : Wso2

how to extend function in jaggery
I have found source code of ScriptableObject, like Log, Database, File. I can change those files and recompile them, but I cannot put into emm to make it run. Because I only can find source code of org.jaggeryjs.hostobjects.db_0.9.0.ALPHA4_wso2v1.jar. and emm needs rg.jaggeryjs.hostobjects.db_0.9.0.ALPHA4_wso2v3.jar. I have tried to search svn from wso2. But still cannot find 0.9.0.ALPHA4.wso2v

Categories : Wso2

How to create a Global Variable in Wso2 ESB
You can save the value as a Local Registry Entry and use it from inside proxy services. For example if I have a Local Entry called 'MyURL' I can use it as below synapse:get-property('MyURL') Another example; <log level="custom"> <property name="MyURL" expression="synapse:get-property('MyURL')"/> </log>

Categories : Wso2

WSO2 Identity Server 5.0.0 fails to return user claims in SAMLResponse for user from secondary user store
I think this is bug in Identity Server 5.0.0. When you are using SAML2 SSO, user can login to Identity Server with both username with domain name and username without domain name. Basically bob and foo.com/bob must both works and returns the bob user's attributes from foo.com user store. However there is issue with IS 5.0.0, if secondary user store user login without domain name, Identity Se

Categories : Wso2

How to update LocalEntry in WSO2 ESB configuration xml file
Finally I find the answer for this :) <registry provider="org.wso2.carbon.mediation.registry.ESBRegistry"> should be change into <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">

Categories : Wso2

How to configure multiple address endpoints to a single endpoint
You can use a single proxy in ESB and call different DSS endpoints based on the message contents. Please go through the mediators under Filter category. For your scenario, you may use the Switch Mediator. From that, you can check for different conditions and send to appropriate endpoint. For eg: please refer Content-Based Router Pattern You may use a mediator like Payload Factory to transform

Categories : Wso2

XML to XML transformation with wso2
I didn't go through your example thoroughly, but it seems the error is that the Smooks Mediator cannot find the registry resource. Looks like there is an issue when you specify the smooks config-key attribute. When you are working with the registry, you need to know that there are different registry spaces. If you refer a resource via "gov:", the resource will be in "/_system/governance". You ne

Categories : Wso2

WSO2 - Features currently supported by enterprises mobility manager?
WSO2 EMM does not support Email containerization & app containerization at the moment. But you could use WSO2 EMM to configure Email settings & control the apps that can be installed on a device.

Categories : Wso2

com.google.gson.stream.MalformedJsonException when logging to API Store
We put in some logging in the API gateway and found that the API gateway is trying to access an url which its not able to get to. We fixed the url and the issue was resolved. Error log: Caused by: org.mozilla.javascript.WrappedException: Wrapped com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected EOF at line 1 column 11 (http#17) at org.mozilla.java

Categories : Wso2

(WSO2ESB) Is it possible to set off a Task from within a Sequence?
Add this script inside your inSequence : <script language="js">importPackage(Packages.org.apache.synapse); importPackage(Packages.org.apache.synapse.config); importPackage(Packages.org.apache.synapse.task); var sc = mc.getConfiguration(); var task = sc.getStartup("TestTask"); var td = task.getTaskDescription() td.setCount(0); //td.setCron(null); task.setTa

Categories : Wso2

Disabling WSO2 Certificate Validation
Can you see the WSDL using your internet Browser (with the same URI) ? Don't you have a corporate proxy ? In this case, configure it in WSO2 adding thoses properties in your transportSender conf : <parameter name="http.proxyHost" locked="false">localhost</parameter> <parameter name="http.proxyPort" locked="false">8080</parameter> (update hostname and port...) Have a l

Categories : Wso2

Howto use WSO2 IS SOAP service call targeting only secondary user stores
Say there is a use store called FOO then you need to pass the search pattern to list users as FOO/* adminStub.listUsers("FOO/*", 10); When you are using RemoteUserStoreManagerService , you can use FOO/ prefix to retrieve data from FOO user store. Say if you want to retrieve user attribute from a user in FOO then user name must be passed as FOO/asela

Categories : Wso2

updating wso2is 5.0 throwing error
Did you configure Identity Server forMySQL or any other db? This works with default H2 database. But i found some issue with MySQL script of Identity Server. I think that may be the issue for this. If you open the <IS_HOME>/dbscripts/identity/application-mgt/mysql.sql file, you can see following entry INSERT INTO IDP_AUTHENTICATOR (TENANT_ID, IDP_ID, NAME) VALUES (-1234, 1, 'saml2sso')

Categories : Wso2

web service to web service integratrion with WSO2
Since you are new to WSO2 ESB, I think you should look at ESB Samples. There are many samples including Enrich mediator. For your scenario, you should be able to use the Payload Factory Mediator. Please refer the sample for Payload Factory Mediator. Also look at Enterprise Integration Patterns with WSO2 ESB. You may look at Message Translator pattern. I hope this helps.

Categories : Wso2

Account Locking Not Working in WSO2 Identity Server 5.0.0
The operation via the admin console is cached and is currently set to 15 mins. Hence the account lock should have worked but you need to wait 15 mins for this to come into effect. The web service calls should be immediate though.

Categories : Wso2

How to build the latest Version of WSO2 Identity Server
Latest version of Identity Server is 5.0.0. Using this release matrix, you can find the branch, chunk and patch that identity server 5.0.0 has been released. It is Turing branch , chunk 11 and kernal patch 0008. You can find chuck 11 from here and kernel patch from here However if you need to build the current version. Then i am not sure the exact chunk and patch as it is not release. However

Categories : Wso2

WSO2 ESB: suspended anonymousendpoint
Use a named endpoint and configure suspension and timeout, have a look there : https://docs.wso2.com/display/ESB481/Endpoint+Error+Handling If you don't want to loose any message and if your http endpoint can be down for a long time for exemple, you should consider using guaranteed delivery with message Store and message Processor, have a look there : https://docs.wso2.com/display/IntegrationPatt

Categories : Wso2

WSO2 Identity Server 5.0 does NOT include Self Registration (Sign-Up) Page?
This is available in the dashboard: https://<url>:9443/dashboard/ You can use the following service for signing up users: https://<url>:9443/services/UserInformationRecoveryService?wsdl Note that in WSO2 products, admin services WSDL's are hidden by default. You can expose them by setting HideAdminServiceWSDLs parameter to 'false' in <IS>/repository/conf/carbon.xml.

Categories : Wso2

How to redeploy crashed proxy service on WSO2 ESB
For your proxy, i believe you used option. That is why you get that error. If you go to repository/deployment/server/synapse/default/proxy folder, you will see the proxy configuration which you created. You can make a copy from that, and after server starts fine, you can deploy that file in the same location. It will be deployed successfully

Categories : Wso2

Default endpoint in esb
The question is not clear. For all proxy services your endpoints are different or not? I mean, all different endpoints calling same dataservice or different. If they are different, you need to have different endpoints. If all endpoints point same dataservice, then you do not need to have multiple copy of same endpoint. Define only one endpoint and use that in all proxyservices. When you define pro

Categories : Wso2

Sending large payloads via WSO2 ESB
You could try to configure Message Relay in repository/conf/axis2.xml, you configure : org.wso2.carbon.relay.BinaryRelayBuilder as the messageBuilder's class associated with your contentType (text/xml for exemple if soap11 of application/soap+xml with soap12) org.wso2.carbon.relay.ExpandingMessageFormatter as the messageFormatter's class Have a look there : https://docs.wso2.com/display/ESB4

Categories : Wso2

Siddhi Query for Geofence Entry Detection
Since you are trying to detect only the transitions a -> b, you can use 'sequences' here instead of patterns. In Siddhi, when you use a sequence, it matches consecutive events without any other events in-between. In contrast, patterns lets other events to exist in-between. Also in this case, since multiple flights may enter the same geofence concurrently, you'll have to partition by flight id (

Categories : Wso2

wso2 is and esb UTF8
I assume that you are using a MySQL cluster with NDB engine. Therefore you need to run the MySQL script which can be found inside the <IS_HOME>/dbscripts/mysql_cluster.sql In addition Identity Server also has identity scripts under <IS_HOME>/dbscripts/identity/ and IS_HOME>/dbscripts/identity/application-mgt/. It have not shipped the identity script for mysql_cluster with NDB engin

Categories : Wso2

Why does wso2 server.sh not pick .jars from lib folder
You have to put the database connector jar into DSS_HOME/repository/components/lib directory and restart the server[1]. It adds them into server class path. [1]https://docs.wso2.com/display/DSS301/Changing+the+RDBMS

Categories : Wso2

WSO2 ESB JIRA connector
You can use braces to specify dynamic values and xpath or JSON path (with "json-eval") to manipulate message payload, samples : <summary>{concat('Issue sent form user: ', json-eval($.user), ' related to object: ', json-eval($.objId)}</summary> <summary>{concat('Issue sent form user: ', //user/text(), ' related to object: ', //objId/text()}</summary> see https://docs.ws

Categories : Wso2

can WSO2 BAM work only with Oracle DB?
For the stat store, we use cassandra. It gives high read/write performance than RDBMS. You can not configure RDBMS instead of Cassandra. For other DB related operations you can use any RDBMS( mssql/mysql..). Eg: registry/user store

Categories : Wso2

WSO2 BPS 3.2 human task assignment to multiple people Via expressions e.g., by retrieving data from the input message of the human task
To clarify what you are doing now: when you assign to potentialOwners, that means that any one of the people in that group can complete the task. That is not the same as: all people have to carry out the task. What you probably want, is: <htd:potentialOwners><htd:parallel type="all">...owners...</htd:parallel><htd:potentialOwners> I do not know if WSO2 supports that t

Categories : Wso2

How to send to multiple endpoints in wso2esb
Please try by changing the send mediator in your proxy as mentioned here it may help you <send receive="AuditSeq"> <endpoint> <address uri="http://localhost:8081/middleware/services/test1" format="soap11"/> </endpoint> </send>

Categories : Wso2

WSO2 IS 5.0.0 saml authentication always redirects to localhost
There is a file named identity.xml in side IS_HOME/repository/conf which carries following configuration. <SSOService> <IdentityProviderURL>https://localhost:9443/samlsso</IdentityProviderURL> Please configuring this with your environment parameters. Thanks, Pushpalanka

Categories : Wso2

How to send message out Using Send mediator in wso2esb-4.8.1
First thing, you must change the outSequence in your proxy : you should clone the response message with clone mediator in the first target, you send back the reponse to the client with <send/> in the second target, you call your AuditSeq with <sequence key="AuditSeq"/> Second thing, I can't find OUT_ONLY property set to true, so, your audit service at http://localhost:8081/middle

Categories : Wso2

Load Balancing endpoint in wso2esb 4.7.0
Have a look at this sample. Or else if you can refer to a saved endpoint as below; <target endpoint="TestAddressEndpoint"/> Using this is a proxy service; <proxy xmlns="http://ws.apache.org/ns/synapse" name="MyProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target endpoint="TestAddressEndpoint"/>

Categories : Wso2

Restrict the apps
To address your questions, 1) You could have alternatives. Suggestion would be to entirely block the the custom app installation or prevent it from being getting opened when it has specifically being blocked by the EMM side. For that you could enhance the functionality in EMM agent and block the blacklisted app openings. 2) If this is a system app this could be prevented. Also check Device admin

Categories : Wso2




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.