About Question enthuware.ocejws.v6.2.85 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
evefuji
Posts: 21
Joined: Fri Apr 11, 2014 8:57 pm
Contact:

About Question enthuware.ocejws.v6.2.85 :

Post by evefuji »

Why it's need be a Payload and not a message? And why Source instead SOAPMessage?

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

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

Post 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

mujahed
Posts: 15
Joined: Sat Oct 25, 2014 1:58 am
Contact:

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

Post 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

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

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

Post 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

mujahed
Posts: 15
Joined: Sat Oct 25, 2014 1:58 am
Contact:

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

Post by mujahed »

Thanks for the response. BTW, I have purchase the full version of the software now.

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

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

Post by fjwalraven »

Great! ;)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests