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/

Reply via email to