Re: [Dev] Restrict API wsdl

2019-01-15 Thread Tharindu Dharmarathna
Hi Mintu,

You can handle above requirement by API Visibility as per [1]. Where users
who have specific role only can see the APIS under the store.

[1] -
https://docs.wso2.com/display/AM260/Key+Concepts#KeyConcepts-APIvisibility



On Wed, Dec 19, 2018 at 10:18 AM Mintu Eapen  wrote:

> Hi,
>
>
>
> I have got a requirement.. that there should be two type of APIS – APIS
> visible in the public url… and APIs available only for internal users.
>
>
>
> So, in such case.. even the WSDL of the API should not be available over
> the external url.
>
>
>
>
>
> So, is it possible to have two instances of store.. and we can
> specifically mention if a API is to be exposed both on the public and
> internal url.. or just internal url…
>
>
>
>
>
> Any solution for this ?
>
>
>
>
>
> Thanks in advance
>
>
>
>
>
>
>
>
> * Mintu Eapen *
>
> *T:*   *F:  *  P.O.BOX*:* 4700, Dubai U.A.E
> *E:* mea...@dc.gov.ae
>
> Main building - MAKANI# 3089993465
> Personal Status building - MAKANI# 3427491952
> 
> 
>
> *مينتو ايبان*
>
> *هاتف:**فاكس: * *ص.ب:* 4700 دبي  إ.ع.م
> *البريد الإلكتروني:* mea...@dc.gov.ae
>
> هذه الرسالة و مرفقاتها تمثل وثيقة سرية قد تحتوي على معلومات تتمتع بحماية
> وحصانة قانونية، إذا لم تكن الشخص المعني بهذه الرسالة يجب عليك إبلاغنا فورا
> عن طريق صفحة التواصل
>  على موقع
> المحاكم ، و حذف الرسالة و مرفقاتها من الحاسب الآلي الخاص بك. ولا يجوز لك
> نسخ هذه الرسالة و مرفقاتها أو أي جزء منها، أو البوح بمحتوياتها لأي شخص أو
> استعمالها لأي غرض. علماً بأن الإفادات و الآراء التي تحويها هذه الرسالة تعبر
> فقط عن رأي المُرسل و ليس بالضرورة رأي محاكم دبي، ولا تتحمل ( محاكم دبي) أي
> مسئولية عن الأضرار الناتجة عن أي فيروسات قد يحملها هذا البريد
> *يرجى التفكير في البيئة قبل طباعة هذا البريد الالكتروني ومرفقاته*
>
> Disclaimer: This message and its attachment are confidential and may
> contain legally privileged information. If you are not the intended
> recipient, please notify us immediately on our Contact Us
>  page or delete
> this message and its attachment. You should not copy this message or
> disclose its contents to any other person or use it for any purpose.
> Statements and opinions expressed in this e-mail are those of the sender,
> and do not necessarily reflect those of Dubai Courts. Dubai Courts accepts
> no liability for damage caused by any virus transmitted by this email
> *Please consider the environment before printing this e-mail and
> attachments*
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 

*Tharindu Dharmarathna*Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94779109091*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Announce] [Architecture] WSO2 Product Installation Resources Released!

2019-01-15 Thread Chiranga Alwis
WSO2 Installation Experience team is pleased to announce the release of
Docker and Docker Compose resources for WSO2 products.

*Docker*
Released artifacts:

   - WSO2 API Manager v2.6.0.2 -
   https://github.com/wso2/docker-apim/releases/tag/v2.6.0.2
   - WSO2 Enterprise Integrator v6.4.0.2 -
   https://github.com/wso2/docker-ei/releases/tag/v6.4.0.2
   - WSO2 Identity Server v5.7.0.2 -
   https://github.com/wso2/docker-is/releases/tag/v5.7.0.2
   - WSO2 Stream Processor v4.3.0.2 -
   https://github.com/wso2/docker-sp/releases/tag/v4.3.0.2

Issues:

   - WSO2 API Manager - https://github.com/wso2/docker-apim/issues
   - WSO2 Enterprise Integrator - https://github.com/wso2/docker-ei/issues
   - WSO2 Identity Server - https://github.com/wso2/docker-is/issues
   - WSO2 Stream Processor - https://github.com/wso2/docker-sp/issues


