About Question enthuware.ocejws.v6.2.85 :
Moderators: Site Manager, fjwalraven
-
- Posts: 21
- Joined: Fri Apr 11, 2014 8:57 pm
- Contact:
About Question enthuware.ocejws.v6.2.85 :
Why it's need be a Payload and not a message? And why Source instead SOAPMessage?
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.85 :
Because the createContent() method only provides the payload (not the whole SOAPMessage)Why it's need be a Payload and not a message?
Because you are only providing the payload.And why Source instead SOAPMessage?
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
-
- Posts: 15
- Joined: Sat Oct 25, 2014 1:58 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.85 :
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:
And if we see input for MESSAGE it is complete SOAPMessage instead of just payload:
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.
Thanks
Mujahed
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>
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>
Further I am unable to understand the answer in previous comment (extract below) that is because I dont see any createContent() method here.
I think this mistake is because I am using Trail version.Quote:
Why it's need be a Payload and not a message?
Because the createContent() method only provides the payload (not the whole SOAPMessage)
Thanks
Mujahed
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.85 :
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
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
-
- Posts: 15
- Joined: Sat Oct 25, 2014 1:58 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.85 :
Thanks for the response. BTW, I have purchase the full version of the software now.
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Who is online
Users browsing this forum: Bing [Bot] and 4 guests