Dynamically change SoapDocumentMethodAttribute

Y

yaron

Hi,

Is it possible to dynamically change the SoapDocumentMethodAttribute?

Scenario:

We have a number of clients, each with their own web service, that
require the same functionality - an xml response sent back to them.

I will be calling the same method in each, "ReceiveResponse", and I
can dynamically change the URL at runtime by referencing the URL
property. I have generated a class using the WSDL tool and am using
this rather than a web reference.

My problem is that the namespaces will be different.

As such, to the best of my understanding, I have to be able to change
the 'Action', 'RequestNameSpace' and 'ResponseNameSpace' in the
SoapDocumentMethodAttribute declaration in order to get this to work:

Is there any way to do that?

Or perhaps I'm going about things in the wrong way and there is a
different way of fulfilling these requirements?

Help!
 

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

Top