If you are using latest cvs version of axis....See http://cvs.apache.org/viewcvs.cgi/ws-axis/java/samples/ejb/ant-build.xml you can add a complextype tag and specify your own serializers.
-- dims --- "Heitzeg, Bill" <[EMAIL PROTECTED]> wrote: > I don't think you're understanding my question. I have bean mappings in my wsdd, > that's why my > service works with complex types (as described below). What I can't do is to get > java2wsdl to > see my wsdd and therefore generate the same wsdl that axis generates on the fly. Do > you know a > way that I can pass, into java2wsdl, a wsdd? > > Bill > > -----Original Message----- > From: Gabriel Ciuloaica [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 24, 2004 12:05 PM > To: [EMAIL PROTECTED] > Subject: RE: wsdd and java2wsdl > > Hi, > > You need to add to you wsdd a <beanMapping> tag. See the example below: > > <?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> > > Regards, > Gabi > > -----Original Message----- > From: Heitzeg, Bill [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 24, 2004 6:55 PM > To: [EMAIL PROTECTED] > Subject: wsdd and java2wsdl > > Hi, > I am trying to use java2wsdl to generate a wsdl with complex types. > > > When I deploy the service, using a deploy.wsdd, axis generates my wsdl > without a problem. Unfortunately, when I attempt to run java2wsdl, I get a > number of: > > Please register a typemapping/beanmapping for ' > > I assume, as when Axis runs as a server, I need to describe my type > mappings. Axis gets this information from deploy.wsdd. I cannot see anyway > to communicate the same information to java2wsdl. Is java2wsdl capable of > generating complex types? If so, does anyone know how to communicate the > proper information to it? > > Thanks, > > Bill > > > > ===== Davanum Srinivas - http://webservices.apache.org/~dims/
