exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 311 discussion

Actual exam question from Salesforce's CRT-450
Question #: 311
Topic #: 1
[All CRT-450 Questions]

A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to Include helper methods that are not used by the Web Application in the implementation of the Web Service Class.

Which code segment shows the correct declaration of the class and methods?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
DavidSFDev9
5 months ago
Selected Answer: B
The answer is B. The classes containing webservice methods must be declared as global, and webservice method, just by having the webservice keyword are inherently global, so no need to add them the global keyword. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_web_services_methods_considerations.htm
upvoted 3 times
...
Ayswarya
8 months, 3 weeks ago
B , according to https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_web_services_methods.htm
upvoted 2 times
...
KAALISHAN
9 months ago
Selected Answer: B
Sounds like B. Methods do need Webservice keyword. https://www.examtopics.com/discussions/salesforce/view/96258-exam-crt-450-topic-1-question-311-discussion/
upvoted 2 times
KAALISHAN
9 months ago
wrong url. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_web_services_methods_considerations.htm
upvoted 2 times
...
...
smoota
9 months, 2 weeks ago
Selected Answer: D
to be used by external applications, both class and method must be declared as Global
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago