If web-pp does not do exactly what you want, you can always create your own people picker client, in fact, it is quite easy to do (if you are working in Java).
We don't recommend writing a client in any other language since you will then have to deal with the wsdl directly, although you can do this if you like.
We have done all the hard work of creating a people picker client and we have bundled it up in a single class FedPPService. This section is really just a guide to using this class.
We will use the vt1-pp project as our example for creating clients. I recommend you download the latest version of that code to have handy as you work through this guide
svn co https://www.mams.org.au/svn/PeoplePicker/vt1-pp/trunk/
We recommend having a lib directory in the root of your project into which you put all incomming libraries. For this project you will need:
To connect to a federated people picker service and to use it's services, you need FedPPService.java which is in fed-pp-connector.jar. The documentation for this class is available online at
https://www.mams.org.au/svn/PeoplePicker/fed-pp/trunk/docs/connector/index.html
The following code segments gives a quick example of how to get started with FedPPService
String fed = "http://www.XXXX.com/axis2/services/FederatedPeoplePicker"; fedpp = new FedPPService(fed); // set up the FedPPService object that will do all the hard work for you
idps = fedpp.getAllIdpIds();
String searchId = fedpp.submitSearch(idps, "baggins", "SURNAME", null, 10000, 10);
vt1-pp is a fully functional client that takes advantage of FedPPService. If you look through the vt1-pp code you will see examples for the use of all FedPPService functionality.
I guess you could use whatever build system you want, but we will describe the process using ant build scripts. We are not going into heaps of detail here, just noting a few things that might trip you up.
<path id="required.jars"> <fileset dir="/lib/axis2"> <include name="*.jar"/> </fileset> <fileset file="lib/xbeans-packaged.jar"/> <fileset file="lib/fed-pp-connector.jar"/> </path> <property name="required.jars" refid="required.jars"/>
<target name="compile.src"> <javac destdir="build/classes"> <src path="src"/> <classpath refid="required.jars"/> </javac> </target>
<target name="run" depends="jar"> <java classname="Main"> <classpath location="${lib-out}/${name}.jar"/> <classpath refid="required.jars"/> <arg line="--interactive-state false" /> </java> </target>
You will need to download fedpp.wsdl
. The wsdl is largely self-documenting. Any web-service client you create from the wsdl will be able to communicate with any FederatedPeoplePicker service. From there, you are on your own I am afraid.
|
Browse Space |
Explore Confluence |
Your Account |
Add Content |
|
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.3 Build:#705 Mar 21, 2007) |