WebServiceBinding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pet Matrix.

    #1

    WebServiceBinding

    Hi all .Net lovers,
    I am working of a .Net webservices project. Evry thing is done except one
    issue ;)
    While binding the web seviceses using WebServiceBindi ng API we have to
    specify the Location which I am hardcoded right now. Now the problem we are
    shipping only the .dlls and .asmx files. But the location is hardcoded.
    Can .net provides any other solution from which at the run time will bind
    the wsdl location.
    Please help me out in this.
    Thanks,
    Pet Matrix.
  • Scott Meddows

    #2
    Re: WebServiceBindi ng

    can you put them into a config file? Maybe in your web.config file?

    "Pet Matrix." <Pet Matrix.@discuss ions.microsoft. com> wrote in message news:3BE9E31A-BF0E-44F4-AA91-C3AD4BCEC93C@mi crosoft.com...[color=blue]
    > Hi all .Net lovers,
    > I am working of a .Net webservices project. Evry thing is done except one
    > issue ;)
    > While binding the web seviceses using WebServiceBindi ng API we have to
    > specify the Location which I am hardcoded right now. Now the problem we are
    > shipping only the .dlls and .asmx files. But the location is hardcoded.
    > Can .net provides any other solution from which at the run time will bind
    > the wsdl location.
    > Please help me out in this.
    > Thanks,
    > Pet Matrix.[/color]


    Comment

    • Dan Rogers

      #3
      RE: WebServiceBindi ng

      Hi,

      I'm not sure what you mean by using the web service binding API - used in
      this context it isn't making sense to me. I am going to assume you mean
      you are using a proxy that you generated via the add-web-reference menu
      selection instead. In this case, there is a property on the proxy called
      "dynamic", and you need to set this to true. After you do that you can
      programatically change the URL the proxy connects to by setting the URL
      property on the proxy class instance.

      I hope this helps

      Dan Rogers
      Microsoft Corporation
      --------------------
      Thread-Topic: WebServiceBindi ng
      thread-index: AcTQdbYZon9mBxX PQAKBn48nyJM2rA ==
      X-WBNR-Posting-Host: 61.95.164.75
      From: "=?Utf-8?B?UGV0IE1hdHJ peC4=?=" <Pet Matrix.@discuss ions.microsoft. com>
      Subject: WebServiceBindi ng
      Date: Mon, 22 Nov 2004 01:29:05 -0800
      Lines: 11
      Message-ID: <3BE9E31A-BF0E-44F4-AA91-C3AD4BCEC93C@mi crosoft.com>
      MIME-Version: 1.0
      Content-Type: text/plain;
      charset="Utf-8"
      Content-Transfer-Encoding: 7bit
      X-Newsreader: Microsoft CDO for Windows 2000
      Content-Class: urn:content-classes:message
      Importance: normal
      Priority: normal
      X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
      Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
      NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
      Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGXA03.phx .gbl
      Xref: cpmsftngxa10.ph x.gbl
      microsoft.publi c.dotnet.framew ork.webservices :7586
      X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

      Hi all .Net lovers,
      I am working of a .Net webservices project. Evry thing is done except one
      issue ;)
      While binding the web seviceses using WebServiceBindi ng API we have to
      specify the Location which I am hardcoded right now. Now the problem we are
      shipping only the .dlls and .asmx files. But the location is hardcoded.
      Can .net provides any other solution from which at the run time will bind
      the wsdl location.
      Please help me out in this.
      Thanks,
      Pet Matrix.

      Comment

      Working...