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?!
Talk to you soon,
Mick
_________________________
Mick Robinson
MapCloud Services Inc
1200-1185 West Georgia St
Vancouver B.C.
604-895-7611 (P)
604-682-3497 (F)
|