axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Axis Support for SSL and Access authheader
Date Thu, 12 May 2011 12:10:46 GMT
Hi varun.raj.t,

I used ADBClient with Axis2. Instead of ser: I used wsse, nevertheless maybe it helps.

At the End of xxxServiceStub() after the following code
		serviceClient = new org.apache.axis2.client.ServiceClient(
				configurationContext, _service);

				new org.apache.axis2.addressing.EndpointReference(

I added code from Erwin Driessen, which works fine. 
wsseUsername and wssePassword you must add: change UsernameToken to your ser:ClientID etc

		OMFactory fac = OMAbstractFactory.getOMFactory();
		OMNamespace omNs = fac.createOMNamespace(
				"", "wsse");

		SOAP11Factory soap11Factory = new SOAP11Factory();
		SOAPHeaderBlock soapHeaderBlock = new SOAP11HeaderBlockImpl("Security",
				omNs, soap11Factory);

		OMElement usernameTokenElement = fac.createOMElement("UsernameToken",

		OMElement usernameElement = fac.createOMElement("Username", omNs);

		// OMText omTextUsername = fac.createOMText(usernameElement,
		// getUserName());
		OMText omTextUsername = fac.createOMText(usernameElement, wsseUsername);

		OMElement passwordElement = fac.createOMElement("Password", omNs);

		// OMText omTextPassword = fac.createOMText(passwordElement,
		// getPassword());
		OMText omTextPassword = fac.createOMText(passwordElement, wssePassword); 




Cheerio, Lutz

-----Urspr√ľngliche Nachricht-----
Von: Axisboy [] 
Gesendet: Donnerstag, 12. Mai 2011 12:56
Betreff: Axis Support for SSL and Access authheader

Hi All ,

I  have managed to write Axis web service (server side).
Now I would like support SSL to it.


Any one having idea to access this fields inside the ?

Any idea to support SSL in Axis ?
View this message in context:
Sent from the Axis - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message