That's odd. <target name="boom"> <echo message="Generating service stubs/skeletons"/> <java classname="${wsdl.tool}" classpathref="compile-classpath" dir="${build}" failonerror="true" fork="yes"> <arg value="-o"/> <arg value="test.wsdl"/> <arg value="-l"/> <arg value="http://localhost:5050/axis/services/MIRAccessService"/> <arg value="uk.org.mygrid.mir.service.TestPortType"/> </java> </target>
A target like this generates the WSDL with proper namespaces...I modified the class and methods (as otherwise I won't be able to compile as it refers to a whole lot of other classes) Make sure you have the proper arguments in the call to Java2WSDL. You might have to give the bindings, namespace mappings... Arijit >-----Original Message----- >From: Koney, Satish [mailto:[EMAIL PROTECTED] >Sent: 21 October 2004 14:43 >To: [EMAIL PROTECTED] >Subject: RE: what is the meaning of this?? > >My service classs is as below: > > >package com.sat.dao.hibernate; > >import java.util.List; > >import com.sat.dao.RoleDAO; >import com.sat.model.User; >import com.sat.model.Role; >import org.apache.commons.logging.Log; >import org.apache.commons.logging.LogFactory; >import org.springframework.orm.hibernate.support.HibernateDaoSupport; > >public class RoleDAOHibernate extends HibernateDaoSupport >implements RoleDAO { > > protected final Log log = LogFactory.getLog(getClass()); > > public List getRoles() { > return getHibernateTemplate().find("from Role"); > } > > public void createUser(User user) { > log.info("in dao hibernate"+user); > getHibernateTemplate().save(user); > > } > > public User getUser(Integer id) { > log.info("in dao hibernate"+id); > User user = (User) >getHibernateTemplate().get(User.class,id); > log.info("user"+user); > return user; > } > > public Role getRoleDesc(Integer roleId){ > log.info("in dao hibernate"+roleId); > Role role = (Role) >getHibernateTemplate().get(Role.class,roleId); > log.info("role"+role); > return role; > } > > public void updateUser(User user) { > getHibernateTemplate().update(user); > } > > public void deleteUser(Integer id) { > log.info("in dao hibernate"+id); > Object user = >getHibernateTemplate().load(User.class, id); > getHibernateTemplate().delete(user); > } >} > > >> -----Original Message----- >> From: Arijit Mukherjee [SMTP:[EMAIL PROTECTED] >> Sent: Thursday, October 21, 2004 7:09 PM >> To: [EMAIL PROTECTED] >> Subject: RE: what is the meaning of this?? >> >> Mind posting your java class? >> >> Arijit >> >> >-----Original Message----- >> >From: Koney, Satish [mailto:[EMAIL PROTECTED] >> >Sent: 21 October 2004 14:32 >> >To: [EMAIL PROTECTED] >> >Subject: RE: what is the meaning of this?? >> > >> >But i am getting this problem while generating WSDL file I >have only >> >one java class which acts as a service. >> >From that i am trying to create WSDL file.. >> >at that time i am getting that error >> > >> >> -----Original Message----- >> >> From: Arijit Mukherjee [SMTP:[EMAIL PROTECTED] >> >> Sent: Thursday, October 21, 2004 6:58 PM >> >> To: [EMAIL PROTECTED] >> >> Subject: RE: what is the meaning of this?? >> >> >> >> Guess this comes from your XSD/WSDL file. Use this: >> >> >> >> xmlns:xs="http://www.w3.org/2001/XMLSchema" >> >> >> >> Arijit >> >> >> >> >-----Original Message----- >> >> >From: Koney, Satish [mailto:[EMAIL PROTECTED] >> >> >Sent: 21 October 2004 14:11 >> >> >To: [EMAIL PROTECTED] >> >> >Subject: what is the meaning of this?? >> >> > >> >> >Can someone explaing the reason and how to solve this??? >> >> > >> >> >WSDLException: faultCode=OTHER_ERROR: Can't find prefix for >> >> >'http://www.w3.org/1 >> >> >999/XMLSchema'. Namespace prefixes must be set on the Definition >> >> >object using th e addNamespace(...) method.: >> >> > >> >> >____________________________________________ >> >> >Confidential: This electronic message and all contents contain >> >> >information from Syntel, Inc. which may be privileged, >> >> >confidential or otherwise protected from disclosure. The >> >> >information is intended to be for the addressee only. If you are >> >> >not the addressee, any disclosure, copy, distribution or use of >> >> >the contents of >> >this message >> >> >is prohibited. If you have received this electronic message in >> >> >error, please notify the sender immediately and destroy the >> >original >> >> >message and all copies. >> >> > >> >> > >> >> >> >____________________________________________ >> >Confidential: This electronic message and all contents contain >> >information from Syntel, Inc. which may be privileged, confidential >> >or otherwise protected from disclosure. The information is intended >> >to be for the addressee only. If you are not the addressee, any >> >disclosure, copy, distribution or use of the contents of >this message >> >is prohibited. If you have received this electronic message in >> >error, please notify the sender immediately and destroy the >original >> >message and all copies. >> > >> > >> >____________________________________________ >Confidential: This electronic message and all contents >contain information from Syntel, Inc. which may be privileged, >confidential or otherwise protected from disclosure. The >information is intended to be for the addressee only. If you >are not the addressee, any disclosure, copy, distribution or >use of the contents of this message is prohibited. If you >have received this electronic message in error, please notify >the sender immediately and destroy the original message and all copies. > >
test.wsdl
Description: test.wsdl