On Sat, Oct 1, 2016 at 3:42 PM, Denuwanthi De Silva <[email protected]> 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/ > components/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: [email protected] > Blog: https://denuwanthi.wordpress.com/ > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: [email protected] Mobile: +94 (71) 8020933
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
