Activity Forums Salesforce® Discussions What is the difference between RPC or Document Style web services?

  • Manpreet

    Member
    January 30, 2018 at 12:00 pm

    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.

  • Satyakam

    Member
    January 30, 2018 at 3:07 pm

    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.

Popular Salesforce Blogs

Popular Salesforce Videos