Click to See Complete Forum and Search --> : added web reference, but no wsdl file, web service


steve1_rm
December 23rd, 2006, 02:10 AM
Hello,

Visual Studio 2005

I have created a simple web service on my local machine. I added the web reference and everything works fine.

However, when i add an web reference from my remote web server it adds the web reference, but there is no wsdl document.

From my local machine I have under the web reference the following files: Reference.map, service.disco, service.wsdl.

On my remote web server I have the following: Reference.map, service.disco. The service.wsdl is missing.

I have always created web service on my local machine, this is the first time from a remote server.

Can anyone provide any guidance on how to solve this problem.

Many thanks in advance,

Steve

Igor Soukhov
December 23rd, 2006, 10:21 AM
Can anyone provide any guidance on how to solve this problem.


And what is the problem ?

Hello,

Visual Studio 2005

I have created a simple web service on my local machine. I added the web reference and everything works fine.

However, when i add an web reference from my remote web server it adds the web reference, but there is no wsdl document.

From my local machine I have under the web reference the following files: Reference.map, service.disco, service.wsdl.

On my remote web server I have the following: Reference.map, service.disco. The service.wsdl is missing.

I have always created web service on my local machine, this is the first time from a remote server.

Can anyone provide any guidance on how to solve this problem.

Many thanks in advance,

Steve

steve1_rm
December 23rd, 2006, 01:24 PM
Hello,

Thanks for your reply.

I can't create an instance of the web reference class, as the wsdl document has not been added, when I added the web reference.

For example;

imports myProject myWebReference

When I create an instance of it for example:
dim ws as myproject.myWebReference 'There is no methods as the wsdl document is not there.

There should be 3 files. reference, disco, and the wsdl.

But, I don't seem to have the wsdl document.

Not sure why this is,

Thanks for any help.

Steve

steve1_rm
December 28th, 2006, 04:43 AM
Hello,

I have developed a Web service and a PDA application. The Web service and SQL database are on the same server.

The client will use the PDA application and access the web service to get data on customers.

The web service, PDA application, and SQL server have all be developed and are working using the localhost, local network. By adding the web reference.

My problem is when I want to add the web reference from the Internet. This is because the clients will be on the road or at a clients office. And will need access to their data.

I have added the web reference in the normal way. Right click | Add reference. From the Internet I can access the server and add the web reference. However, the problem is that wsdl file is never included.

Some tests i have done.
Test 1
Accessing the web service when adding the web reference from the local computer, or local network. The following files are included: reference.map, service.disco, service.wsdl.

Test 2
Access the web service from the Internet when adding the web reference.
The following files are included: reference.map, service.disco. THERE IS NO service.wsdl.

Test 3
If I access the web service directly from a browser, I can see the list of web methods and descriptions.

Test 4
If i acess the web service from the Internet when adding the web reference like the following: http://MyServer/service.asmx?wsdl. The only file that is included is the service.wsdl.

I have created another simple web service that just displays the hello world. This has the same problem as above, but maybe you can use it for testing my web service.

http://cf01.no-ip.com:8000/webservice1/service.asmx

However, the above link works, but sometimes is offline.

If you can give me any advice or help with this problem I would be most grateful,

Thanks in advance,

Steve

steve1_rm
January 2nd, 2007, 01:03 PM
Hello

having a problem with this web service.

The message we get when we try and add the web reference is "unable download following files http://10.0.1.7/codered/service.asmx?wsdl". Which is using the internal ip address of the web server. We have check the IIS where the web service has been published to. But could not see why it is using the internal ip and not the external ip address. The actual url is http://83.100.199.125/codered/service.asmx

Here is the service description sample, maybe someone can check this, as this has the internal ip address at the bottom.


wsdl:definitions targetNamespace="http://tempuri.org/"

wsdl:types>

s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"


wsdl:binding

wsdl:service name="Service"

wsdl:port name="ServiceSoap" binding="tns:ServiceSoap"
soap:address location="http://10.0.1.7/codered/service.asmx"/
wsdl:port

wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12"
soap12:address location="http://10.0.1.7/codered/service.asmx"
wsdl:port
wsdl:service
wsdl:definitions



I am really hopping someone can help me with this problem.

Many thanks if you can,

Steve