*How You Can Contribute*
Join our mailing list and correspond with the developers directly.

Developer List: dev@wso2.org
User List: u...@wso2.org

*Reporting Issues*
We encourage you to report issues and documentation faults regarding WSO2
product Docker and Docker Compose resources through respective repositories
by creating issues.

Thank you!
WSO2 Installation Experience Team

-- 
Yours sincerely,

*Chiranga Alwis*
Software Engineer | WSO2

*Mobile : *+94775930497
*Email: *chirangaal...@gmail.com
*LinkedIn: *https://lk.linkedin.com/in/chiranga-alwis-391342a9
*Medium:* https://medium.com/@chirangaalwis


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Customizing oauth2 introspection response

2019-01-15 Thread Shiva Kumar K R
Hi WSO2 Team,
I am using oauth2 token introspection API to verify token status and get
user information. Is it possible to customize the response body of this API
like adding new claim or modifying existing claim?

Thank you,
Shiva
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to Store Log Message in a Registry File in EI

2019-01-15 Thread Shakila Sasikaran
Hi aman,

As far as I understood you want to write the value of the property into the
registry. If so, please try with the following script mediator.

   




On Thu, Jan 10, 2019 at 3:17 PM Aman Singh  wrote:

> Hi Devs,
>
> In WSO2 ESB , I am using a Class Mediator which returns me a "string" as a
> message which I store say in a Log Mediator. Is there any way possible that
> I can store this Log message in a Registry File in my EI.
>
> Sample Code:-
>
>  transports="http https" xmlns="http://ws.apache.org/ns/synapse";>
> 
> 
> name="com.rocky.StringGenerator"/>
> 
>  name="String-Generation-from-Java-Class"/>
> 
> 
> 
> 
> 
> 
> 
>
> I want to Store the message inside "sampleProperty" in a Registry in EI.
> Help would be really appreciated.
>
> Thank you,
> Aman
>


-- 
Shakila Sasikaran
Software Engineer
Mobile :+94 (0) 77 526 6848
shak...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fw: authentication method

2019-01-15 Thread roberto palmarin
Hi everyone,
I have a shibboleth service provider where a path is to protect with user and 
password and a path is to protect with client certificate.

 On the SP side, I have the possibility to modify the different 
authnContextClassRef parameter for the two folders.
IdP side how and what should I configure? I tried to use ws02 adaptive 
authentication but I can not read these parameters. can someone help me?

Thank's
Roberto  ___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] authentication method

2019-01-15 Thread roberto palmarin
Hi everyone,
I have a shibboleth service provider where a path is to protect with user and 
password and a path is to protect with client certificate.

 On the SP side, I have the possibility to modify the different 
authnContextClassRef parameter for the two folders.
IdP side how and what should I configure? I tried to use ws02 adaptive 
authentication but I can not read these parameters. can someone help me?

Thank's
Roberto___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to Store Log Message in a Registry File in EI

2019-01-15 Thread Aman Singh
Hi Devs,

In WSO2 ESB , I am using a Class Mediator which returns me a "string" as a
message which I store say in a Log Mediator. Is there any way possible that
I can store this Log message in a Registry File in my EI.

Sample Code:-

http://ws.apache.org/ns/synapse";>


   










I want to Store the message inside "sampleProperty" in a Registry in EI.
Help would be really appreciated.

Thank you,
Aman
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSDL based proxy for SOAP Calculator

2019-01-15 Thread Ishara Cooray
Hi Aman,

Were you able to test your proxy service using SOAP UI as above suggested?
Would you mind sharing the exact use case you are trying to achieve?

Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware


On Fri, Dec 21, 2018 at 11:08 AM Lahiru Madushanka 
wrote:

