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
mameko
Posts: 4
Joined: Mon May 04, 2015 11:02 am
Contact:

About Question enthuware.ocejws.v6.2.85 :

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

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

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

Post 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

mameko
Posts: 4
Joined: Mon May 04, 2015 11:02 am
Contact:

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

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

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

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

Post 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

Post Reply

Who is online

Users browsing this forum: No registered users and 58 guests