Problems trying to add soap transports programmatically

Problems trying to add soap transports programmatically

Post by b2xse » Sun, 04 Jun 2006 00:09:02


Hi,

I am trying to use a custom soap transport, in this case an http.sys
transport, based Aaron Skinnard's MSDN example. I want to remove the need for
the app.config file, so programmatically add the transport, using

WebServicesConfiguration.MessagingConfiguration.AddTransport("http",
typeof(Microsoft.Samples.HttpSys.HttpSysTransport));

I can get it working well when using statically loaded assemblies, but my
application is pluggin based, and loads assemblies at runtime. When I
dynamically load the assembly containing this code I get an exception:

WSE022: The input is not a valid transports element because this attribute
is unrecognized: type.

Stack trace is:
at:
Microsoft.Web.Services3.Messaging.Configuration.MessagingTransportConfiguration.LoadTransport(String typeName, XmlNodeList configData)

I can't see why the plugins do not work because I have made sure that they
are loaded with full permissions.

Any suggestions would be welcome,

Thanks,

Olly
 
 
 

Problems trying to add soap transports programmatically

Post by www.EduJin » Sun, 04 Jun 2006 04:16:23

> WebServicesConfiguration.MessagingConfiguration.AddTransport("http",

Are you assured that this code always executes before you are initiating the
connection?


--
Happy Hacking,
Gaurav Vaish | http://www.yqcomputer.com/
http://www.yqcomputer.com/ | http://www.yqcomputer.com/
-------------------

 
 
 

Problems trying to add soap transports programmatically

Post by b2xse » Tue, 06 Jun 2006 20:34:01

Hi Gaurav,

Thanks for replying. I have not initiated any connections and I have not
added any soapreceivers at this point. If you need any more information, let
me know.

Thanks,

Olly
 
 
 

Problems trying to add soap transports programmatically

Post by www.EduJin » Mon, 12 Jun 2006 21:35:58

Olly,


It seems that you have some entries in the configuration file and the class
definition is not available.
I mean, the loader (config system) is unable to locate the class mentioned
in "<add name='...' type='...' />". Check that the value of type provided is
correct.


--
Happy Hacking,
Gaurav Vaish | http://www.yqcomputer.com/
http://www.yqcomputer.com/ | http://www.yqcomputer.com/
-------------------