[Dev] [WSO2 IS] Getting user info from OpenID

2015-04-17 Thread DImuthu Upeksha
Hi, I use WSO2 IS 5.0.0 for authenticate users through OpenID. Currently I have created some mock users in IS with attributes like First Name, Last Name, Address, Organization and Country. After I get the access token, I sent a request to https://localhost:9443/oauth2/userinfo?schema=openid to

[Dev] ESB generating a PayloadFactory using JSON array

2014-05-18 Thread Dimuthu Upeksha
/attribute attributeattr3/attribute /attributes /format args/ /payloadFactory But I couldn't figure out a way to iterate over that array and generate above PayloadFactory mediator. Can someone please suggest me a way to do this? Thanks Dimuthu -- Dimuthu Upeksha Engineering Intern

Re: [Dev] [ESB] ESB Connector - Fault sequence problem

2014-05-17 Thread Dimuthu Upeksha
, Dimuthu Upeksha [via WSO2 Oxygen Tank] [hidden email] http://user/SendEmail.jtp?type=nodenode=96883i=0 wrote: Hi Ramindu, I added it faultSequence log level=full/ makefault version=soap11 code expression=get-property('ERROR_CODE')/ reason

Re: [Dev] [ESB] ESB Connector - Fault sequence problem

2014-05-15 Thread Dimuthu Upeksha
, The HTTP status code will always be 500 for a SOAP fault, which is what you're generating here. Your custom error code will be available in the message that gets returned within the body of the response. Thanks. On May 14, 2014 6:55 PM, Dimuthu Upeksha [via WSO2 Oxygen Tank] ml-node

Re: [Dev] [ESB] ESB Connector - Fault sequence problem

2014-05-15 Thread Dimuthu Upeksha
/ /faultSequence On Thu, May 15, 2014 at 3:41 PM, Dimuthu Upeksha dimut...@wso2.comwrote: I get following response. But I couldn't find error code (71) I have added at connector side. Only error message is shown inside response body. How can I get error code? HTTP/1.1 500 Internal Server

[Dev] [ESB] ESB Connector - Fault sequence problem

2014-05-14 Thread Dimuthu Upeksha
/ /faultSequence Then I tried sending a fault request to connector using SoapUI. As response I got error message correctly but status code was always 500. How can I get actual error code I have passed back to client? What is the standard way? Thanks Dimuthu -- Dimuthu Upeksha Engineering Intern WSO2 inc

[Dev] [App Factory] Update of Project :Provide ability to integrate code review tools

2014-03-17 Thread Dimuthu Upeksha
/crucible/download [4] http://phabricator.org/ [5]https://secure.phabricator.com/book/phabdev/article/conduit/ [6] http://getbarkeep.org/ [7] http://opensource.org/licenses/mit-license.php Thanks Dimuthu u -- Dimuthu Upeksha Engineering Intern WSO2 inc

[Dev] [AF] Usability imrpovements.

2014-03-05 Thread Dimuthu Upeksha
+a+Datasource+in+all+Lifecycle+Stages# In addition to above mentioned facts I think if there is a way to see server logs at App portal, it will be very helpful to Debug our apps. [1] https://docs.wso2.org/display/AF100/Reusing+a+Datasource+in+all+Lifecycle+Stages Thanks Dimuthu U -- Dimuthu Upeksha

[Dev] Combining WSO2 ESB with WSO2 AS

2014-02-16 Thread Dimuthu Upeksha
couldn't find the required repository. Can you please suggest me a way to do this? Is there some documentation about this? Thanks Dimuthu -- Dimuthu Upeksha Engineering Intern WSO2 inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman

Re: [Dev] Combining WSO2 ESB with WSO2 AS

2014-02-16 Thread Dimuthu Upeksha
. -- Dimuthu Upeksha Engineering Intern WSO2 inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] [Jaggery]Problem with response.sendRedirect

2014-02-09 Thread Dimuthu Upeksha
though you redirect to the login page, flow in the sane page will execute and you might have another redirect at the end. Regards, Venura On Thu, Feb 6, 2014 at 10:47 PM, Dimuthu Upeksha dimut...@wso2.comwrote: Hi all, In our project we use following commands to see whether an user has

[Dev] [Jaggery]Problem with parsing a number into integer

2014-02-09 Thread Dimuthu Upeksha
Hi all, In this simple jaggery code for(var i=0;i10;i++){ print(i); print(br/); } Output was like 0.0 1.0 I need to parse these outputs into integer. I tried parseInt(i) method but it also gave the same result. What could be the reason for that? Thanks Dimuthu -- Dimuthu Upeksha

Re: [Dev] [Jaggery]Problem with parsing a number into integer

2014-02-09 Thread Dimuthu Upeksha
Fixed. It was not a problem with parseInt method. It was a problem with print() operation in jaggery. Even if I run print(1) it prints 1.0. Easy fix is to enter print(i+) instead print(i) which converts the integer into a string. Thanks Dimuthu On Sun, Feb 9, 2014 at 5:23 PM, Dimuthu Upeksha