> Hi Aman,
>
> You can call the above proxy using SoapUI.
> Use the following sample payload.
>
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:tem="http://tempuri.org/";>
>
>
>   
>  123
>  123
>   
>
> 
>
> Thanks,
> Lahiru
>
> On Fri, Dec 21, 2018 at 10:46 AM Aman Singh 
> wrote:
>
>> Hi Devs,
>>
>> I have a sample WSDL(url below) SOAP service for Calculator, which
>> performs simple operations like Add, Subtract, Multiply, Divide.
>>
>> I want to implement and perform say ADD operation. I have  created a WSDL
>> based proxy with required WSDl endpoint, service and port.
>>
>> Can someone please explain me how to proceed for performing ADD
>> operation, I am not getting any idea what to do next.
>>
>> My WSDL proxy service code:-
>>
>> http://ws.apache.org/ns/synapse";>
>> 
>> > name="endpoint_urn_uuid_1FF78996948B9A0B6E14565751214774-1218279313">
>> http://www.dneonline.com/calculator.asmx?WSDL"/>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> WSDL URL:- http://www.dneonline.com/calculator.asmx?WSDL
>>
>> Help would be appreciated.
>>
>> Thank you,
>> Aman.
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding the HTTP status code to be used if the response is invalid

2019-01-15 Thread Harsha Kumara
+1 we should use 422.

[1]
https://www.quora.com/Which-HTTP-code-is-best-suited-for-validation-errors-400-or-422
[2]
https://stackoverflow.com/questions/1959947/whats-an-appropriate-http-status-code-to-return-by-a-rest-api-service-for-a-val

On Wed, Jan 9, 2019 at 3:22 PM Uvindra Dias Jayasinha 
wrote:

> I think 422 is the most appropriate given your use case of validating if a
> message matches a given schema. So you can receive a valid JSON or XML(it's
> not malformed hence it is not a bad request(400)), but it may not match
> with the message schema definition you are matching against.
>
> The specs dont seem to talk about processing from the perspective of the
> response. I guess you can use the same code used for the request.
>
> On Wed, 9 Jan 2019 at 14:54, Shalki Wenushika  wrote:
>
>> Hi all,
>>
>> This is related to the mail thread subjected as “[Architecture]API schema
>> based request/response validator for Microgateway”. I’m validating
>> requests/responses coming to the microgateway and send error messages to
>> the client if the request/response is invalid.
>>
>> When a client sends a request to the microgateway if the request is
>> invalid I’m sending an error message with the HTTP status code
>> 422(Unprocessable entity) to the client. And also I’m doing the response
>> validation. If the response coming from the backend is invalid I send an
>> error message to the client. I need to know what will be the most
>> appropriate HTTP status code to be included in the error if the response is
>> invalid.
>>
>> Thank you!
>>
>> --
>>
>> *Shalki Wenushika*
>> *Software Engineering Intern*
>> WSO2  (University of Moratuwa)
>> *mobile *: *+94 716792399* |   *email *:
>> 
>> wenush...@wso2.com
>>
>>
>>
>>
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>


-- 

*Harsha Kumara*

Associate Technical Lead, WSO2 Inc.
Mobile: +94775505618
Email: hars...@wso2.coim
Blog: harshcreationz.blogspot.com

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remote login to analytics ok but SQL errors on EI_Analytics_StatApp

2019-01-15 Thread Bernard Paris
Hello  Niveathika

it's ok, thank you very much for your answer.

Bernard

Le 29 nov. 2018 à 12:40, Niveathika Rajendran 
mailto:niveath...@wso2.com>> a écrit :

Hi Bernard,

The ConfigEntryTable[1] is used to store the Tracing details of an EI flow, if 
the flow is really long this can easily exceed the "6000" character limit set 
in the coloumn definition. If the coloum length is not enough you can increase 
it by increasing the
field.length="configData:6000"
in the siddhi app residing in 
/wso2/analytics/wso2/worker/deployment/siddhi-files directory. Please 
note for this to be valid, the table must be deleted and created again by 
deploying the siddhi app.

Please note, tracing is not recommened to be enabled y default in production 
environment as it will lead to high amount of data being persisted which can 
lead to performance drop.

Hope this solves the problem!

[1] 
https://github.com/wso2/analytics-solutions/blob/master/features/ei-analytics-feature/org.wso2.analytics.solutions.ei.analytics.feature/src/main/resources/siddhi-files/EI_Analytics_StatApp.siddhi#L51

Best Regards,
Niveathika Rajendran,
Senior Software Engineer.
Mobile : +94 077 903 7536

[http://c.content.wso2.com/signatures/wso2-signature-general.png]



On Wed, Nov 28, 2018 at 9:13 PM Bernard Paris  
wrote:
Hi Niveathika

I checked my carbon.xml and found missing block related to
I corrected it and now the client can connect to analytics, great !

Anyway, the message about any "CryptoService.Secret" i missing is still logged 
at server startup.
The property "CryptoService.Secret" is never referenced in any of the config 
files and the documentation I found do not tell a word about it.

But ok, I can live with this.
The connexion between the agent and analytics  server is now ok, I can see 
datas report in the analytics dashboard console.
Anyway there are some errors in the worker logs related to data collects: it 
seems some SQL request are wrong:

[2018-11-28 16:30:07,921] ERROR 
{org.wso2.siddhi.core.stream.input.source.InputEventHandler} - Error on 
'EI_Analytics_StatApp'. Cannot execute update/insert operation (update) on 
table 'ConfigEntryTable' with SQL query INSERT INTO ConfigEntryTable 
(metaTenantId , hashcode , entryName , configData , eventTimestamp  ) VALUES 
(?, ?, ?, ?, ?) . Error in applying transport property mapping for 'wso2event' 
source at 'ConfigEntryEventStream' stream. 
org.wso2.extension.siddhi.store.rdbms.exception.RDBMSTableException: Error on 
'EI_Analytics_StatApp'. Cannot execute update/insert operation (update) on 
table 'ConfigEntryTable' with SQL query INSERT INTO ConfigEntryTable 
(metaTenantId , hashcode , entryName , configData , eventTimestamp  ) VALUES 
(?, ?, ?, ?, ?) .
at 
org.wso2.extension.siddhi.store.rdbms.RDBMSEventTable.batchProcessInsert(RDBMSEventTable.java:733)
at 
org.wso2.extension.siddhi.store.rdbms.RDBMSEventTable.updateOrAdd(RDBMSEventTable.java:622)
at 
org.wso2.siddhi.core.table.record.AbstractRecordTable.updateOrAdd(AbstractRecordTable.java:323)
at org.wso2.siddhi.core.table.Table.updateOrAddEvents(Table.java:288)
at 
org.wso2.siddhi.core.query.output.callback.UpdateOrInsertTableCallback.send(UpdateOrInsertTableCallback.java:78)


Thanks,
Bernard



Le 27 nov. 2018 à 17:35, Niveathika Rajendran  a écrit :

Hi Bernard,

Yes, it could be.

After analysing the workflow, I have concluded the following,
1. Encryption failing - Leads to an empty password
2. The login credentials send to SP will be as follows,  "admin:" i.e, 
username: admin and password empty
3. SP is refusing connection as it is a NOT valid credential

Since the encryption is failing, please check on the mentioned configs in 
"Configuring Keystores[1]"

[1] 
https://docs.wso2.com/display/ADMIN44x/Configuring+Keystores+in+WSO2+Products

Best Regards,
Niveathika Rajendran,
Senior Software Engineer.
Mobile : +94 077 903 7536

[http://c.content.wso2.com/signatures/wso2-signature-general.png]



On Tue, Nov 27, 2018 at 9:30 PM Bernard Paris  
wrote:

Starting EI-640 server I see this

[2018-11-27 16:56:33,612] [EI-Core]  INFO - DefaultCryptoProviderComponent 
'CryptoService.Secret' property has not been set. 
'org.wso2.carbon.crypto.provider.SymmetricKeyInternalCryptoProvider' won't be 
registered as an internal crypto provider. Please set the secret if the 
provider needs to be registered.

What is about ?   Could it be related with the issue ?


Bernard


Le 27 nov. 2018 à 11:57, Bernard Paris  a écrit :

Hi,

I have found a  data-agent-config.xml  file under  {EI_HOME}/conf/data-bridge/  
 where lines about SSL and client-trustore.jks  were commented by default.

I uncommented these lines and restart the server from which datas are to be 
sent to remote analytics but no way, that does absolutely no changes to my 
issue:
Caused by: ThriftAuthenticationException(message:wrong userName or password)

Is it necessarily to define client-trustore in this file ? (what is the one