About Question enthuware.ocejws.v6.2.102 :

Moderators: Site Manager, fjwalraven

Post Reply
himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

About Question enthuware.ocejws.v6.2.102 :

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

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

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

Post 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

ramy6_1
Posts: 124
Joined: Wed Feb 12, 2014 2:44 am
Contact:

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

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

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

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

Post by fjwalraven »

Yes, but not to a SEI.

Regards,
Frits

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests