It's because the <getCountriesResponse> element is in the
"http://www.AbundantTech.com/WebServices/Population"; namespace, not
the
"http://www.abundanttech.com/WebServices/Population"; namespace. 

(Namespace URIs are case sensitive.)

Change the targetNamespace URI of your WSDL to
"http://www.AbundantTech.com/WebServices/Population";.

I'm actually surprised that wsdl2java doesn't throw a lot more errors,
though, because you're missing a bunch of namespace declarations (the
default namespace, and the "s", "s0", and "soap" prefixes need to be
declared).

Anne

On 5/27/05, footh <[EMAIL PROTECTED]> wrote:
> I am trying to generate proxy classes with wsdlToJava
> using this wsdl:
> 
> http://www.abundanttech.com/webservices/population/population.wsdl
> 
> However, I receive this error:
> 
> java.io.IOException: Element
> {http://www.abundanttech.com/WebServices/Population
> }getCountriesResponse is referenced but not defined.
> 
> Upon examining the wsdl, the getCountriesResponse
> element seems to be OK to me.  Can anyone enlighten me
> as to what I might be missing?
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
>

Reply via email to