created, and 3) send that object to the service. The infrastructure of the
"nickname" <nick.name@newsgroups.nospam> wrote in message
news:5F96B1FE-44DB-433F-8F33-6AE520D2F595@microsoft.com...
> Thanks for the replies. I have generated a c# class for the schema as Ron
> described. I am unsure as to how to use the SoapDocumentMethodAttribute?
>
> [WebMethod]
> public void test(booksBook inputXML)
> {
> }
>
> It is my understanding that i can use something like the above and mark it
> with the
> SoapDocumentMethodAttribute and it will do as i require? or do i need to
> write WSDL myself as decribed in the web sites mentioned?
>
> Thanks
>
> "Steven Cheng[MSFT]" wrote:
>
>> Thanks for Ron's input.
>>
>> Hi Nick,
>>
>> Based on your description, I think what you want is make your
>> webservice's
>> request and response SOAP message's output XML conform to your predefined
>> XML schema so that the client can send predefiend XML format content to
>> the
>> server service no matter what platform or component client is using,
>> correct?
>>
>> As for the server-side webservice, are you developing it through ASP.NET
>> asmx webservice? If so, I think you can consider use "Contract-First"
>> develop pattern to create your webservice. It is the most recommended way
>> to develop ASP.NET webservice that will output specified format XML
>> message
>> for interopability purpose. Here is the steps of Cotract-First
>> development:
>>
>> ** author the business class's XML Schema(XSD), you have already defined
>> it
>>
>> ** use tools(like the XSD.exe Ron mentioned) or manually define .net
>> classes which mapping the XML schema you defined (by XML Serialization
>> support in .net framework).
>>
>> ** customize the asmx webservice's webmethod (use
>> SoapDocumentMethodAttribute) and set the webmethods to use those XML
>> serlization mapped classes defined ealier, thus ,the webmethod's SOAP
>> output message will conform to the expected XML format(XML schema)
>>
>> ** Call the webservice or check WSDL to verify that the output XML
>> content
>> is as expected
>>
>> Here are some good tech articles that introducing Contract-First service
>> development and how it works in ASP.NET asmx webservice:
>>
>>
>> #Contract-First Service Development
>>
http://msdn.microsoft.com/msdnmag/issues/05/05/ServiceStation/default.aspx >>
>> #Techniques for Contract-First Development
>>
http://msdn.microsoft.com/msdnmag/issues/05/06/ServiceStation/ >>
>> #Enrich Your XML Serialization With Schema Providers In The .NET
>> Framework
>>
http://msdn.microsoft.com/msdnmag/issues/06/06/ClassToContract/default.aspx >>
>> In addition, if you are not quite familar with XML serialization
>> technology
>> in .net framework, you can have a look at the XML serialization topics in
>> MSDN:
>>
>> #XML Serialization in the .NET Framework
>>
http://msdn.microsoft.com/library/en-us/dnexxml/html/xml01202003.asp?frame=t >> rue
>>
>> #Introducing XML Serialization
>>
http://msdn2.microsoft.com/en-us/library/182eeyhh.aspx >>
>> Hope this helps. Please feel free to post here if you have anything
>> unclear
>> on this.
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>> Microsoft MSDN Online Support Lead
>>
>>
>>
>> ==================================================
>>
>> Get notification to my posts through email? Please refer to
>>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif >> ications.
>>
>>
>>
>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
>> issues
>> where an initial response from the community or a Microsoft Support
>> Engineer within 1 business day is acceptable. Please note that each
>> follow
>> up response may take approximately 2 business days as the support
>> professional working with you may need further investigation to reach the
>> most efficient resolution. The offering is not appropriate for situations
>> that require urgent, real-time or phone-based interactions or complex
>> project analysis and dump analysis issues. Issues of this nature are best
>> handled working with a dedicated Microsoft Support Engineer by contacting
>> Microsoft Customer Support Services (CSS) at
>>
http://msdn.microsoft.com/subscriptions/support/default.aspx. >>
>> ==================================================
>>
>>
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights