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,
About Question enthuware.ocejws.v6.2.85 :
Moderators: Site Manager, fjwalraven
-
- Posts: 4
- Joined: Mon May 04, 2015 11:02 am
- Contact:
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.85 :
The createContent() method only provides the payload (no SOAP envelope), that is why you have to use Service.Mode.PAYLOAD"You are only providing the payload, not the whole SOAP message, that is why Service.Mode.MESSAGE is wrong"
No, not necessarily.Does it mean we have to use PAYLOAD mode when the Dispatch<Source> ?
Yes, that is the only possibility.And we have to use MESSAGE mode when the Dispatch<SOAPMessage> ?
Regards,
Frits
-
- Posts: 4
- Joined: Mon May 04, 2015 11:02 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.85 :
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.
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.85 :
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
I will request to have the trail version updated.
Thank you for your feedback!
Regards,
Frits
Who is online
Users browsing this forum: No registered users and 58 guests