Hi Gayan,

Thank you . Yes it is working with SOAPUI when using the value provided by
you.
With the help of Gayan I could get it working after removing a depndency
for user registration stub  in the pom file of the webapp.

Thanks,


On Sun, Oct 2, 2016 at 11:18 AM, Gayan Gunawardana <ga...@wso2.com> wrote:

>
>
> On Sat, Oct 1, 2016 at 3:42 PM, Denuwanthi De Silva <denuwan...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I have added a custom jsp class inside the authenticationendpoint webapp.
>> Inside that jsp class I'm trying to call the
>> 'readUserFieldsForUserRegistration()' method in
>> 'UserRegistrationAdminServiceClient' class.
>>
>> I have importyed the class using
>> <%@page import="org.wso2.carbon.identity.application.authentication.
>> endpoint.util.UserRegistrationAdminServiceClient"%>
>>
>> and then call
>> UserRegistrationAdminServiceClient registrationClient = new
>> UserRegistrationAdminServiceClient();
>>
>> But, this does not get executed properly.
>> When debugged I could see a NPE is happening inside the constructor.
>>
>> Does anyone know how to get this invoked properly?
>> Do I need to call some other method?
>>
>
> It simply works without any exception if you just pass '
> http://wso2.org/claims' as dialect.
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://org.apache.axis2/xsd";>
>    <soapenv:Header/>
>    <soapenv:Body>
>       <xsd:readUserFieldsForUserRegistration>
>          <!--Optional:-->
>          <xsd:dialect>http://wso2.org/claims</xsd:dialect>
>       </xsd:readUserFieldsForUserRegistration>
>    </soapenv:Body>
> </soapenv:Envelope>
>
>>
>> I could see create_account.jsp has followed a similar approach[1].
>>
>>
>> [1]https://github.com/wso2/carbon-identity/blob/master/compo
>> nents/authentication-framework/org.wso2.carbon.identity.
>> application.authentication.endpoint/src/main/webapp/
>> create-account.jsp#L32
>>
>> Thanks
>>
>>
>>
>> --
>> Denuwanthi De Silva
>> Senior Software Engineer;
>> WSO2 Inc.; http://wso2.com,
>> Email: denuwan...@wso2.com
>> Blog: https://denuwanthi.wordpress.com/
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Denuwanthi De Silva
Senior Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
Blog: https://denuwanthi.wordpress.com/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to