hi,
how should I set up the serializers for my classes when I create the instance of AxisEngine in my client app code?
I have a simple service that receives and returns custom class Acount. I have registered serializer during the deployment of service. Wsdd file contains
<beanMapping qname="ns:localAcount" xmlns:ns="myBank" languageSpecificType="java:Acount"/>
Everything work fine while I use generated Locator classes to create and invoke the service.
When I create instance of axis engine and try to do it in following way I get the "no serializer found exception".
javax.jms.TextMessage jmsMsg;
AxisEngine engine = new AxisServer(new FileProvider(server-config.wsdd););
...
MessageContext msgContext = new MessageContext(engine);
// Wrap the incoming TextMessage into Axis Message
org.apache.axis.Message soapMessage = new org.apache.axis.Message(jmsMsg.getText());
// Set the request message in MessageContext
msgContext.setRequestMessage(soapMessage);
engine.invoke(msgContext);
responseMsg = msgContext.getResponseMessage();
// Get a String representation of response
SOAPEnvelope envelope = responseMsg.getSOAPEnvelope();
Element envElement = envelope.getAsDOM(); <--- here I get the no serializer found for class Acount exception
Am I missing something? Why is it working in one way and not in the other?
thank you