473,396 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Wrong address in WSDL generated by .NET - Unable to add web Refere

I have a web service created via Visual Web Developer Express Edition on a
IIS Server with .NET 2.0 installed. The test page displays just fine when the
URL of the .asmx page is entered into a browser i.e.
"http://www.mydomain.com/Extranet/WebServices/TestWebServ.asmx"

The WSDL displayed when accessing the .asmx via
http://www.mydomain.com/Extranet/Web...Serv.asmx?wsdl file has
the wrong address location. It displays

<soap12:address
location="http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx"
/>
The "extranet" should not be in front of the "mydomain.com"; where
"mydomain.com" is the domain name for the site

Also, when i try to add the web reference to the client web app that will be
consuming the web service, I get a message "Unable to download files from
"http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx?wsdl"

I seems like the computer name is being used as the first part of the
location address . The machine is named EXTRANET.mydomain.com

Any one know why and what the fix is?

Thanks in advance,

WebDev2
Aug 11 '06 #1
4 3385
"WebDev2" <We*****@discussions.microsoft.comwrote in message
news:EA**********************************@microsof t.com...
>I have a web service created via Visual Web Developer Express Edition on a
IIS Server with .NET 2.0 installed. The test page displays just fine when
the
URL of the .asmx page is entered into a browser i.e.
"http://www.mydomain.com/Extranet/WebServices/TestWebServ.asmx"

The WSDL displayed when accessing the .asmx via
http://www.mydomain.com/Extranet/Web...Serv.asmx?wsdl file
has
the wrong address location. It displays

<soap12:address
location="http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx"
/>
The "extranet" should not be in front of the "mydomain.com"; where
"mydomain.com" is the domain name for the site

Also, when i try to add the web reference to the client web app that will
be
consuming the web service, I get a message "Unable to download files from
"http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx?wsdl"

I seems like the computer name is being used as the first part of the
location address . The machine is named EXTRANET.mydomain.com

Any one know why and what the fix is?
Yes. Do not use the WSDL which .NET returns to you when using the "?wsdl"
syntax. That WSDL is generated by .NET by examining your web service class.
..NET will invent this WSDL for you, out of its own imagination, which may
not match your imagination.

Now, I take it that you want to have a WSDL which specified the location of
the service as www.mydomain.com instead of extranet.mydomain.com. If that's
the case, then you need to create a WSDL that says so. .NET has no way to
know that you want to use www.mydomain.com even though that's an alias for
"extranet.mydomain.com".

John
Aug 12 '06 #2
Ok. I am new to all this. How do I create the WSDL file and what should it
look like? Is there a .Net tool that will create a WSDL file for me?

Webdev2

"John Saunders" wrote:
"WebDev2" <We*****@discussions.microsoft.comwrote in message
news:EA**********************************@microsof t.com...
I have a web service created via Visual Web Developer Express Edition on a
IIS Server with .NET 2.0 installed. The test page displays just fine when
the
URL of the .asmx page is entered into a browser i.e.
"http://www.mydomain.com/Extranet/WebServices/TestWebServ.asmx"

The WSDL displayed when accessing the .asmx via
http://www.mydomain.com/Extranet/Web...Serv.asmx?wsdl file
has
the wrong address location. It displays

<soap12:address
location="http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx"
/>
The "extranet" should not be in front of the "mydomain.com"; where
"mydomain.com" is the domain name for the site

Also, when i try to add the web reference to the client web app that will
be
consuming the web service, I get a message "Unable to download files from
"http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx?wsdl"

I seems like the computer name is being used as the first part of the
location address . The machine is named EXTRANET.mydomain.com

Any one know why and what the fix is?

Yes. Do not use the WSDL which .NET returns to you when using the "?wsdl"
syntax. That WSDL is generated by .NET by examining your web service class.
..NET will invent this WSDL for you, out of its own imagination, which may
not match your imagination.

Now, I take it that you want to have a WSDL which specified the location of
the service as www.mydomain.com instead of extranet.mydomain.com. If that's
the case, then you need to create a WSDL that says so. .NET has no way to
know that you want to use www.mydomain.com even though that's an alias for
"extranet.mydomain.com".

John
Aug 14 '06 #3
"WebDev2" <We*****@discussions.microsoft.comwrote in message
news:9B**********************************@microsof t.com...
Ok. I am new to all this. How do I create the WSDL file and what should it
look like? Is there a .Net tool that will create a WSDL file for me?
When you use
http://www.mydomain.com/Extranet/Web...Serv.asmx?wsdl, that is
a tool creating a WSDL file for you. Perhaps you should take that file, and
edit the location of the service. From now on, that edited file is your
official WSDL, not what comes from "?wsdl".

John
Webdev2

"John Saunders" wrote:
>"WebDev2" <We*****@discussions.microsoft.comwrote in message
news:EA**********************************@microso ft.com...
>I have a web service created via Visual Web Developer Express Edition on
a
IIS Server with .NET 2.0 installed. The test page displays just fine
when
the
URL of the .asmx page is entered into a browser i.e.
"http://www.mydomain.com/Extranet/WebServices/TestWebServ.asmx"

