English 中文(简体)
C#
原标题:Dynamic WSDL Implementation in C#

我在网上服务相对较新,因此,如果这是一个新问题,我会抱歉。

我已经找到大量资源,说明如何在“网络”项目中实施网络服务,但所有这些似乎都涉及对暴露方法的固定定义。 虽然这可能适合某些申请,但它并不符合我所需要的法案。

我不禁要问的是,是否有办法积极实施WSDL中暴露的方法,例如PHP SoapClient 。 是的?

问题回答

妇发运动确实只有帮助确定方法名称和准绳,并掩盖所有吉大港山区长老——开发商。

象你一样,你想在操作时间提供方法名称和参数。 也许,这样做的一个途径是完全忘记妇女和自卫队。 • 发出自己的《吉大港山区行动计划》。

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(
      "http://foo.com/Some.asmx"); //build string from .config instead.

//here Register is the name of the method. take yours from config as well if needed
req.Headers.Add("SOAPAction", ""http://tempuri.org/Register"");

req.ContentType = "text/xml;charset="utf-8"";
req.Accept = "text/xml";
req.Method = "POST";

See the article • 主动使用HttpWebRequest全文。

问题。 该网络的网络服务总结班一般是,它们努力帮助执行服务器与客户签订的合同。 显然,正如你所介绍的那样,你试图避免改变静态的客户。 NET总结班。 希望它赢得的希望对你来说太过麻烦。





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签