Hi Isura

In the given configuration there is a property as follows
<parameter name="AuthorizationAction"
locked="true">/permission/admin/login</parameter>

Use this parameter for the methods that you want to secure. In this way it
should work AFAIK.

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Fri, Aug 8, 2014 at 3:44 PM, Harsha Kumara <[email protected]> wrote:

> Hi Isura,
> AFAIK, you can't specify permission for method. But if you need you can
> move those method to separate class and grant or revoke the permissions.
> Thanks,
> Harsha
>
>
> On Fri, Aug 8, 2014 at 3:37 PM, Isura Karunaratne <[email protected]> wrote:
>
>> Hi All,
>>
>> Following is a sample axis2 service.xml configuration,
>>
>>
>> <serviceGroup>
>>
>> <service name="MyService" scope="transportsession">
>>  <transports>
>> <transport>https</transport>
>> </transports>
>>  <parameter name="ServiceClass" locked="false">
>> pathToMyService
>> </parameter>
>>  <parameter name="adminService" locked="true">true</parameter>
>> <parameter name="hiddenService" locked="false">false</parameter>
>>  <parameter name="AuthorizationAction"
>> locked="true">/permission/admin/login
>> </parameter>
>>  </service>
>>
>> </serviceGroup>
>>
>>
>>
>> When I try to send soap request via Soap UI it requires authentication
>> for all service methods. Following parameter can be used to remove the
>> authentication of all service methods.
>>
>> <parameter name="DoAuthentication" locked="true">false</parameter>
>>
>>
>>
>> Is there anyway that can be used to remove the authentication of only a
>>  particular method in service class?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> Isura Dilhara Karunaratne
>> Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to