472,993 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 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 3361
"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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.