You need to load data from the web service

DRAG DROP
You develop an HTML application that calls a Simple Object Access Protocol (SOAP) web service to
retrieve data.
You need to load data from the web service.
What should you do? (To answer, drag the appropriate code segment or code segments to the
correct location or locations in the answer area. Use only code segments that apply.)

DRAG DROP
You develop an HTML application that calls a Simple Object Access Protocol (SOAP) web service to
retrieve data.
You need to load data from the web service.
What should you do? (To answer, drag the appropriate code segment or code segments to the
correct location or locations in the answer area. Use only code segments that apply.)

Answer:



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Al

Al

I was wondering why the type is ‘POST’ instead of ‘GET’ since it is receiving data rather than sending/updating. I found this at https://msdn.microsoft.com/en-us/library/ms995800.aspx:

“The Content-Type header for both HTTP request and response messages must be set to text/xml (application/soap+xml in SOAP 1.2). As for the request message, it must use POST for the verb and the URI should identify the SOAP processor.”

Wayne

Wayne

That’s right! Thank you!

Levi

Levi

Why is the datatype xml? What if the server returns json for example?

Po

Po

@Levi: I think the question assumes you’re supposed to know that soap services always deal in xml, even if they embed json in the response envelope.

Irrelevant knowledge for 70-480, if you ask me. dataType could very well be json if the above assumption isn’t well-known in the question.