[WSE] Web Service-background listening Service establishes a subscription/publish relationship through WSE2.0

Source: Internet
Author: User

Because the Web Service Execution identity is restricted, we cannot directly apply for a Web Service as a SoapReceiver, but use the following web. config definition to define the virtual directory. the end point of ashx, And the subscription/publish mechanism between the service and the background listening service is implemented through WS_Addressing and WS_Messaging.
<Configuration>
<ConfigSections>
<Section name = "microsoft. web. services"
Type = "Microsoft. Web. Services. Configuration. WebServicesConfiguration,
Microsoft. Web. Services, Version = 2.0.0.0, Culture = neutral,
PublicKeyToken = 31bf3856ad364e35 "/>
</ConfigSections>
Principles:
In addition to the in-process and TCP communication mechanism, you can also integrate SoapReceivers with the HTTP pipeline in ASP. NET. If you look at the definition of SoapReceiver, you will notice that it implements IhttpHandler:
Public abstract class SoapReceiver: SoapPort, IHttpHandler
{
...
}
Because of this, any SoapReceiver or SendService class can now be configured as an HTTP handler in ASP. NET. By adding a new ing in the httpHandlers section of the web. config file, you can configure the http handler. The web. config item maps the verb/path combination to the SoapReceiver type:
<System. web>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.