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.)
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.)
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.”
That’s right! Thank you!
Why is the datatype xml? What if the server returns json for example?
“Standard SOAP services are using only HTTP POST because they require complex SOAP request (XML) which cannot be included in query string.”
http://stackoverflow.com/questions/4646146/http-soap-get-post
@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.