1 Ağustos 2007 Çarşamba

RPC and Document Style WebServices

RPC Style Interface WS Interface

Local name: concat
Namespace: http://ttdev.com/ss
Input message:
Part 1:
Name: s1
Type: string in http://www.w3.org/2001/XMLSchema
Part 2:
Name: s2
Type: string in http://www.w3.org/2001/XMLSchema
Output message:
Part 1:
Name: return
Type: string in http://www.w3.org/2001/XMLSchema


Document Style WS Interface

Local name: concat
Namespace: http://ttdev.com/ss
Input message:
Part 1:
Name: concatRequest
Element: concatRequest in http://ttdev.com/ss
Output message:
Part 1:
Name: concatResponse
Type: string in http://www.w3.org/2001/XMLSchema

Note: See that we have an xsd scheme in the document style ws interface, but not in a rpc style ws interface.


Compare the input messages of the RPC style web service and the document style
web service:

RPC Style Request:

abc
123


Document Style Request:

abc
123


According to WS-I (web services interoperability organization), you should use
document style web services only.

Hiç yorum yok: