Page 1 of 1

About Question enthuware.ocejws.v6.2.85 :

Posted: Mon May 04, 2015 11:12 am
by mameko
Hi,

I'm not quit understand the reason for not choosing B.
"You are only providing the payload, not the whole SOAP message, that is why Service.Mode.MESSAGE is wrong"

Does it mean we have to use PAYLOAD mode when the Dispatch<Source> ?
 Dispatch<Source> dispatch = service.createDispatch(portName, Source.class, Service.Mode.PAYLOAD);

And we have to use MESSAGE mode when the Dispatch<SOAPMessage> ?
Dispatch<SOAPMessage> dispatch = service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE);
(I think I saw this in the api: Mode MUST be MESSAGE when type is SOAPMessage.)

Thanks,

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

Posted: Tue May 05, 2015 1:20 am
by fjwalraven
"You are only providing the payload, not the whole SOAP message, that is why Service.Mode.MESSAGE is wrong"
The createContent() method only provides the payload (no SOAP envelope), that is why you have to use Service.Mode.PAYLOAD
Does it mean we have to use PAYLOAD mode when the Dispatch<Source> ?
No, not necessarily.
And we have to use MESSAGE mode when the Dispatch<SOAPMessage> ?
Yes, that is the only possibility.

Regards,
Frits

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

Posted: Tue May 05, 2015 6:26 am
by mameko
fjwalraven wrote:"You are only providing the payload, not the whole SOAP message, that is why Service.Mode.MESSAGE is wrong"
The createContent() method only provides the payload (no SOAP envelope), that is why you have to use Service.Mode.PAYLOAD

"...When dispatching the request we are sending a SOAP message which is created in the createSOAPmessage() method not shown here. ..."
Do you mean the createSOAPmessage() method ? I am using the trail exam.

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

Posted: Tue May 05, 2015 9:20 am
by fjwalraven
Ok, this question was updated in the full question bank.

I will request to have the trail version updated.

Thank you for your feedback!

Regards,
Frits