Title: RE: wrapped services
You might find this link a little more enlightening:
 
.NET supports two ways to generate the schema for doc/literal messages:
- bare
- wrapped
 
In bare, the generated <types> definition contains a different element for each .NET method parameter, so that the resulting SOAP message would look something like this:
<soap:body>
  <ns1:param1 xmlns:ns1="someuri">param1</ns1:param1/>
  <ns1:param2 xmlns:ns1="someuri">param2</ns1:param2>
</soap:body>
 
This format is not WS-I BP compliant. WS-I BP permits only one direct child element of the <soap:body> element.
 
In wrapped (the default), the generated <types> definition contains a single element (a complex type) that contains subelements for each .NET method parameter, so that the resulting SOAP message would look something like this:
<soap:body>
  <ns1:input xmlns:ns1="someuri">
     <ns1:param1>param1</ns1:param1>
     <ns1:param2>param2</ns1:param2>
  </ns1:input>
</soap:body>
 
In both cases there's a schema for the input message.
 
But keep in mind that wrapped versus bare applies only to generation of the service. For clients, .NET will generate a SOAP message that conforms to specification defined in the service's WSDL file. If you're using doc/literal, the .NET wsdl.exe tool will read the schema definition in the <types> section and construct the message accordingly.
 
Anne
 
----- Original Message -----
Sent: Wednesday, July 30, 2003 12:08 PM
Subject: RE: wrapped services

Davanum Srinivas [mailto:[EMAIL PROTECTED]] wrote:

> Not really - http://msdn.microsoft.com/library/default.asp?url="">

Okay, I read it, but I don't understand what it means.  "Wrapped" is the default.  And that means, "Parameters sent to and from an XML Web service method are encapsulated within a single XML element followig the Body element of the XML portion of a SOAP request or SOAP response."

Within a single XML element?  It's going to send everything as attributes rather than nested elements??

Google has not yet turned up an example of what a SOAP request coming from ASP under .NET looks like by default.  All I want is some sample ASP code and the resulting outgoing SOAP message.  Surely it's out there somewhere...

--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM

Reply via email to