JBI/SOA Tips: Do not mix style/use in the same service

The 'style' attribute determines the way in which the SOAP Body is constructed. If the value of the style attribute is rpc then the messages exchanged contain operation name and  parameters type values, and if the value of the style attribute is document, the messages exchanged contain business document(s). The 'use' attribute determines whether the message parts are encoded with some custom encoding rules in which case the value is 'encoded', or whether the message elements conform to a well defined XML Schema in which case, the value happens to be 'literal'. For more details, you can refer to an earlier blog entry of mine entitled WSDL & SOAP: Binding Style to use - Document or RPC? 

In the same service either expose all your operations with document/literal or as rpc/literal. Do not mix the style/use alternatives in the same WebService. It will make it difficult for the consumers of your service. Prefer exposing document style with literal use which ensures WS-I compliance and interoperability and comes with a host of other advantages which I will blog about in a future tip.

 

Like this write-up? Subscribe to receive  more  like it.


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Gopalan Suresh Raj, a Senior Software Architect, Published Author, and a Public Speaker, is a member of Sun Microsystems, Inc.'s Research and Architecture team. For the past several years he has been designing solutions using Java and C++.

Contact him at Gopalan.Raj@Sun.com  or Suresh.Gopalan@oracle.com

His personal public profile is available at: https://profiles.google.com/ipersist/

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today