首页> 外文期刊>MSDN Magazine >HOUSE OF WEB SERVICES: Accessing Raw SOAP Messages in ASP.NET Web Services
【24h】

HOUSE OF WEB SERVICES: Accessing Raw SOAP Messages in ASP.NET Web Services

机译:网络服务之家:在ASP.NET Web服务中访问原始SOAP消息

获取原文
获取原文并翻译 | 示例

摘要

Web Services exchange XML messages. Most of todays Web Service toolkits do their best to hide this fact from developers, by exposing a Web Services behavior as method invocations against objects instead. But what if you want access to the actual XML being sent on the wire? ASP.NET does not expose raw SOAP messages to a service, but with the built-in extensibility hooks and a little elbow grease, you can gain access to them. But before I begin, let me make an observation about ASP.NET Web Services in general. When you develop Web Services in Visual Studio~(~R) .NET, the tool encourages you to use the ASP.NET plumbing a certain way. Specifically, it prompts you to implement a service as a class that exposes a set of methods marked with the [WebMethod] attribute, auto-generate a corresponding Web Services Description Language (WSDL) description and client proxy code, and then implement a client. However, there are other ways to use the Web Services infrastructure.
机译:Web服务交换XML消息。如今,大多数Web服务工具箱都通过将Web服务行为公开为对对象的方法调用来尽力向开发人员隐藏这一事实。但是,如果您想访问在线发送的实际XML,该怎么办? ASP.NET不会将原始的SOAP消息公开给服务,但是通过内置的可扩展性挂钩和一些弯头的油脂,您可以访问它们。但是在开始之前,让我先大致了解一下ASP.NET Web服务。当您在Visual Studio〜(R).NET中开发Web服务时,该工具鼓励您以某种方式使用ASP.NET管道。具体地说,它提示您将服务实现为一个类,该类公开带有[WebMethod]属性标记的方法集,自动生成相应的Web服务描述语言(WSDL)描述和客户端代理代码,然后实现客户端。但是,还有其他方法可以使用Web服务基础结构。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号