WebServiceBindingattribute Location property

C

Craig Neuwirt

I 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?

thannks,
craig
 
N

Natty Gur

Hi,

I put the wsdl file on the production servers (cluster) in the same
location (http://myservername/wsdls/MyInterface.wsdl) and point the
location attribute to that location.

By the way are you implementing web service interface?

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
 
C

Craig Neuwirt

Hello Natty,

That is certainly a solution to the problem. It would still be nice
to be able to do it independently of deployment, in particular for
development and testing purposes.
By the way are you implementing web service interface?

Do you mean extending the WebService class? If so, I am extending from
Web Service

public class MyWebService : WebService

Thanks,
Craig
 
N

Natty Gur

No, creating interface for web services that should be implemented by
web services and can be call by clients using the Interface.

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

WebServiceBindingAttribute 0
Web Config problem 3
WSDL Error 1
generating a web service from a wsdl from bea weblogic 0
SOAP Webservice C# / Axis2 0
web service reference 3
WSDL Error 0
wsdl.exe error 2

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top