About Question enthuware.ocejws.v6.2.85 :
Posted: Mon May 04, 2015 11:12 am
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,
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,