Commandlines with xargs
Posted & filed under howTo.
find . -name project.xml | xargs grep 2.2
Posted & filed under howTo.
find . -name project.xml | xargs grep 2.2
Posted & filed under Guanxi.
Posted & filed under Web Services.
I’ve been using Axis2 in the ASK web services and as I love XMLBeans, I use that data binding. So when I design the WSDL I include all the domain type definitions and I’ve got an instantly useable set of web services that work in the ASK domain model. Well, almost useable. I still have to implement the skeletons.
I’m also writing an Axis2 tutorial and one thing I found was that Axis2 wsdl2java didn’t support xsdconfig files when using the XMLBeans data binding. So I added it and submitted the patches. It was a case of extending Axis2′s XMLBeans code generator to support the BindingConfig methods:
and adding a new XSDConfig class that parses the xsdconfig file and stores the mappings in an easy format to let the Axis2 XMLBeans code generator get them.
I’ve added two new options to wsdl2java:
i.e. there is a long and a short option, in keeping with other wsdl2java options.
So now I have xsdconfig support in Axis2 and I can get on with my tutorial. For the moment it can only be used if you download from trunk but it should be in the next release after 1.1.1.
Posted & filed under Guanxi.
Posted & filed under Guanxi.
I was having some problems with the Guanxi IdP running in embedded mode in the Bodington VLE. What was happening was you could log in to Bodington and then automatically log in to mvnForum as I’d linked them together using the Guanxi IdP in Bodington and the Guanxi Guard in mvnForum. However, logging out of Bodington did not result in logging out of the embedded IdP.
The IdP was storing the GuanxiPrincipal in the session, which was different from the Bodington session. So although you’d logged out of Bodington you hadn’t logged out of the IdP. So the IdP would still dish out attributes for the previous user. Not good.
So to fix it I moved the GuanxiPrincipal handling to the servlet context and referenced it via a new IdP cookie and added a couple of static methods:
org.guanxi.sp.guard.Guard.deactivatePod(Pod pod)
org.guanxi.idp.SSO.logout(GuanxiPrincipal principal)
Then layered a couple of servlets on top of them to use from a browser:
http://localhost/protectedapp/guard.guanxiGuardlogout
http://localhost/guanxi_idp/logout
The two URLs are for users, to let them logout of the SP and IdP respectively. However, applications such as Bodington will use the low level APIs directly, to incorporate Shibboleth logout in their functionality.