Re: Add Web Reference makes multiple requests fir WSDL
From: Jared Parsons [MSFT] (jaredpar_at_online.microsoft.com)
Date: 08/06/04
- Next message: Mauricio Arroyo: "Splitting Up WSDL issue"
- Previous message: William LaMartin: "Re: Missing web services functions - urgent, please help!"
- In reply to: Brian: "Re: Add Web Reference makes multiple requests fir WSDL"
- Next in thread: Brian: "Re: Add Web Reference makes multiple requests fir WSDL"
- Reply: Brian: "Re: Add Web Reference makes multiple requests fir WSDL"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 6 Aug 2004 14:29:02 -0700
What happens if you run WSDL from the command line?
-- Jared Parson [MSFT] jaredpar@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" <Brian@discussions.microsoft.com> wrote in message news:1B92DA7C-740A-4C50-9B0F-CC789FD14CB8@microsoft.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] >> jaredpar@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" <Brian@discussions.microsoft.com> wrote in message >> news:CA09D4C9-74B0-4321-B6E4-746775E9193C@microsoft.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? >> >> >>
- Next message: Mauricio Arroyo: "Splitting Up WSDL issue"
- Previous message: William LaMartin: "Re: Missing web services functions - urgent, please help!"
- In reply to: Brian: "Re: Add Web Reference makes multiple requests fir WSDL"
- Next in thread: Brian: "Re: Add Web Reference makes multiple requests fir WSDL"
- Reply: Brian: "Re: Add Web Reference makes multiple requests fir WSDL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|