C# 如何基于示例soap消息准备web服务及其类

C# 如何基于示例soap消息准备web服务及其类,c#,asp.net,xml,web-services,soap,C#,Asp.net,Xml,Web Services,Soap,我得到了一个示例soap消息: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/ xmlns:web="http://com.theirdomain/webservice"> <soapenv:Header/> <soapenv:Body> <web:Transaction> <web:ID>123</web

我得到了一个示例soap消息:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/ xmlns:web="http://com.theirdomain/webservice">
   <soapenv:Header/>
   <soapenv:Body>
      <web:Transaction>
         <web:ID>123</web:ID>
         <web:order>221x</web:order>
         <web:trans>112-ax-21</web:trans>
         <web:date>2013-01-01</web:date>
         <web:title>Example title</web:title>
         <web:amount>
            <web:value>10.05</web:value>
            <web:currency>USD</web:currency>
         </web:amount>
         <web:status>status</web:status>
         <web:customer>
            <web:address>Berlin</web:address>
            <web:account>12345678901234567890123456</web:account>
         </web:cusweb:customeromerData>
         <web:docHash>HASHMD5</web:docHash>
      </web:Transaction>
   </soapenv:Body>
</soapenv:Envelope>
您可以,然后

在一个新的WCF服务项目中,只需键入其中的几个属性和单个方法并启动它似乎更容易。它是SOAP1.1,所以使用
basicHttpBinding