Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to Create the listener service for SOAP messages in C#

How to Create the listener service for SOAP messages in C#

Scheduled Pinned Locked Moved C#
csharpwcfxmltutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zaboboa
    wrote on last edited by
    #1

    Hi, Any points will be greatly appreciated. Code shippet, etc.. Thanks.

    S 1 Reply Last reply
    0
    • Z zaboboa

      Hi, Any points will be greatly appreciated. Code shippet, etc.. Thanks.

      S Offline
      S Offline
      snorkie
      wrote on last edited by
      #2

      There isn't too much to it. Here is a small sample class. It should be named something like WebServiceListner.asmx Hope this gets you started. Hogan using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; /// /// Summary description for Class1 /// public class Class1 { [WebService(Namespace = "http://your.url.here.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class Class1: System.Web.Services.WebService { [WebMethod] public string WebServiceMethod(string xmlData) { //Do some goodness here. return ""; } } }

      Z 1 Reply Last reply
      0
      • S snorkie

        There isn't too much to it. Here is a small sample class. It should be named something like WebServiceListner.asmx Hope this gets you started. Hogan using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; /// /// Summary description for Class1 /// public class Class1 { [WebService(Namespace = "http://your.url.here.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class Class1: System.Web.Services.WebService { [WebMethod] public string WebServiceMethod(string xmlData) { //Do some goodness here. return ""; } } }

        Z Offline
        Z Offline
        zaboboa
        wrote on last edited by
        #3

        Thank you. That is exactly what I had in mind.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups