Gopalan Suresh Raj
Web Cornucopia
Gopalan's Profile
Archives
« November 2009
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
Click me to subscribe Download Open ESB
Syndication
Search

Table of Contents
Tags
bpel choreography ejb esb http integration javacaps javaee javaone jax-ws jbi management openesb orchestration process-oriented rest sca service-oriented soa soap wsdl xml xsd
Links
 
Referrers

Today's Page Hits: 24

Map of Visitors
Locations of visitors to this page
Caveat Emptor
This is my personal weblog. The contents of this Weblog represent my personal opinion which may differ from the official views of my employer, Sun Microsystems, Inc. or any past employers. I do not speak for my employer or any past employers.
View Gopalan Suresh Raj's profile on LinkedIn
« JBI/SOA Tips: Expose... | Main | New additions to... »
Wednesday Apr 25, 2007
Apr
25
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.


Posted at 12:13AM Apr 25, 2007 by Suresh Gopalan in A Tip a Day  |  Listen to this article Listen to this entry  |  Comments added Comments[0]

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed

Disclaimer: The contents of this Weblog represent my personal opinion which may differ from the official views of my employer, Sun Microsystems, Inc. or any past employers.



View blog top tags

Enter your email address:

Delivered by FeedBurner

[Valid RSS]