473,388 Members | 1,492 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,388 software developers and data experts.

Add Web Reference makes multiple requests fir WSDL

I am trying to use a web service from a non Microsoft product. When I do a "Add Web Reference" from the Visual Studio dialog box, a request is generated and received by the web services supplier. This request contains information in the "Authorization:" header. Valid WSDL is returned and the dialog box correctly shows the services and methods available. However, a second request is also sent to the WS supplier for the same information. This request does not contain autorization information. Can anyone tell me why this is occurring and (hopefully) how to stop it?
Nov 21 '05 #1
4 2699
Can you post a link to the web service that you are trying to consume?

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
I am trying to use a web service from a non Microsoft product. When I do a
"Add Web Reference" from the Visual Studio dialog box, a request is
generated and received by the web services supplier. This request contains
information in the "Authorization:" header. Valid WSDL is returned and the
dialog box correctly shows the services and methods available. However, a
second request is also sent to the WS supplier for the same information.
This request does not contain autorization information. Can anyone tell me
why this is occurring and (hopefully) how to stop it?

Nov 21 '05 #2
I am testing this on a LAN that is not available to the outside world. At the
risk, of creating a long reply, I will append an annotated version of the
TCP/IP log that illustrates the problem. I hope this helps.
Brian
//
// Read from Add Web Reference, authentication info provided by .NET
//
Fri Aug 06 13:53:44 2004 Stream: GET /helloservice.wsdl HTTP/1.1

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
*/*

Accept-Language: en-us

Accept-Encoding: gzip, deflate

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR
1.1.4322)

Host: 192.168.2.15:1234

Connection: Keep-Alive

Authorization: Basic Ync6QWRnag==


//
// My server send back WSDL
//
Fri Aug 06 13:54:47 2004 SoapPortal: send(1460) 2299 bytes
HTTP/1.1 200 URL Found

Server: Morpheus 1.0

Date: Fri, 6 Aug 2004 19:54:47 GMT

Connection: Keep-Alive

Content-Type: text/xml

Content-Length: 02139

<?xml version="1.0" encoding="utf-8"?><definitions
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://www.aspnetsbs.com/webservices/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://www.aspnetsbs.com/webservices/"
xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <s:schema
elementFormDefault="qualified"
targetNamespace="http://www.aspnetsbs.com/webservices/"> <s:element
name="HelloWorld"> <s:complexType> <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" />
</s:sequence> </s:complexType> </s:element> <s:element
name="HelloWorldResponse"> <s:complexType> <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult"
type="s:string" /> </s:sequence> </s:complexType>
</s:element> </s:schema> </types> <message name="HelloWorldSoapIn">
<part name="parameters" element="s0:HelloWorld" /> </message> <message
name="HelloWorldSoapOut"> <part name="parameters"
element="s0:HelloWorldResponse" /> </message> <portType
name="Service1Soap"> <operation name="HelloWorld"> <input
message="s0:HelloWorldSoapIn" /> <output message="s0:HelloWorldSoapOut"
/> </operation> </portType> <binding name="Service1Soap"
type="s0:Service1Soap"> <soap:binding
transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<operation name="HelloWorld"> <soap:operation
soapAction="http://www.aspnetsbs.com/webservices/HelloWorld" style="document"
/> <input> <soap:body use="literal" /> </input>
<output> <soap:body use="literal" /> </output> </operation>
</binding> <service name="Service1"> <port name="Service1Soap"
binding="s0:Service1Soap"> <soap:address
location="http://192.168.2.131/Chapter_11/Service1.asmx" /> </port>
</service></definitions>
//
// .Net asks for wsdl a second time, but no authorization is given!
// Note that this time the user agent given contains "MS Web Services Client
Protocol..."
//
Fri Aug 06 13:54:47 2004 Stream: GET /helloservice.wsdl HTTP/1.1

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 1.1.4322.573)

Host: 192.168.2.15:1234


//
// My server reponds with a HTML "Not Found", since no authorization included
//
Fri Aug 06 13:54:58 2004 SoapPortal: send(1220) 273 bytes
HTTP/1.1 404 Not Found

Server: Morpheus 1.0

Date: Fri, 6 Aug 2004 19:54:58 GMT

Connection: Keep-Alive

Content-Type: text/html

Content-Length: 00112

<html>

<head><META HTTP-EQUIV="Expires" CONTENT="0"><title>Morpheus
Server</title></head>

\ not found<BR>
Fri Aug 06 13:54:58 2004 SoapPortal: send data returned 0
//
// At this point the Add Web Reference Dialog box indicates that it found
correct WSDL,
// but also gives a message about proxy setting not configured correctly for
web discovery.
//

"Jared Parsons [MSFT]" wrote:
Can you post a link to the web service that you are trying to consume?

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
I am trying to use a web service from a non Microsoft product. When I do a
"Add Web Reference" from the Visual Studio dialog box, a request is
generated and received by the web services supplier. This request contains
information in the "Authorization:" header. Valid WSDL is returned and the
dialog box correctly shows the services and methods available. However, a
second request is also sent to the WS supplier for the same information.
This request does not contain autorization information. Can anyone tell me
why this is occurring and (hopefully) how to stop it?


Nov 21 '05 #3
What happens if you run WSDL from the command line?

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:1B**********************************@microsof t.com...
I am testing this on a LAN that is not available to the outside world. At
the
risk, of creating a long reply, I will append an annotated version of the
TCP/IP log that illustrates the problem. I hope this helps.
Brian
//
// Read from Add Web Reference, authentication info provided by .NET
//
Fri Aug 06 13:53:44 2004 Stream: GET /helloservice.wsdl HTTP/1.1

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword,
*/*

