users@jax-rpc.java.net

problem with wscompile (Amazon WS)

From: Artur Caetano <artur.caetano_at_inov.pt>
Date: Sun, 03 Apr 2005 20:50:30 +0100

Hello!

I am trying to use wscompile to generate the client stubs for the
current (2005-03-23) WSDL provided by Amazon as follows:

    wscompile -keep -gen:client -d . config-wsdl.xml

where config-wsdl.xml is defined as:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
      xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
        <wsdl
    location="http://webservices.amazon.com/AWSECommerceService/2005-03-23/AWSECommerceService.wsdl"
        packageName="amazon"/>
    </configuration>

The issue is that I get a stack overflow error while parsing the wsdl
file. I have already tried to increase the stack and memory size of the
jvm up to 1 GB (using -Xss, etc.) but keep getting the same error. The
first lines of the stack dump start with:

    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.StackOverflowError
            at
    com.sun.xml.rpc.wsdl.document.schema.SchemaElement.getURIForPrefix(SchemaElement.java:241)
            at
    com.sun.xml.rpc.wsdl.document.schema.SchemaElement.getURIForPrefix(SchemaElement.java:241)
            at
    com.sun.xml.rpc.wsdl.document.schema.SchemaElement.getURIForPrefix(SchemaElement.java:241)
            at
    com.sun.xml.rpc.wsdl.document.schema.SchemaElement.asQName(SchemaElement.java:267)
            at
    com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.internalBuildElementDeclaration(InternalSchemaBuilderBase.java:421)
            at
    com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.processElementParticle(InternalSchemaBuilderBase.java:338)
    (...)

Any suggestion on how to generate the stubs for the Amazon WSDL?

Thanks!
Artur