You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by VinceK <ck...@hotmail.com> on 2007/02/27 04:45:27 UTC
Getting error WSDL2JAVA GoogleSearch.wsdl
Getting an error generating code from
http://api.google.com/GoogleSearch.wsdl
What do I need to do to get this working?
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:224)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetExcepti
on
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:52)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:177)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:49)
... 3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException:
{http://schemas.x
mlsoap.org/soap/encoding/}Array is not supported.
at
org.apache.axis2.schema.SchemaCompiler.findClassName(SchemaCompiler.j
ava:828)
at
org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCo
mpiler.java:1127)
at
org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaComp
iler.java:998)
at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi
ler.java:982)
at
org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
SchemaCompiler.java:917)
at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
ava:872)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:533)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:495)
at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:15
44)
at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
.java:1510)
at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi
ler.java:959)
at
org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
SchemaCompiler.java:917)
at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
ava:872)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:533)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:495)
at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:15
44)
at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
.java:1506)
at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi
ler.java:959)
at
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
ype(SchemaCompiler.java:891)
at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
ava:874)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:533)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:505)
at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:34
2)
at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:25
4)
at
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
--
View this message in context: http://www.nabble.com/Getting-error-WSDL2JAVA-GoogleSearch.wsdl-tf3298134.html#a9174800
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Getting error WSDL2JAVA GoogleSearch.wsdl
Posted by VinceK <ck...@hotmail.com>.
Thanks. I was hoping to find what I could do to fix it.
Amila Suriarachchi wrote:
>
> The reason is that the Axis2 does not support *use='encoded'*.
>
> Actually Basic profile prohibits the use of any encoded messages including
> soap encoding.
>
> see Basic profile http://www.ws-i.org/Profiles/BasicProfile-1.1.html
> 4.7.4 Encodings and the use Attribute
>
> The Profile prohibits the use of encodings, including the SOAP encoding.
>
> R2706 A wsdl:binding in a DESCRIPTION MUST use the value of "literal" for
> the use attribute in all soapbind:body, soapbind:fault, soapbind:header
> and
> soapbind:headerfault elements.
>
> Amila.
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
>
--
View this message in context: http://www.nabble.com/Getting-error-WSDL2JAVA-GoogleSearch.wsdl-tf3298134.html#a9196256
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Getting error WSDL2JAVA GoogleSearch.wsdl
Posted by Amila Suriarachchi <am...@gmail.com>.
The reason is that the Axis2 does not support *use='encoded'*.
Actually Basic profile prohibits the use of any encoded messages including
soap encoding.
see Basic profile http://www.ws-i.org/Profiles/BasicProfile-1.1.html
4.7.4 Encodings and the use Attribute
The Profile prohibits the use of encodings, including the SOAP encoding.
R2706 A wsdl:binding in a DESCRIPTION MUST use the value of "literal" for
the use attribute in all soapbind:body, soapbind:fault, soapbind:header and
soapbind:headerfault elements.
Amila.
--
Amila Suriarachchi,
WSO2 Inc.