allowed to insert a class between my service proxy and WebServicesClientProtocol?

J

Jose

Hello,

I'm having trouble creating an intermediate class between my asp.net
web proxy and the WebServicesClientProtocol class.

Below, i use a custom class, WebServiceInterAgent, to inject some
custom soap headers. So, instead of my proxy deriving from WSCP, it
derives from my custom class (which itself derives from WSCP).

However, this throws an exception. Why is this? Will i not be able to
do this?



An exception occurred while trying to create an instance of
Microsoft.Web.Services.WebServicesClientProtocol. The exception was
"WebServiceBindingAttribute is required on proxy classes.".


/* This is my proxy class, generated by VS, but modified to derive
from my intermediate class */
[System.Web.Services.WebServiceBindingAttribute(Name="VaultAdminServiceSoap",
Namespace="http://Services.IntelliChem.com/VaultService")]
public class Admin : WebServiceInterAgent


/* This is my intermediate class, purposed to inject SOAP headers */
public class WebServiceInterAgent :
Microsoft.Web.Services.WebServicesClientProtocol
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top