Page 1 of 1

About Question enthuware.ocejws.v6.2.102 :

Posted: Fri Apr 11, 2014 5:24 pm
by himaiMinh
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.

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

Posted: Sun Apr 13, 2014 1:29 am
by fjwalraven
When the WebServiceProvider acts as a SOAPMessage provider:

Code: Select all

@WebServiceProvider
@ServiceMode(value=Service.Mode.MESSAGE)
public class LogServiceImpl implements Provider<SOAPMessage> 
Then the ServiceMode will be "MESSAGE", but when the WebServiceProvider implements Provider<DOMSource>, the you can use the "PAYLOAD":

Code: Select all

@WebServiceProvider
@ServiceMode(value=Service.Mode.PAYLOAD)
public class LogServiceImpl implements Provider<DOMSource>
Regards,
Frits

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

Posted: Tue Nov 10, 2015 5:53 am
by ramy6_1
Hello ,

I cam from enthuware.ocejws.v6.2.10

The class LogServiceImpl extends LogServiceImplParent , I thought here that LogServiceImpl (SIB) DOES refer to LogServiceImplParent

Kindly clarify.

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

Posted: Wed Nov 11, 2015 1:48 am
by fjwalraven
Yes, but not to a SEI.

Regards,
Frits