You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Nicholas Hart <nh...@real.com> on 2007/01/16 20:51:16 UTC

[axis2] question about return objects

I'm building a C client using axis2's wsdl2java and have some questions 
about the code it generates (the flags I'm using are: "-l c -a -u -d adb 
-uri myfile.wsdl").

first, it looks like there are no classes generated for the return 
objects.  is that expected?  it appears to create a class for a request 
and a response.  although the response class has a get_FooReturn() 
function, it looks like it merely returns an axiom_node_t*, not an 
object with various getters/setters for the return value's data members. 
  So it looks like I need to write a bunch of code to parse the 
return--and I had hoped axis2 would handle that.

second, I get a ton of warnings like this:

Jan 16, 2007 11:46:27 AM org.apache.axis2.schema.SchemaCompiler 
findClassName
WARNING: Type {http://my.namespace.com}ArrayOf_xsd_string missing!

and:

Jan 16, 2007 11:19:20 AM org.apache.axis2.schema.SchemaCompiler 
findClassName
WARNING: Type {urn:mynamespace}MyFooBarList missing!

So I'm wondering if there's a problem with the WSDL that is preventing 
the code generator from creating the return objects (eg: maybe it skips 
generating any objects that contain types that aren't properly definied?).

Anyhow, I'd really appreciate some feedback on this.

Thanks!

(PS: I would love to attach the WSDL, but unfortunately it contains info 
I can't release to the public.  I'm trying to create a trivial example 
WSDL that exhibits these problems and will post it if I'm successful).




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: [axis2] question about return objects

Posted by Milinda Pathirage <mi...@gmail.com>.
Hi,

It's better if you can attach the wsdl. Then we can find the errors. The
warning messages are generated because these custom types are not supported
by Schema Compiler. Currently it only support XML Schema Datatypes. Code
generator maps axiom_node_t * to those not supported types. Also WSDL2C tool
is not tested for all types of wsdls, so there may be some errors in
generated code for some wsdls. If you can attach the wsdl or wsld similar to
that, it'll help us to fix the bugs.

Thanks,
Milinda

On 1/17/07, Nicholas Hart <nh...@real.com> wrote:
>
>
> I'm building a C client using axis2's wsdl2java and have some questions
> about the code it generates (the flags I'm using are: "-l c -a -u -d adb
> -uri myfile.wsdl").
>
> first, it looks like there are no classes generated for the return
> objects.  is that expected?  it appears to create a class for a request
> and a response.  although the response class has a get_FooReturn()
> function, it looks like it merely returns an axiom_node_t*, not an
> object with various getters/setters for the return value's data members.
>   So it looks like I need to write a bunch of code to parse the
> return--and I had hoped axis2 would handle that.
>
> second, I get a ton of warnings like this:
>
> Jan 16, 2007 11:46:27 AM org.apache.axis2.schema.SchemaCompiler
> findClassName
> WARNING: Type {http://my.namespace.com}ArrayOf_xsd_string missing!
>
> and:
>
> Jan 16, 2007 11:19:20 AM org.apache.axis2.schema.SchemaCompiler
> findClassName
> WARNING: Type {urn:mynamespace}MyFooBarList missing!
>
> So I'm wondering if there's a problem with the WSDL that is preventing
> the code generator from creating the return objects (eg: maybe it skips
> generating any objects that contain types that aren't properly definied?).
>
> Anyhow, I'd really appreciate some feedback on this.
>
> Thanks!
>
> (PS: I would love to attach the WSDL, but unfortunately it contains info
> I can't release to the public.  I'm trying to create a trivial example
> WSDL that exhibits these problems and will post it if I'm successful).
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>


-- 
milinda@wso2.com
WSO2, Inc: http://www.wso2.com "Oxygenating the Web Service Platform"
Blog : http://www.milindalakmal.wordpress.com