PrepAway - Latest Free Exam Questions & Answers

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.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

5 Comments on “You need to load data from the web service

  1. Al says:

    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.”




    0



    0
  2. Po says:

    @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.




    1



    0

Leave a Reply