What type of request and payload format can be received by a static - ProProfs Discuss
Cancel
TopicsDown
Products Down
Follow Us:
FacebookTwitter
Advertisement

What type of request and payload format can be received by a static method in a global Apex class that uses the webService keyword?



A. REST/JSON
B. SOAP/XML and SOAP/JSON
C. SOAP/XML and REST/JSON
D. SOAP/XML

This question is part of developing software PD2-2
Asked by Pal, Last updated: Sep 19, 2020

+ Answer
Request
Question menu
Vote up Vote down

4 Answers

C. Bernthal

C. Bernthal

Its kind of my job to give answers

C. Bernthal
C. Bernthal, Teacher, MA, P.hD, Seattle

Answered Nov 11, 2018

Apex is a computer language that is like some of the more well-known languages including Java and C#. It is different because it has dots and curly brackets in their language. This allows the computer user to develop software programming which must be made with a computer language. Static methods are used in Java when there is no objective stated or listed.

In Salesforce, the class would be considered to be global due to using the web service called SOAP. If you are wanting to request and use a payload format in Salesforce so that it can be received by a static method in a global Apex class and that it uses the web service keyword, it would have to be SOAP/XMIL.

upvote downvote
Reply 

devilzP

devilzP

devilzP
DevilzP

Answered Apr 05, 2018

D. SOAP/XML is correct :)

upvote downvote
Reply 

rahul chandra

rahul chandra

rahul chandra
Rahul chandra

Answered Feb 21, 2018

And SOAP/JSON as well. They have mentioned it clearly in their docs.

upvote downvote
Reply 

Pal

Pal

Pal
Pal

Answered Feb 02, 2018

Soap/xml
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.