Sagara,
I started reading the axis source yesterday and discovered this at
about 10 o'clock last night! Thanks so much for the reply!
robert
On Apr 18, 2009, at 10:56 AM, Sagara Gunathunga wrote:
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/