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. Problem with events in Webservices

Problem with events in Webservices

Scheduled Pinned Locked Moved C#
questionhelpwcfcomsysadmin
1 Posts 1 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.
  • J Offline
    J Offline
    J Holzer
    wrote on last edited by
    #1

    Hello! I have the following situation: A server should call event, which are being handled by the client. So i took the example posted on codeproject http://www.codeproject.com/useritems/RemotingEvent.asp (Remoting Event) and merged it with my existing code. When calling soapsuds for the desired webservice-class i get all my other methodes, but for the event i only get "add_xyevent"- and "remove_xyevent"-methodes. In the code in the example metioned above the event is subscribed inside the client like a regular event: m_server.xyevent += new EventDelegate(handlerFuncion) So i tried to use the event-method "add_xyevent", which ran into an SerializationException telling me that SOAP cannot serialize a generic type. m_server.add_xyevent(handlerFuncion); => SerializationException My question is: How can i subscribe to this event? Do i have to provide a specific keyword when declaring the event on the server? Who can help me? Thanks a lot! J.

    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