Activity › Forums › Salesforce® Discussions › What is the difference between RPC or Document Style web services?
Tagged: Data Types, Document Style Web Services, RPC, Schema, SOAP Messages, SOAP Request, Web Services in Salesforce, WSDL Document, WSDL File, XML Datatypes, XML Message, XSD Document
-
What is the difference between RPC or Document Style web services?
Posted by Tanu on January 30, 2018 at 11:59 AMWhat is the difference between RPC or document style web services? How you determine to which one to choose?
Satyakam replied 8 years, 3 months ago 3 Members · 2 Replies -
2 Replies
-
Hi tanu,
In document style web services, we can transport an XML message as part of SOAP request which is not possible in RPC style web service. Document style web service is most appropriate in some application where XML message behaves as document and content of that document can alter and intention of web service does not rely on the content of XML message.
Thanks.
- [adinserter block='9']
-
Hi Tanu,
Following are the differences between RPC and Document style web services:
Document: There are no types in WSDL.Document style is the default.In WSDL file, it specifies types details either having inline Or imports XSD document, which describes the structure(schema) of the complex data types being exchanged by those service methods which makes loosely coupled.
Advantage: we can validate SOAP messages against the predefined schema. It supports XML datatypes and patterns.
loosely coupled.
Disadvantage: It is a little bit hard to get understand.RPC: Types section would be available in WSDL. In WSDL file, it does not create types schema, within message elements it defines name and type attributes which makes tightly coupled.
Advantage: Easy to understand.
Disadvantage:
1. We can not validate SOAP messages.
2. Tightly Coupled.Thanks
Log In to reply.