Page 1 of 1

About Question enthuware.ocejws.v6.2.85 :

Posted: Sat Jun 07, 2014 2:50 pm
by evefuji
Why it's need be a Payload and not a message? And why Source instead SOAPMessage?

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

Posted: Mon Jun 09, 2014 12:44 am
by fjwalraven
Why it's need be a Payload and not a message?
Because the createContent() method only provides the payload (not the whole SOAPMessage)
And why Source instead SOAPMessage?
Because you are only providing the payload.

Note that this is just because of the question setup. If you change the createContent() method to return a SOAPMessage you will have to change the Dispatch method as well.

Regards,
Frits

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

Posted: Sat Oct 25, 2014 10:33 am
by mujahed
Hi,

I am reading this question again and again but I am unable to conclude the reason to use PAYLOAD instead of MESSAGE. The question says:

We are creating a dispatch client against the following Web Service implementation. The Web Service's endpoint is published at the address "http://localhost:9999/math". When dispatching the request we are sending a SOAP message which is created in the createSOAPmessage() method not shown here. What is the correct client code?


A SOAP Message is sent that means the createSOAPMessage() should create a complete SOAP Message, I wrote the request for some dummy webservice which just returns a stock value based on input. On comparision the different input messages makes sense if we see the PAYLOAD input it is only:

Code: Select all

<web:getStockPrice xmlns:web="http://webservices.mujahed.org/">
	<arg0>Stock1</arg0>
</web:getStockPrice>
And if we see input for MESSAGE it is complete SOAPMessage instead of just payload:

Code: Select all

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.mujahed.org/">
	<soapenv:Body>
      <web:getStockPrice>
         <arg0>Stock1</arg0>
      </web:getStockPrice>
   </soapenv:Body>
</soapenv:Envelope>
Therefore the answer should be MESSAGE and not PAYLOAD, method name is createSOAPmessage which indicates it is creating a SOAP message.

Further I am unable to understand the answer in previous comment (extract below) that is because I dont see any createContent() method here.
Quote:
Why it's need be a Payload and not a message?

Because the createContent() method only provides the payload (not the whole SOAPMessage)
I think this mistake is because I am using Trail version.

Thanks
Mujahed

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

Posted: Sat Oct 25, 2014 12:11 pm
by fjwalraven
Hi Mujahed,

Yes, you are absolutely right. This question was fixed in the full question bank, but not (yet) in the trail version. I will do an update for the trail version.

Thanks for your feedback!

Regards,
Frits

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

Posted: Sun Oct 26, 2014 6:31 am
by mujahed
Thanks for the response. BTW, I have purchase the full version of the software now.

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

Posted: Sun Oct 26, 2014 10:06 am
by fjwalraven
Great! ;)