Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8813771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:56:34+00:00 2026-06-14T03:56:34+00:00

I generated a proxy class given a URL to a WSDL. I need to

  • 0

I generated a proxy class given a URL to a WSDL.

I need to let the end-user change the service’s URL to his specific URL, like this:

ServiceProxy.Url = [URL set by end-user];

The issue is that this URL should not point to the WSDL, it should be the binding address which is found within the WSDL (wsdl:service -> wsdl:port -> wsdl:address) (this is a SAP web service, I understand that is why I must use the binding address).

I am thinking of using the XDocument class to get that value, but I am wondering if there is any “built-in” functionality in WCF or web services to get the binding address. Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:56:36+00:00Added an answer on June 14, 2026 at 3:56 am

    I did a small function in VB.NET (sorry!) based on code at Parse Complex WSDL Parameter Information . Hope it helps.

    Public Function GetURLFromWSDL(ByVal wsdl As String) As String
        Dim request As HttpWebRequest = WebRequest.Create(wsdl)
        request.ContentType = "text/xml;charset=""utf-8"""
        request.Method = "GET"
        request.Accept = "text/xml"
    
        Using response As WebResponse = request.GetResponse()
            Using stream As Stream = response.GetResponseStream()
                Dim service As ServiceDescription = ServiceDescription.Read(stream)
                Dim binding As SoapAddressBinding = service.Services(0).Ports(0).Extensions(0)
                Return binding.Location
            End Using
        End Using
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have generated a proxy class from a wsdl file (C# VS 2008) The
I have been provided with a WSDL and have generated the proxy class based
Why do the Silerlight-generated WCF proxy class(es) offer only async calls? There are cases
wsdl.exe , appears to be the default tool for .Net to generate proxy class
I'm trying to generate a proxy class from a local WSDL file with eclipse
I'm talking with a web service with a generated proxy that uses System.Web.Services.Protocols.SoapHttpClientProtocol ,
I'd like to override the Dispose method of generated proxy ( ClientBase ) because
Java generates a proxy class for a given interface and provides the instance of
I am looking for a way to have the generated proxy class for a
I have generated some proxy classes that are consumed by a Java Service. (using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.