Re: [Dev] [Jaggery]Problem with parsing a number into integer

2014-02-09 Thread Dimuthu Upeksha
. Enterprise . Middleware* On Sun, Feb 9, 2014 at 7:00 PM, Dimuthu Upeksha dimut...@wso2.comwrote: Fixed. It was not a problem with parseInt method. It was a problem with print() operation in jaggery. Even if I run print(1) it prints 1.0. Easy fix is to enter print(i+) instead print(i) which

[Dev] [Jaggery]Problem with JSON parsing

2014-02-09 Thread Dimuthu Upeksha
project so now we are using JSON.parse(). What is the problem with parse()? Is it a bug? [1] http://jaggeryjs.org/apidocs/parse.jag Thanks Dimuthu -- Dimuthu Upeksha Engineering Intern WSO2 inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin

Re: [Dev] [ESB]LDAP Connector for WSO2 ESB : Asking for feedbacks

2014-02-08 Thread Dimuthu Upeksha
into this? Thanks, Samisa... Samisa Abeysinghe Vice President Developer Evangelism WSO2 Inc. http://wso2.com On Fri, Jan 31, 2014 at 9:34 AM, Dimuthu Upeksha dimut...@wso2.comwrote: Hi all, We are working on our intern project Infra portal. We needed to do some LDAP operations

[Dev] [Jaggery]Problem with response.sendRedirect

2014-02-06 Thread Dimuthu Upeksha
although it has redirected to login page. How can I stop executing that code below response.sendRedirect method? -- Dimuthu Upeksha Engineering Intern WSO2 inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] [Support Dev][ESB]Problem with sending JSON to ESB

2014-01-31 Thread Dimuthu Upeksha
Hi, Removing support-dev@ and including dev@ On Sat, Feb 1, 2014 at 10:41 AM, Selvaratnam Uthaiyashankar shan...@wso2.com wrote: Why this mail in support-dev@? it should go to dev@ On Sat, Feb 1, 2014 at 9:25 AM, Dimuthu Upeksha dimut...@wso2.com wrote: Hi, I was trying to send a REST

[Dev] [ESB]LDAP Connector for WSO2 ESB : Asking for feedbacks

2014-01-30 Thread Dimuthu Upeksha
we can do in this connector. [1] https://svn.wso2.com/wso2/interns/2013/dimuthuu/ldap_connector/ [2] http://dimuthuupeksha.blogspot.com/2014/01/ldap-connector-for-wso2-esb.html Thanks Dimuthu -- Dimuthu Upeksha Engineering Intern WSO2 inc. ___ Dev

[Dev] [Jaggerry]Need help to authenticate through ldap

2014-01-08 Thread Dimuthu Upeksha
Hi all, Can I have some sample codes or some tutorials about ldap authentication using jaggery? I am using Wso2 Application Server to host jaggery apps. Is it necessary to configure application server to support ldap authentication? Thank you Dimuthu -- Dimuthu Upeksha Engineering Intern WSO2

Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-09 Thread Dimuthu Upeksha
, Dimuthu Upeksha dimut...@wso2.comwrote: Hi Jeewantha, I created the PasswordCallbackHandler class and added above lines to the client. And added wss4j-1.6.4.jar to the class path also. Then I get following error --- Exception in thread main java.lang.NoSuchMethodError

[Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
Hi all, I am trying to implement a secure client to a secure proxy service in ESB. However I am getting an exception [2] at line [3]. I tried to capture packets going out from the client using tcpMon but I found nothing going out. It seems like a dependancy problem in the client but not sure. What

Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
yes. Seems like I missed a library but I don't know correct one to import. On Mon, Dec 9, 2013 at 9:53 AM, Nirmal Fernando nir...@wso2.com wrote: Is this in client side? Caused by: java.lang.ClassNotFoundException: samples.userguide.PWCallback On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu

Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
adding it to client's options [1] [1] http://wso2.com/library/3733/ Jeewantha On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha dimut...@wso2.com wrote: Hi all, I am trying to implement a secure client to a secure proxy service in ESB. However I am getting an exception [2] at line [3]. I

Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
request with Username and password. Rampart needs a password callback handler to get the password. Jeewantha On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha dimut...@wso2.comwrote: Hi Jeewantha, The class PasswordCallbackHandler can not be found in axis2 or rampart libs. What

Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
this is not documented properly except for this one [2] [1] http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHandlerConstants.html#USER [2] http://wso2.com/library/3733/ Jeewantha On Mon, Dec 9, 2013 at 10:27 AM, Dimuthu Upeksha dimut...@wso2.comwrote: I did

[Dev] [ESB] Problem with creating a secure client

2013-12-06 Thread Dimuthu Upeksha
Hi all, To create a secure proxy service I followed the following steps. 1. Carbon home -Proxy service - Secure proxy 2. Filled necessary fields and created the secure proxy 3. Service dashboard of new service - Generate axis2 client (Data binding - adb) Then [1] was downloaded and there was a

Re: [Dev] [ESB] Problem with creating a secure client

2013-12-06 Thread Dimuthu Upeksha
chat to Carbon team, they're looking into it now. [1] [Dev] Chunk04 Build Failure in clean repo On Fri, Dec 6, 2013 at 2:42 PM, Dimuthu Upeksha dimut...@wso2.com wrote: Hi all, To create a secure proxy service I followed the following steps. 1. Carbon home -Proxy service - Secure proxy 2

Re: [Dev] [ESB] Problem with creating a secure client

2013-12-06 Thread Dimuthu Upeksha
PM, Dimuthu Upeksha dimut...@wso2.comwrote: Hi all, To create a secure proxy service I followed the following steps. 1. Carbon home -Proxy service - Secure proxy 2. Filled necessary fields and created the secure proxy 3. Service dashboard of new service - Generate axis2 client (Data binding

Re: [Dev] [ESB] Problem with creating a secure client

2013-12-06 Thread Dimuthu Upeksha
] [Dev] Chunk04 Build Failure in clean repo On Fri, Dec 6, 2013 at 2:42 PM, Dimuthu Upeksha dimut...@wso2.comwrote: Hi all, To create a secure proxy service I followed the following steps. 1. Carbon home -Proxy service - Secure proxy 2. Filled necessary fields and created the secure proxy 3

Re: [Dev] [ESB] Problem with creating a secure client

2013-12-06 Thread Dimuthu Upeksha
Hi all, Great. That worked like a charm. Thank you. :) On Fri, Dec 6, 2013 at 5:11 PM, Nirmal Fernando nir...@wso2.com wrote: Hi Dimuthu, Remove the previous axis2 dependency and add the one Kasun suggested. On Fri, Dec 6, 2013 at 5:08 PM, Dimuthu Upeksha dimut...@wso2.com wrote: Kasun

[Dev] [ESB]Problem with sample 153

2013-12-04 Thread Dimuthu Upeksha
Hi all, In sample 153 [1] it is mentioned to run the client using --- ant stockquote -Dtrpurl=http://localhost:8280/services/StockQuoteProxy -Dpolicy=./../../repository/samples/resources/policy/client_policy_3.xml - When I run the client following exception came out.

Re: [Dev] [ESB]Need clarification

2013-12-02 Thread Dimuthu Upeksha
.org/display/ESB470/Sample+11%3A+Full+Registry-Based+Configuration+and+Sharing+a+Configuration+Between+Multiple+Instances Dimuthu On Mon, Dec 2, 2013 at 11:17 AM, Dimuthu Upeksha dimut...@wso2.com wrote: Hi all, I am referring to sample [1] provided in WSO2 documentation. It provides 2 ways

Re: [Dev] [ESB]Need clarification

2013-12-01 Thread Dimuthu Upeksha
at 10:40 AM, Dimuthu Upeksha dimut...@wso2.com wrote: Thank you. I'll try it and let you know Dimuthu On Sun, Dec 1, 2013 at 10:05 AM, Nirmal Fernando nir...@wso2.com wrote: Hi Dimuthu, In general, if you want to convert a message that comes to ESB, to the format of back-end service

[Dev] [ESB]Need clarification

2013-11-30 Thread Dimuthu Upeksha
what is the role of ESB as a message mediator? Correct me if I'm wrong. Thank you Best Regards [1] http://docs.wso2.org/display/ESB470/Lesson+Two%3A+Mediating+Messages [2] https://www.dropbox.com/s/skxozdvu61kyd0c/packet_capture Dimuthu Upeksha

Re: [Dev] [ESB]Need clarification

2013-11-30 Thread Dimuthu Upeksha
as well as a client. 1. Client - ESB (ESB Acting as a server) 2. ESB - Axis2 Server (ESB Acting as a client) So 50239 might be the be the Ephemeral port of ESB when it is communicating with axis2 server. On Sat, Nov 30, 2013 at 7:34 PM, Dimuthu Upeksha dimut...@wso2.comwrote: Hi all

Re: [Dev] [ESB]Need clarification

2013-11-30 Thread Dimuthu Upeksha
be done through sequences. But I don't know a way to do it. On Sat, Nov 30, 2013 at 8:44 PM, Dimuthu Upeksha dimut...@wso2.com wrote: Hi Nirmal, Udana Thank you for the clarification. It helped me a lot. I thought 50239 is a client's port. My bad. Thank you Dimuthu On Sat, Nov 30, 2013

Re: [Dev] [ESB]Need clarification

2013-11-30 Thread Dimuthu Upeksha
a simple transformation like your example, you could simply use a XSLT transformation [2]. Hope this helps. [1] http://docs.wso2.org/display/ESB470/PayloadFactory+Mediator [2] http://docs.wso2.org/display/ESB470/XSLT+Mediator On Sun, Dec 1, 2013 at 9:21 AM, Dimuthu Upeksha dimut...@wso2.com