Page 1 of 1

About Question enthuware.ocejws.v6.2.85 :

Posted: Sun May 11, 2014 7:51 pm
by himaiMinh
I assume createSOAPmessage() returns a SOAPMessage object.
I think option 4 is the answer instead of option 1. It is because the question mentions that the client is sending a SOAP message request. The createDispatch (portName, Message.class, Service.Mode.MESSAGE) should be used.

Re: About Question enthuware.ocejws.v6.2.85 :

Posted: Mon May 12, 2014 10:29 am
by fjwalraven
Hi Himai,

Good point!

I have added a createContent() method:

Code: Select all

private static Source createContent() throws SOAPException {
		String p = "<ns2:getTable xmlns:ns2="+EscapedNamespace+"><arg0>5</arg0></ns2:getTable>";
		return new StreamSource(new ByteArrayInputStream(p.getBytes()));
}
and used it as follows:

Code: Select all

Source response = dispatch.invoke(createContent());
This will make option 1 correct.

Thanks for your feedback again!
Frits