Re: Add Web Reference makes multiple requests fir WSDL

From: Jared Parsons [MSFT] (jaredpar_at_online.microsoft.com)
Date: 08/06/04


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?
>>
>>
>> 


Relevant Pages

  • Re: How to do a Pick/DataBASIC http server service?
    ... use a forwarding technique which accepts the request then redirects it ... And that request to the other server might or might not also be ... Web Services - which is one of the reasons why I wrote my articles ont ... Yes, but is there even one example of PHP with UniData and, if so, what ...
    (comp.databases.pick)
  • Re: Web Services simulator
    ... generate Web services that conform to the WSDL that you received. ... There are several request objects and response objects. ...
    (microsoft.public.dotnet.xml)
  • Re: How to send data to peers over the net
    ... With web services you can't send a peer a message without a request, ... Do I need a middle man server? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Best web server interface to D3
    ... I knew I would catch a flame from my request:) ... I have a client who has happily been ... D3, anything can connect into the middle-tier like web services, etc. ... This was written as a client rather than as a server because of often ...
    (comp.databases.pick)
  • Re: soap + wsdl troubles
    ... >> Am I looking at different defaults or is the wsdl setting this? ... > The server you are attempting to call determines it. ... > started or pick up a book on web services. ... > figure out the ruby classes without much documentation -- ...
    (comp.lang.ruby)

Quantcast