Title: Re: Nothing but problems consuming .NET services!!

I’ve created a clone of this service at: http://keithba.com/WeatherFetcher.asmx that you can try using.

 

Try it out, and let me know if that works…

 

-----Original Message-----
From: Keith Ballinger
Sent: Friday, June 28, 2002 6:56 PM
To: Sam Ruby; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Nothing but problems consuming .NET services!!

 

Fascinating...this service doesn't even interop .NET 2 .NET. When I build a proxy class with wsdl.exe and make a request, I still get back the same response Sam and Mick see.

 

I noticed that the owner of the service charges for a subsription fee for the service. So, perhaps this is why we aren't getting results. I've cc'd the service owner to this reply.

 

thanks,

Keith

-----Original Message-----
From: Sam Ruby [mailto:[EMAIL PROTECTED]]
Sent: Fri 6/28/2002 5:40 PM
To: [EMAIL PROTECTED]
Cc:
Subject: Re: Nothing but problems consuming .NET services!!

Mick Robinson wrote:
> Hey Guys,
>
> I tell ya, I've had nothing but problems trying to consume web services
> written in .NET. It seems to me Bill would like .NET services to be only
> consumed by other .NET apps. It must be that 1degree of separation )..
>
> Anyways, please follow along my case point: .NET WebService
> "WeatherFetcher" It takes a String zipcode and returns a Weather object
> full of strings with stuff from time to moonrise..
> (http://glkev.net.innerhost.com/glkev_ws/WeatherFetcher.asmx?WSDL)
>
> Ok, so I run WSDL2java on it, get the stub, run the stub, it consumes
> the service:
>
> <code>
> com.myasptools.www.WeatherFetcherSoapStub soap = new
> com.myasptools.www.WeatherFetcherSoapStub(new
> java.net.URL("http://glkev.net.innerhost.com/glkev_ws/WeatherFetcher.asm
> x"), new Service());
>
> com.myasptools.www.Weather weather = soap.getWeather("90210");
> </code>
>
> But the "Weather.class" object, is always filled with null values!?
> So since It's a .NET service, I do a little testy testy to see if the
> service is returning the nulls
> (http://glkev.net.innerhost.com/glkev_ws/WeatherFetcher.asmx/GetWeather?
> zipCode=90210)
>
> Sure enough its response has all the data.. But I do notice something!
> All the element names in the Weather object start with Capitals!
> Could this be why the java Weather object is not getting the values??
> You know what I mean?
>
> We should get to the bottom of this? See what's going on?!

I'm puzzled.  Yes, when you use the web page (i.e., HTTP GET) it works.
  But when we send:

> POST /glkev_ws/WeatherFetcher.asmx HTTP/1.0
> Host: glkev.net.innerhost.com
> Content-Type: text/xml; charset=utf-8
> SOAPAction: "http://www.myasptools.com/GetWeather"
> Content-Length: 361
>
> <?xml version="1.0" encoding="UTF-8"?>
> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>   <soap:Body>
>     <GetWeather xmlns="http://www.myasptools.com/">
>       <zipCode>90210</zipCode>
>     </GetWeather>
>   </soap:Body>
> </soap:Envelope>

What we get back is

> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Sat, 29 Jun 2002 00:18:15 GMT
> MicrosoftOfficeWebServer: 5.0_Pub
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Type: text/xml; charset=utf-8
> Content-Length: 342
>
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetWeatherResponse xmlns="http://www.myasptools.com/"><GetWeatherResult /></GetWeatherResponse></soap:Body></soap:Envelope>

So, I tried posting pretty much EXACTLY what the web page provided as
example POST, as follows:

> POST /glkev_ws/WeatherFetcher.asmx HTTP/1.1
> Host: glkev.net.innerhost.com
> Content-Type: text/xml; charset=utf-8
> Content-Length: 355
> SOAPAction: "http://www.myasptools.com/GetWeather"
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>   <soap:Body>
>     <GetWeather xmlns="http://www.myasptools.com/">
>       <zipCode>90201</zipCode>
>     </GetWeather>
>   </soap:Body>
> </soap:Envelope>

What I got back in return was

> HTTP/1.1 100 Continue
> Server: Microsoft-IIS/5.0
> Date: Sat, 29 Jun 2002 00:39:43 GMT
> MicrosoftOfficeWebServer: 5.0_Pub
>
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Sat, 29 Jun 2002 00:39:43 GMT
> MicrosoftOfficeWebServer: 5.0_Pub
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Type: text/xml; charset=utf-8
> Content-Length: 342
>
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetWeatherResponse xmlns="http://www.myasptools.com/"><GetWeatherResult /></GetWeatherResponse></soap:Body></soap:Envelope>

So, I am going to forward this onto one of my friends at Microsoft to
see if they have any ideas...

- Sam Ruby



Reply via email to