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 Xavier Delplanque <xa...@bull.net> on 2003/04/16 16:50:01 UTC
allowedMethods parameters problems
Hi all,
We're trying to deploy EJBs as Web Services on AXIS 1.0. If the
allowedMethods Parameters is set to *, we'll get on "And now... Some
Services" page for our service this following methods list :
* HelloBeanServiceEmb (wsdl)
o hello
o remove
o getEJBLocalHome
o getPrimaryKey
o isIdentical
So it seems that we have methods not specified in our service interface
:
public interface HelloLocal extends EJBLocalObject {
public String hello();
}
that's the first problem, the second one occurs when we want to view the
wsdl file generated by AXIS :
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - WSDLException: faultCode=OTHER_ERROR: Can't find prefix for
'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be set on
the Definition object using the addNamespace(...) method.:
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix
for 'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be set
on the Definition object using the addNamespace(...) method.:
faultActor: null
faultDetail:
stackTrace: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for
'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be set on
the Definition object using the addNamespace(...) method.:
....
here is the WSDD file we are using :
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="HelloBeanServiceEmb" provider="java:EJB">
<parameter name="beanJndiName" value="HelloHomeHome_L"/>
<parameter name="homeInterfaceName"
value="org.objectweb.axis.embedded.helloBean.HelloLocalHome"/>
<parameter name="remoteInterfaceName"
value="org.objectweb.axis.embedded.helloBean.HelloLocal"/>
<parameter name="jndiURL" value="rmi://localhost:2003"/>
<parameter name="allowedMethods" value="*"/>
<parameter name="jndiContextClass"
value="com.sun.jndi.rmi.registry.RegistryContextFactory"/>
</service>
</deployment>
best regards
Xavier