About Question enthuware.ocejws.v6.2.85 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

About Question enthuware.ocejws.v6.2.85 :

Post 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.

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

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

Post 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest