Client Source files

The CXF library includes a utility that allows one to generate client Java source files to assist in communicating with the Community Services. If you notice in the section above we reference a serviceClass with a value of which doesn't exist until we generate it.

The steps are easy enough.

  1. Open a command prompt at the base directory of the ngis-client project.
  2. Run the command 'mvn -Pwsdl2java' which will update all of the client files from the wsdl location specified in the pom.xml.

Or you can do it the manual way if you like.

  1. Download CXF from Apache at (We have had success with 2.1.4 but that doesn't mean newer versions won't work as well.)
  2. Extract the CXF files.
  3. Once extracted open a command prompt window to the path of the bin directory in the extracted CXF files.
  4. Run the command below with any modification as needed. Notice I am generating the files to my temp\cxf directory, which needs to exist.
  5. Copy the files into your project at [Web Project Base]/src/main/java/org/lds/ngis/api

User Authentication

When a user logs in all of the user's member information needs to be loaded including the user's Member Record Number (MRN), assignments (Bishop, Ward Clerk, etc.), and Unit/Organization (Highlands Ward, Uintah Stake, etc.). In ngis-client this was accomplished through the following source. We are hoping that this method of loading the member data will become common practice among all community applications. All files below require LDS Account credentials.

<bean id="ldsAccountDetailsFactory" class="" />
  • - Factory used to populate additional member data into the MemberDetail object. Calls the MemberService's findMember method.
  • - Detail bean used to store the membership information.
  • - Interface for the which is in the Service Layer of the Stack Architecture.
  • - Implementation of Service Layer Interface. Invokes SOAP web service method to validate a member by an MRN. Returns the ValidatedMember object.
This page was last modified on 25 January 2010, at 15:56.

Note: Content found in this wiki may not always reflect official Church information.