473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

WebMethod in a Plug-in

All,

I have a situation where I want to expose a webmethod from a plugin
that gets loaded dynamically at the startup of a windows service. The
basic architecture looks like this:

Assembly With WebMethod o-------o Windows Service Which Loads Plugin
<-------- {Remoting} ---------IIS

Since IIS will have no clue of the actual assembly with the WebMethod
since it is loaded dynamically and could be located on a completely
different server, it can't easily expose this through the normal .ASMX
route.

So I've created an IHttpHandler which will read the SOAP request and
send this as a string to the windows service which will then parse the
request, call the function on the plug-in assembly, generate a SOAP
response and return it to IIS to write it out in the response.

My issue is that I can't easily find a way to parse the incoming SOAP
request on the service and return a SOAP response. I know I could
parse/generate the SOAP XML myself, but I really don't want to spend
hours doing this if there is an easier way. I've tried using the
SoapFormatter class, but I always get assembly reference errors when I
try to deserialize and invalid SOAP when I serialize the response so
I'm thinking I'm barking up the wrong tree with that one.

Are there any other better/easier ways to do this?

Cheers,

-alpha
Jul 9 '08 #1
1 1243
Perhaps I can rephrase the question in a different way:

Is there an easy way to programmatically expose a SOAP WebMethod at
runtime, from a DLL that has been loaded at startup?

Cheers,

-alpha
Jul 10 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Lars Moastuen | last post by:
I'm currently writing a webservice. I've successfully written a service that gives me some XML data, but now I want to link a XLS-stylesheet to that data. The way I'm trying to do that is to...
1
by: Greif | last post by:
Is it possible to return a stream from a WebMethod? Do I have to serialize/deserialize the object into a base64 encoded string? Any thoughts or sample code would be greatly appreciated. Thanks.
0
by: Joe | last post by:
Is there a way to pass data to the callback method when performing an asynchronous call of a web method using the Begin***** method of the WebMethod?
2
by: Kevin Spencer | last post by:
Hi All, I'm experienceing a new and strange problem with a WebMethod I am working on. It creates an instance of a class which contains a number of fields, Collections, and classes, all of which...
5
by: LS | last post by:
Can a WebMethod return an Interface type? Can we pass an interface parameter ? Example : public interface IEntity { long Id { get; set; } string Name { get; set; } }
6
by: rlcavebmg | last post by:
I am new to Web Services and .NET development, and I have a question. I am writing a service that will create a bitmap image and return it to the client. First, I wrote a method that looked like...
1
by: Inas Hafez | last post by:
hi, I'm writing a webmethod to return a dataset using ado.net, the method takes parameters as follows: <WebMethod(Description:="This method is used to Get Account Report")> Public Function...
2
by: Jaime Stuardo | last post by:
Hi all.. I have a WebMethod with a parameter defined as DateTime. When I call that webservice, I get this error: System.FormatException: The string '07/24/2005' is not a valid AllXsd value. ...
0
by: omer013 | last post by:
Hi; I have an aspx page with a WebMethod to redirect the user to another page. The Default.aspx.cs is; public partial class _Default : System.Web.UI.Page { public static void...
0
by: anithaapr05 | last post by:
Dear All, I have try to call the webmethod inside a master page browser close javascript function.It not working. This is my scriptcode: function BrowserClose() { var getValues =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.