Creating JAX-WS webservice using Service Data Objects (SDO) instead of JAXB-bound POJOs

If you need to invoke a logic using Service Data Objects (SDOs) from a JAX-WS webservice under Websphere 7 without the SCA Feature Pack, it is possible to do it similarly to the old approach of generating a JAX-RPC webservice from a WSDL with an SDO facade (actually building on it). The steps are: UseContinue reading “Creating JAX-WS webservice using Service Data Objects (SDO) instead of JAXB-bound POJOs”

Tip: Multiple webservice implementation classes available at the same time under WAS7

If you want to experiment with webservices by providing several alternative implementations of the same webservice (represented by the <wsdl:service> element), each having its own URL, and you’re using Websphere 7 and JAX-WS, then: For each alternative implementation, add <wsdl:port> with a unique name under the <wsdl:service> element in the WSDL file. Beware: This isContinue reading “Tip: Multiple webservice implementation classes available at the same time under WAS7”

File-based User Authentication under WebSphere 6

File-based User Authentication under WebSphere 6 When developing a web application for the WebSphere Application Server you sometimes need to enable security because the application expects HttpServletRequest.getUserPrincipal() to be non-null. While in the production environment you will likely configure WAS to delegate the authentication to an LDAP server, during development you would likely prefer toContinue reading “File-based User Authentication under WebSphere 6”

WAS 6.0 ant tasks: Install an app with an external Ant

There are special ant taks to install/start/.. an application to a WebSphere App Server 6.0. It’s easy to run them with WAS’s ant script (<was>/bin/was_ant.bat) but not so trivial to get them working with an external ant, which may be necessary because WAS has an old version of ant. So lets see how to doContinue reading “WAS 6.0 ant tasks: Install an app with an external Ant”

RAD, WAS 6 Test Env and J2EE security: getting rid of “No received or invocation credential exist on the thread”

Recently I started a new J2EE project that required j2ee security. Unfortunately Rational app. Developer 6 seemed to have some problems running a WAS Test Environment in this way, at least with the default setup. I encountered 2 problems: RAD wasn’t able to connect to the server at all, throwing some security exceptions. The solutionContinue reading “RAD, WAS 6 Test Env and J2EE security: getting rid of “No received or invocation credential exist on the thread””