WebServices- Diffrence between RPC-Style and Document Style

Diffrence between RPC-Style and Document Style

The way of generating SOAP message formate is main difffrence beteween them.

1. RPC Stlye:

SOAP Body must conform to a structure that indicates the method name & Parameters name

<soap:envelope>
    <soap:body>
        <myMethod>
            <x xsi:type="xsd:int">5</x>
            <y xsi:type="xsd:float">5.0</y>
        </myMethod>
    </soap:body>
</soap:envelope>

2. Document Style

SOAP Body can be structurted in any way you like. their is no TYPE attribute here

<soap:envelope>
    <soap:body>
        <xElement>5</xElement>
        <yElement>5.0</yElement>
    </soap:body>
</soap:envelope>