Accept-Language: en-us

Accept-Encoding: gzip, deflate

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR
1.1.4322)

Host: 192.168.2.15:1234

Connection: Keep-Alive

Authorization: Basic Ync6QWRnag==


//
// My server send back WSDL
//
Fri Aug 06 13:54:47 2004 SoapPortal: send(1460) 2299 bytes
HTTP/1.1 200 URL Found

Server: Morpheus 1.0

Date: Fri, 6 Aug 2004 19:54:47 GMT

Connection: Keep-Alive

Content-Type: text/xml

Content-Length: 02139

<?xml version="1.0" encoding="utf-8"?><definitions
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://www.aspnetsbs.com/webservices/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://www.aspnetsbs.com/webservices/"
xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <s:schema
elementFormDefault="qualified"
targetNamespace="http://www.aspnetsbs.com/webservices/"> <s:element
name="HelloWorld"> <s:complexType> <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" />
</s:sequence> </s:complexType> </s:element> <s:element
name="HelloWorldResponse"> <s:complexType> <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult"
type="s:string" /> </s:sequence> </s:complexType>
</s:element> </s:schema> </types> <message name="HelloWorldSoapIn">
<part name="parameters" element="s0:HelloWorld" /> </message> <message
name="HelloWorldSoapOut"> <part name="parameters"
element="s0:HelloWorldResponse" /> </message> <portType
name="Service1Soap"> <operation name="HelloWorld"> <input
message="s0:HelloWorldSoapIn" /> <output
message="s0:HelloWorldSoapOut"
/> </operation> </portType> <binding name="Service1Soap"
type="s0:Service1Soap"> <soap:binding
transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<operation name="HelloWorld"> <soap:operation
soapAction="http://www.aspnetsbs.com/webservices/HelloWorld"
style="document"
/> <input> <soap:body use="literal" /> </input>
<output> <soap:body use="literal" /> </output> </operation>
</binding> <service name="Service1"> <port name="Service1Soap"
binding="s0:Service1Soap"> <soap:address
location="http://192.168.2.131/Chapter_11/Service1.asmx" /> </port>
</service></definitions>
//
// .Net asks for wsdl a second time, but no authorization is given!
// Note that this time the user agent given contains "MS Web Services
Client
Protocol..."
//
Fri Aug 06 13:54:47 2004 Stream: GET /helloservice.wsdl HTTP/1.1

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 1.1.4322.573)

