Ken Brubaker

The ClavèCoder

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910


Navigation

Subscriptions

News

Kenneth Brubaker
Senior Application Architect

Locations of visitors to this page

Post Categories



Saturday, July 31, 2004 - Posts

Web Services: SoapParameterStyle, The Bare Facts

Christian Weyer and I must be getting mixed up.

Doug Purdy advocates in his MSDN TV episode on Loosely Coupled Web Services that we should use [SoapDocumentService(ParameterStyle=SoapParameterStyle.Bare)] so that the WSDL generator and SOAP message serializer do not generate a wrapper complex type around the message parameters.

However the PAG article How to Apply the Basic Profile article indicates that SoapParameterStyle.Bare is only useful if you have only one parameter:

SoapDocumentMethodAttribute & SoapDocumentServiceAttribute

When using a SoapDocumentMethodAttribute or SoapDocumentServiceAttribute there are certain restrictions if you set the ParameterStyle property to SoapParameterStyle.Bare. These restrictions are you must not have more then one parameter to your WebMethod, and no two WebMethods can have identical parameters. [R2210][R2710]

Is this not correct?

posted Saturday, July 31, 2004 5:31 AM by kenbrubaker with 1 Comments




Powered by Dot Net Junkies, by Telligent Systems