About Question enthuware.ocejws.v6.2.102 :
Posted: Fri Apr 11, 2014 5:24 pm
In MZ's notes p.95, there is a quote:
"Service.Mode.Payload. In this mode, the client applications work with the payload of the messages ... eg when used with a SOAP protocol binding, a client application work with the contents of the SOAP body rather than the SOAP message as a whole."
But there is another quote:
"Use of SOAPMessage objects allows clients to work with SOAP messages ... SOAPMessage objects may only be used with Dispatch that use the SOAP binding in message mode."
Usually, we do this service.createDispatch(portName, SOAPMessage.class, Service.Mode.Message) because the @WebServiceProvider application expects to see a SOAPMessage request.
But in the first quote, it says that it is fine to send a SOAP message using Payload mode. That will be a contradiction.
"Service.Mode.Payload. In this mode, the client applications work with the payload of the messages ... eg when used with a SOAP protocol binding, a client application work with the contents of the SOAP body rather than the SOAP message as a whole."
But there is another quote:
"Use of SOAPMessage objects allows clients to work with SOAP messages ... SOAPMessage objects may only be used with Dispatch that use the SOAP binding in message mode."
Usually, we do this service.createDispatch(portName, SOAPMessage.class, Service.Mode.Message) because the @WebServiceProvider application expects to see a SOAPMessage request.
But in the first quote, it says that it is fine to send a SOAP message using Payload mode. That will be a contradiction.