exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 3 question 8 discussion

Actual exam question from Microsoft's 70-480
Question #: 8
Topic #: 3
[All 70-480 Questions]

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.)
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
* contentType
contentType is the type of data you're sending.
We have to send the content-type of application/soap+xml as this is the only type that the web service allow.
* type
We post a SOAP request.
* dataType:
dataType is what you're expecting back from the server: json, html, text, xml, etc. jQuery will use this to figure out how to populate the success function's parameter.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
superhands
Highly Voted 5 years, 3 months ago
i don't understand why we are not using GET to get data from the webservice. https://www.w3schools.com/tags/ref_httpmethods.asp
upvoted 6 times
MrAnderson
5 years, 3 months ago
Me too because it says retrieve data
upvoted 3 times
...
...
Nix
Highly Voted 4 years, 12 months ago
https://msdn.microsoft.com/en-us/library/ms995800.aspx says: “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.”
upvoted 5 times
...
Mayflower
Most Recent 5 years, 2 months ago
Should be GET instead of POST
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...