axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagara Gunathunga <sagara.gunathu...@gmail.com>
Subject Re: programmatic service configuration problem
Date Sat, 18 Apr 2009 17:56:16 GMT
Hi Robert,

>     AxisService service;
>     try {
>       service = AxisService.createService(serviceName,axisConfiguration);

You cant use above createService(...) method with a custom
MessageReceiver , it's only work with RPCMessageReceiver and
RPCInOnlyMessageReceiver. There are another two  createService(...)
methods on org.apache.axis2.description.AxisService class , you could
try for one of them.

In both methods it is required to pass custom MessageReceivers
explicitly as a Map and you could create a Map instance with relevant
MEPs as follows ,

Map messageReceiverClassMap = new HashMap();
messageReceiverClassMap.put("http://www.w3.org/ns/wsdl/in-out",
					TerminalLocationServiceMessageReceiverInOut.class.newInstance());

Hope this will help you.

Thanks,

-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

Mime
View raw message