Mike Dixon

Excuse me if I am writing this in the wrong forum as I could not find a specific forum for this.

I am writing a Webservice that will be shipped to some of our customers to run on their web servers. The problem that I am having is that, when I create the WebService in VB. NET 2005, the namespace is hardcoded as my company's website

<WebService(Description:="OrionNet Connection Server", Namespace:="http://www.ctes.com/OrionNetConn/OrionNetConnectionServer.asmx")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class OrionNetConnectionServer
Inherits System.Web.Services.WebService

When I create the client that will call this webservice, the client fails if I move this webservice to another Web Server (that is not www.ctes.com). I need to be able to install my webservice on a customer's server and then have it work without me having to recompile it each time for each customer's webserver. I know there has to be a way but I am stuck right now.

Any ideas

Mike Dixon

Re: ASMX Web Services and XML Serialization Web Service Question

Daniel Roth

The Namespace property of the WebServiceAttribute only controls the targetNamespace for the WSDL generated for your service. It should not affect the client calling the service at all.

What error do you see when you try to use your client

Daniel Roth