Tomas Restrepo
7/8/2003 12:03:00 AM
Hi Craig,
> am developing a WebService that provides custom WSDL
> files for each binding
> using a WebServiceBindingAttribute similiar to the
> following.
>
> [WebServiceBinding(
> Name"BindingName",
> Namespace="BindingNamespace",
> Location="http://localhost/wsdl/Binding.wsdl")]
>
> My problem is that when the full Web Service WSDL is
> generated, import of
> the wsdl references the 'localhost'. Therefore, I cannot
> deploy the Web
> Services on another machine without changing the code.
> This seems to make
> the Location property useless.
>
> <import namespace="BindingNamespace"
> location="http://localhost/wsdl/Binding.wsdl"
> />
>
> Is this a correct assumption? If so, how can a make the
> Location property
> dependent on the local ip address?
Can't you just use a relative URI for the Location attribute:
Location="/wsdl/Binding.wsdl")
--
Tomas Restrepo
tomasr@mvps.org