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 Antanas Masevicius <an...@lksoft.lt> on 2002/12/20 16:54:18 UTC

jws service style or rpc / message style?

hello,

i've been trying to invoke service with rpc provider specified in wsdd 
and the same service through jws. Specifying two simple type arguments 
to method (return Element) in service deployed as jws worked fine and 
deploying service with wsdd didn't worked:

java.lang.reflect.InvocationTargetException
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:127)
    at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:336)
    at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
...
    at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at 
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:385)
    at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:293)
    at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:332)
    ... 40 more
Caused by: java.lang.NoClassDefFoundError: 
org/apache/axis/message/SOAPBodyElement
    at 
jsdaix.ap214.pdtnet.server.PDTNetServlet.produceElement(PDTNetServlet.java:135)
    at 
jsdaix.ap214.pdtnet.server.PDTNetServlet.ItemQuery(PDTNetServlet.java:124)
    ... 47 more

my wsdd looks like:

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

 <service name="PDTNetServlet" provider="java:RPC" >
  <parameter name="className" 
value="jsdaix.ap214.pdtnet.server.PDTNetServlet"/>
  <parameter name="allowedMethods" value="ItemQuery"/>
 </service>

</deployment>

It says that cant find SOAPBodyElement, but why then it works on jws? It 
seem that on jws simple types are handled like on RPC wapped style and 
soapEl.getAsDom() works too when returning. Thy is such a difference?