The WSDL displayed when accessing the .asmx via
http://www.mydomain.com/Extranet/Web...Serv.asmx?wsdl file
has
the wrong address location. It displays

<soap12:address
location="http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx"
/>
The "extranet" should not be in front of the "mydomain.com"; where
"mydomain.com" is the domain name for the site

Also, when i try to add the web reference to the client web app that
will
be
consuming the web service, I get a message "Unable to download files
from
"http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx?wsdl"

I seems like the computer name is being used as the first part of the
location address . The machine is named EXTRANET.mydomain.com

Any one know why and what the fix is?

Yes. Do not use the WSDL which .NET returns to you when using the "?wsdl"
syntax. That WSDL is generated by .NET by examining your web service
class.
..NET will invent this WSDL for you, out of its own imagination, which
may
not match your imagination.

Now, I take it that you want to have a WSDL which specified the location
of
the service as www.mydomain.com instead of extranet.mydomain.com. If
that's
the case, then you need to create a WSDL that says so. .NET has no way
to
know that you want to use www.mydomain.com even though that's an alias
for
"extranet.mydomain.com".

John

Aug 14 '06 #4
Rather than edit the WSDL, I solved the problem by using some code from Kirt
Allens blog (http://blogs.msdn.com/kaevans/archiv...16/493496.aspx)
Modify a Web Service's WSDL Using a SoapExtensionReflector. Rather than
replacing the https, I replaced the "extranet" token in the generated WSDL.
Works great.

Webdev2

"John Saunders" wrote:
"WebDev2" <We*****@discussions.microsoft.comwrote in message
news:9B**********************************@microsof t.com...
Ok. I am new to all this. How do I create the WSDL file and what should it
look like? Is there a .Net tool that will create a WSDL file for me?

When you use
http://www.mydomain.com/Extranet/Web...Serv.asmx?wsdl, that is
a tool creating a WSDL file for you. Perhaps you should take that file, and
edit the location of the service. From now on, that edited file is your
official WSDL, not what comes from "?wsdl".

John
Webdev2

"John Saunders" wrote:
"WebDev2" <We*****@discussions.microsoft.comwrote in message
news:EA**********************************@microsof t.com...
I have a web service created via Visual Web Developer Express Edition on
a
IIS Server with .NET 2.0 installed. The test page displays just fine
when
the
URL of the .asmx page is entered into a browser i.e.
"http://www.mydomain.com/Extranet/WebServices/TestWebServ.asmx"

The WSDL displayed when accessing the .asmx via
http://www.mydomain.com/Extranet/Web...Serv.asmx?wsdl file
has
the wrong address location. It displays

<soap12:address
location="http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx"
/>
The "extranet" should not be in front of the "mydomain.com"; where
"mydomain.com" is the domain name for the site

Also, when i try to add the web reference to the client web app that
will
be
consuming the web service, I get a message "Unable to download files
from
"http://extranet.mydomain.com/Extranet/WebServices/TestWebServ.asmx?wsdl"

I seems like the computer name is being used as the first part of the
location address . The machine is named EXTRANET.mydomain.com

Any one know why and what the fix is?

Yes. Do not use the WSDL which .NET returns to you when using the "?wsdl"
syntax. That WSDL is generated by .NET by examining your web service
class.
..NET will invent this WSDL for you, out of its own imagination, which
may
not match your imagination.

Now, I take it that you want to have a WSDL which specified the location
of
the service as www.mydomain.com instead of extranet.mydomain.com. If
that's
the case, then you need to create a WSDL that says so. .NET has no way
to
know that you want to use www.mydomain.com even though that's an alias
for
"extranet.mydomain.com".

John


Aug 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: joewhitehair | last post by:
Using the XSD.exe tool, I created a number of classes from my XSD file. When I generate the WSDL for my web service, the schema does not have the proper Occurance constraints for the attributes. In...
0
by: Matt | last post by:
My wsdl is generated on the fly via a java program. If I save a copy and stick it thropugh any number of validators they say it is fine If I link to it as a web reference I get an error message...
1
by: Peter McEvoy | last post by:
Hi all, another question related to Schema and WSDL... I'd like to have a bit more control over the WSDL that is generated for my ..asmx. In particular, I'd like to override the generated WSDL...
0
by: Howard | last post by:
I am having a devil of a time getting WSDL.EXE to consume a WSDL file that describes a web service (known as AXL) on a Cisco phone switch. The WSDL file references four schemas and (I believe) two...
5
by: Mike Logan | last post by:
I used WSDL.exe to generate a client side web proxy for a web service, called the web service, got the results but an array returned by the web service is not in the results. However if I use...
3
by: GavinM | last post by:
I have the same question as andreas.w.h.k asked on 1/5. Our configuration is as follows: The client must use the URL https://clustername.xyz.com/webservice.asmx to access this web service. ...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool...
13
by: ScottM | last post by:
I have run into a problem generating the class file via the WSDL utility. I have a WSDL file that was generated by XMLSpy and is able to be read by the Java code utility, but I get the following...
4
by: devikiran | last post by:
Client has provided me a WSDL file generated using BPEL v10.1.3.3.0. When i try to generate the proxy class in visual studio .net 2003 I am getting the following error. Reading WSDL from:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.