Host: 192.168.2.15:1234


//
// My server reponds with a HTML "Not Found", since no authorization
included
//
Fri Aug 06 13:54:58 2004 SoapPortal: send(1220) 273 bytes
HTTP/1.1 404 Not Found

Server: Morpheus 1.0

Date: Fri, 6 Aug 2004 19:54:58 GMT

Connection: Keep-Alive

Content-Type: text/html

Content-Length: 00112

<html>

<head><META HTTP-EQUIV="Expires" CONTENT="0"><title>Morpheus
Server</title></head>

\ not found<BR>
Fri Aug 06 13:54:58 2004 SoapPortal: send data returned 0
//
// At this point the Add Web Reference Dialog box indicates that it found
correct WSDL,
// but also gives a message about proxy setting not configured correctly
for
web discovery.
//

"Jared Parsons [MSFT]" wrote:
Can you post a link to the web service that you are trying to consume?

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
>I am trying to use a web service from a non Microsoft product. When I do
>a
>"Add Web Reference" from the Visual Studio dialog box, a request is
>generated and received by the web services supplier. This request
>contains
>information in the "Authorization:" header. Valid WSDL is returned and
>the
>dialog box correctly shows the services and methods available. However,
>a
>second request is also sent to the WS supplier for the same information.
>This request does not contain autorization information. Can anyone tell
>me
>why this is occurring and (hopefully) how to stop it?


