Change TargetNameSpace in webservice proxy class

Discussion in 'ASP .Net Web Services' started by walter, Feb 14, 2006.

  1. walter

    walter Guest

    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)
    {...}
     
    walter, Feb 14, 2006
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. E11
    Replies:
    1
    Views:
    5,755
    Thomas Weidenfeller
    Oct 12, 2005
  2. kevin bailey

    targetnamespace - what is it?!?!

    kevin bailey, Jun 24, 2003, in forum: XML
    Replies:
    1
    Views:
    17,742
    kevin bailey
    Jun 25, 2003
  3. CB
    Replies:
    0
    Views:
    3,631
  4. Charles Fineman

    targetNamespace/import conflict

    Charles Fineman, Jan 21, 2004, in forum: XML
    Replies:
    2
    Views:
    4,792
    Charles Fineman
    Feb 9, 2004
  5. Gianni Rubagotti
    Replies:
    1
    Views:
    667
    Patrick TJ McPhee
    Feb 5, 2004
  6. Markus Meckler
    Replies:
    3
    Views:
    822
    Priya Lakshminarayanan [MSFT]
    Jun 29, 2004
  7. Robsy
    Replies:
    0
    Views:
    2,133
    Robsy
    Dec 17, 2006
  8. Bill
    Replies:
    0
    Views:
    295
Loading...