axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Ciuloaica" <g...@bitsizecode.net>
Subject Problem generating client code when server method is returning collection
Date Mon, 23 Feb 2004 00:25:57 GMT
Hi,

 

I'm working on a project that has 2 modules. A server module that is done
based on J2EE and an AdminConsole that is coded in VC++ 6.

One of the EJBs is providing web services. One of the remote methods of this
EJB is returning an ArrayList.

 

The problem is that after I'm getting wsdl file generated by JBoss, I'm
using wsdl2ws to generate client code. The code is not compiling at wall and
from my investigations I've saw that the code generated for the method that
is returning the ArrayList is causing the problem because is not generated
the Array class.

 

Here is my web-service.xml content file that I'm using to deploy the module
on JBoss:

 

<?xml version="1.0" encoding="UTF-8"?>

<deployment

    name="WebSvcAdminProfiles" 

    xmlns="http://xml.apache.org/axis/wsdd/"

    targetNamespace="http://net.jboss.org/WebSvcAdminProfiles"

    xmlns:bitserver="http://net.jboss.org/WebSvcAdminProfiles"

    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 

<!-- The following are declarations of service endpoints targetted to

     session beans -->

 

  <service name="WebSvcAdminProfiles" provider="Handler">

    <parameter name="handlerClass"
value="org.jboss.net.axis.server.EJBProvider"/>

    <parameter name="beanJndiName" value="ejb/BitServer/AdminProfiles"/>

    <parameter name="allowedMethods" value="getProfiles getUserProfile"/>

    <requestFlow name="WebSvcRequest">

    </requestFlow>

    <responseFlow name="WebSvcResponse">

    </responseFlow>

  </service>

 

<!-- The following are typemappings for entity beans for implementing 

     the implicit web-service value-object pattern -->

 

 <beanMapping qname="BitServerNS:UserProfiles"
xmlns:BitServerNS="urn:AdminProfilesBean"      

  languageSpecificType="java:net.bitsizecode.bitserver.util.UserProfiles"/>


 

<!-- There follow merged custom web service descriptions -->

 

</deployment>

 

The wsdl file generated is attached. You can see that the schema for the
method that is returning the ArrayList is not correct. I'm suspecting that
the problems are beginning here.

 

Now, when I'm running the wsdl2ws I'm getting these warnings:

 

     [java] ############## the type found
={urn:AdminProfilesBean}UserProfiles

     [java] ############## the type found
={http://net.jboss.org/jmx}ObjectNameT

ype

     [java]
C:\tools\axis-c-1-0-win32\lib\axis\.\ClientOut\AdminProfilesBean.cpp

 created.....

     [java]
C:\tools\axis-c-1-0-win32\lib\axis\.\ClientOut\AdminProfilesBean.h c

reated.....

     [java] complex type writer called ......

     [java] possible error calss with no attributes....................

     [java] possible error calss with no attributes....................

     [java]
C:\tools\axis-c-1-0-win32\lib\axis\.\ClientOut\ObjectNameType.cpp cr

eated.....

     [java] C:\tools\axis-c-1-0-win32\lib\axis\.\ClientOut\ObjectNameType.h
crea

ted.....

     [java] complex type writer called ......

     [java] C:\tools\axis-c-1-0-win32\lib\axis\.\ClientOut\UserProfiles.cpp
crea

ted.....

     [java] C:\tools\axis-c-1-0-win32\lib\axis\.\ClientOut\UserProfiles.h
create

d.....

 

 

I'm beginner in web-services and I do not manage by myself to fix this
problem. Any hint will be very appreciated.

 

Thanks,

Gabi


Mime
View raw message