Nov 21 '05 #4
The same thing . My server gets two requests for the WSDL. The only
difference is that in the case the user agent in the header contains "MS Web
Services Client Protocol 1.1.4322.573" in both cases.
When I send the same wsdl the second time the wsdl.exe program creates the
..cs file, so it liked what it received.
"Jared Parsons [MSFT]" wrote:
What happens if you run WSDL from the command line?

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:1B**********************************@microsof t.com...
I am testing this on a LAN that is not available to the outside world. At
the
risk, of creating a long reply, I will append an annotated version of the
TCP/IP log that illustrates the problem. I hope this helps.
Brian
//
// Read from Add Web Reference, authentication info provided by .NET
//
Fri Aug 06 13:53:44 2004 Stream: GET /helloservice.wsdl HTTP/1.1

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword,
*/*

Accept-Language: en-us

Accept-Encoding: gzip, deflate

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR
1.1.4322)

Host: 192.168.2.15:1234

Connection: Keep-Alive

Authorization: Basic Ync6QWRnag==


//
// My server send back WSDL
//
Fri Aug 06 13:54:47 2004 SoapPortal: send(1460) 2299 bytes
HTTP/1.1 200 URL Found

Server: Morpheus 1.0

Date: Fri, 6 Aug 2004 19:54:47 GMT

Connection: Keep-Alive

Content-Type: text/xml

Content-Length: 02139

<?xml version="1.0" encoding="utf-8"?><definitions
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://www.aspnetsbs.com/webservices/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://www.aspnetsbs.com/webservices/"
xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <s:schema
elementFormDefault="qualified"
targetNamespace="http://www.aspnetsbs.com/webservices/"> <s:element
name="HelloWorld"> <s:complexType> <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" />
</s:sequence> </s:complexType> </s:element> <s:element
name="HelloWorldResponse"> <s:complexType> <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult"
type="s:string" /> </s:sequence> </s:complexType>
</s:element> </s:schema> </types> <message name="HelloWorldSoapIn">
<part name="parameters" element="s0:HelloWorld" /> </message> <message
name="HelloWorldSoapOut"> <part name="parameters"
element="s0:HelloWorldResponse" /> </message> <portType
name="Service1Soap"> <operation name="HelloWorld"> <input
message="s0:HelloWorldSoapIn" /> <output
message="s0:HelloWorldSoapOut"
/> </operation> </portType> <binding name="Service1Soap"
type="s0:Service1Soap"> <soap:binding
transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<operation name="HelloWorld"> <soap:operation
soapAction="http://www.aspnetsbs.com/webservices/HelloWorld"
style="document"
/> <input> <soap:body use="literal" /> </input>
<output> <soap:body use="literal" /> </output> </operation>
</binding> <service name="Service1"> <port name="Service1Soap"
binding="s0:Service1Soap"> <soap:address
location="http://192.168.2.131/Chapter_11/Service1.asmx" /> </port>
</service></definitions>
//
// .Net asks for wsdl a second time, but no authorization is given!
// Note that this time the user agent given contains "MS Web Services
Client
Protocol..."
//
Fri Aug 06 13:54:47 2004 Stream: GET /helloservice.wsdl HTTP/1.1

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 1.1.4322.573)

Host: 192.168.2.15:1234


//
// My server reponds with a HTML "Not Found", since no authorization
included
//
Fri Aug 06 13:54:58 2004 SoapPortal: send(1220) 273 bytes
HTTP/1.1 404 Not Found

Server: Morpheus 1.0

Date: Fri, 6 Aug 2004 19:54:58 GMT

Connection: Keep-Alive

Content-Type: text/html

Content-Length: 00112

<html>

<head><META HTTP-EQUIV="Expires" CONTENT="0"><title>Morpheus
Server</title></head>

\ not found<BR>
Fri Aug 06 13:54:58 2004 SoapPortal: send data returned 0
//
// At this point the Add Web Reference Dialog box indicates that it found
correct WSDL,
// but also gives a message about proxy setting not configured correctly
for
web discovery.
//

"Jared Parsons [MSFT]" wrote:
Can you post a link to the web service that you are trying to consume?

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
>I am trying to use a web service from a non Microsoft product. When I do
>a
>"Add Web Reference" from the Visual Studio dialog box, a request is
>generated and received by the web services supplier. This request
>contains
>information in the "Authorization:" header. Valid WSDL is returned and
>the
>dialog box correctly shows the services and methods available. However,
>a
>second request is also sent to the WS supplier for the same information.
>This request does not contain autorization information. Can anyone tell
>me
>why this is occurring and (hopefully) how to stop it?


Nov 21 '05 #5

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

Similar topics

6
by: trexim | last post by:
Hi, I am trying to create a Web Reference for CSTA using the URL http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl Visual .Net complains that: "...
5
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in...
3
by: TC | last post by:
Hello All, I have winforms app that accesses a webservice and the WSDL is referenced dynamically. I was wondering 2 things: First, if one parses the .config file and changes the URL...
6
by: seeIT | last post by:
In a client application a simple webservice (add/multiply) was added to solution panel but proxy methods do not appear. WSDL description in solution panel follows: <?xml version="1.0"...
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: manika02 | last post by:
I am unable to add web reference in Visual Studio 2003. I get the following error: "Unable to download following files from http://mysite.com/webservice.asmx?wsdl Do you want to skip these...
0
by: vihrao | last post by:
I am designing wsdl that uses multiple schemas. I can do this in two ways: 1) use multiple schema imports in one wsdl or 2) use multiple schema imports in to one common schema and then import a...
2
by: scott mcfadden | last post by:
Using VS 2003, I can not add a web reference to our production server's ..asmx URL using HTTPS. I will put in a URL like: https://mycompany.com/myapp/myservice.asmx VStudio will display the...
0
by: =?ISO-8859-1?Q?Jan_Thom=E4?= | last post by:
Hi, I've been trying like a madman to make my WSDL work with .net, but it seems I am out of luck. Whenever I add a service reference to Visual C#, the code gets generated fine, however all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.