Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>How about using the <code>wsdl /server</code> or <code>wsdl /serverinterface</code> switches? As far as I understand the wsdl.exe command line properties, that's what you're looking for.</p> <pre><code>- ADVANCED - </code></pre> <p><strong>/server</strong> </p> <pre><code>Server switch has been deprecated. Please use /serverInterface instead. Generate an abstract class for an xml web service implementation using ASP.NET based on the contracts. The default is to generate client proxy classes. </code></pre> <p>On the other hand: why do you want to create obsolete technology solutions? Why not create this web service as a WCF service. That's the current and more modern, much more flexible way to do this!</p> <p>Marc</p> <hr> <p><strong>UPDATE:</strong> </p> <p>When I use <code>wsdl /server</code> on a WSDL file, I get this file created:</p> <pre><code>[WebService(Namespace="http://.......")] public abstract partial class OneCrmServiceType : System.Web.Services.WebService { /// &lt;remarks/&gt; [WebMethod] public abstract void OrderCreated(......); } </code></pre> <p>This is basically almost exactly the same code that gets generated when you add an ASMX file to your solution (in the code behind file - "yourservice.asmx.cs"). I don't think you can get any closer to creating an ASMX file from a WSDL file.</p> <p>You can always add the "yourservice.asmx" manually - it doesn't really contain much:</p> <pre><code>&lt;%@ WebService Language="C#" CodeBehind="YourService.asmx.cs" Class="YourServiceNamespace.YourServiceClass" %&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload