Change TargetNameSpace in webservice proxy class

W

walter

Hi there, I have several internal webserives that expose exactly the same
interface. The only difference is the targetnamespace attribute.

What I want to do is to use a unique proxy class to talk to all of them.
--This will give me the ability to pick different service on the runtime. the
problem here is the TargetNameSpace is specified by
"SoapDocumentMethodAttribute" ,a .NET attribute which doesn't allow runtime
change.

See if anyone here can share some lights.Thanks in advance.

[ SoapDocumentMethodAttribute("http://tempuri.org/Exec",
RequestNamespace = "http://tempuri.org/", ResponseNamespace =
"http://tempuri.org/", Use = SoapBindingUse.Literal, ParameterStyle =
SoapParameterStyle.Wrapped)]
public string Exec(string RequestCode, string InXml)
{...}
 

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,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top