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.
About Question enthuware.ocejws.v6.2.85 :
Moderators: Site Manager, fjwalraven
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.85 :
Hi Himai,
Good point!
I have added a createContent() method: and used it as follows:
This will make option 1 correct.
Thanks for your feedback again!
Frits
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()));
}
Code: Select all
Source response = dispatch.invoke(createContent());
Thanks for your feedback again!
Frits
Who is online
Users browsing this forum: No registered users and 4 guests