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.ws dl 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:12 34
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"?><definition s
xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://www.aspnetsbs.c om/webservices/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/"
targetNamespace ="http://www.aspnetsbs.c om/webservices/"
xmlns="http://schemas.xmlsoap .org/wsdl/"> <types> <s:schema
elementFormDefa ult="qualified"
targetNamespace ="http://www.aspnetsbs.c om/webservices/"> <s:element
name="HelloWorl d"> <s:complexTyp e> <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" />
</s:sequence> </s:complexType> </s:element> <s:element
name="HelloWorl dResponse"> <s:complexTyp e> <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorl dResult"
type="s:string" /> </s:sequence> </s:complexType>
</s:element> </s:schema> </types> <message name="HelloWorl dSoapIn">
<part name="parameter s" element="s0:Hel loWorld" /> </message> <message
name="HelloWorl dSoapOut"> <part name="parameter s"
element="s0:Hel loWorldResponse " /> </message> <portType
name="Service1S oap"> <operation name="HelloWorl d"> <input
message="s0:Hel loWorldSoapIn" /> <output message="s0:Hel loWorldSoapOut"
/> </operation> </portType> <binding name="Service1S oap"
type="s0:Servic e1Soap"> <soap:binding
transport="http ://schemas.xmlsoap .org/soap/http" style="document " />
<operation name="HelloWorl d"> <soap:operati on
soapAction="htt p://www.aspnetsbs.c om/webservices/HelloWorld" style="document "
/> <input> <soap:body use="literal" /> </input>
<output> <soap:body use="literal" /> </output> </operation>
</binding> <service name="Service1" > <port name="Service1S oap"
binding="s0:Ser vice1Soap"> <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.ws dl 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:12 34
//
// 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"><ti tle>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***@discussi ons.microsoft.c om> wrote in message
news:CA******** *************** ***********@mic rosoft.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?