0

I got an example soap message:

<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>

I need a tool or a way to quickly create a classic ASP.NET XML WebService with method NewTransaction which accepts a Transaction object. I would like to know if there is a way to quickly create class (or classes) that reflect the given soap. In the result my webservice address will be given to the other company from which they will generate WSDL and they want to call NewTransaction method with Transaction object defined in WSDL.

Monika
  • 2,172
  • 15
  • 24
vanpersil
  • 764
  • 1
  • 8
  • 26

1 Answers1

0

You can generate a WSDL and then generate a service and datacontracts from that WSDL.

It seems to be easier to just type the few properties and the single method you have in there in a new WCF Service project and fire it up. It's SOAP 1.1 so use basicHttpBinding.

Community
  • 1
  • 1
CodeCaster
  • 147,647
  • 23
  • 218
  • 272