Try following,
String soap = "....";
ByteArrayInputStream inStr = new ByteArrayInputStream(soap.getBytes());
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
StAXSOAPModelBuilder builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(fac,XMLInputFactory.newInstance().createXMLStreamReader(inStr));
SOAPEnvelope env = builder.getSOAPEnvelope();
Chamikara
On 5/10/06, Benjamin Schmeling <[EMAIL PROTECTED]> wrote:
Hi,
I want to write a Web Service which sends reliable SOAP messages with
Sandesha2. My input is a SOAP message as String. The problem is that I
do not know how to transform this into an OMElement that can be sent
with the ServiceClient class.
I tried something like this but it did not work:
String soap = "....";
ByteArrayInputStream inStr = new ByteArrayInputStream(soap.getBytes());
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
OMXMLParserWrapper parser =
OMXMLBuilderFactory.createStAXSOAPModelBuilder(fac,
XMLInputFactory.newInstance().createXMLStreamReader(inStr));
client.sendReceive(fac.createSOAPEnvelope (parser));
How can I get this working?
Thanks,
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
