Hi Chatree,

Sorry I did not find even enough time to read your message, hopefully tomorrow. 
Anyway not sure I have any solutions...

Jacques

From: "Chatree Srichart" <chatree.srich...@gmail.com>
I try to send parameters as Map object but I not work. I try to use
OMElement as message and use BeanUtil as converter.

This is code example.

...
parameters.add(new QName("parameterName"));
parameters.add(bos.toByteArray()); // byte code of Map object

XMLStreamReader xr = new ADBXMLStreamReaderImpl(opName,
parameters.toArray(), null, typeTable, false);
           StreamWrapper parser = new StreamWrapper(xr);
           StAXOMBuilder stAXOMBuilder =
                   OMXMLBuilderFactory.createStAXOMBuilder(
                           OMAbstractFactory.getSOAP11Factory(), parser);
           OMElement payload = stAXOMBuilder.getDocumentElement();
           OMElement message = (OMElement) payload.getChildrenWithName(new
QName("message")).next();
           Object objMap = BeanUtil.deserialize(LinkedHashMap.class,
message, objectSupplier, null);
           OMElement clientResult = client.sendReceive(payload);
....

I convert Map object to byte code and convert it to xml message. But when I
deserialize message to map, it returned empty Map object.

Are there any one have other solution for solve it?


Reply via email to