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 Etienne Giraudy <eg...@gmail.com> on 2005/03/23 14:19:18 UTC
WS/WSRP newbie troubles
Hi,
I'm in the process of trying to implement a native WSRP web service.
Here is what i've done so far:
- get wsrp WSDL and XSD files
- get sample service WSDL file
- generate java code with WSDL2Java:
java -cp "%AXISCLASSPATH%" org.apache.axis.wsdl.WSDL2Java
--server-side --skeletonDeploy true sample_wsrp_service.wsdl
- compile
- deploy the fake portlet to axis webapp (see attached server-config.wsdd)
- reference the portlet from uPortal (also tried with liferay)
When the portal tries to get the portlet description i'm getting the
following error on the axis server (reformatted for easy reading):
- Tried to invoke method
public void bind.v1.wsrp.tc.names.oasis.WSRP_v1_ServiceDescription_Binding_SOAPSkeleton.getServiceDescription(
types.v1.wsrp.tc.names.oasis.RegistrationContext,
java.lang.String[],
javax.xml.rpc.holders.BooleanHolder,
types.v1.wsrp.tc.names.oasis.holders.PortletDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ItemDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ItemDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ItemDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ItemDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.CookieProtocolHolder,
types.v1.wsrp.tc.names.oasis.holders.ModelDescriptionHolder,
org.w3.www._2001.XMLSchema.holders.StringArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ResourceListHolder,
types.v1.wsrp.tc.names.oasis.holders.ExtensionArrayHolder)
throws
java.rmi.RemoteException,
types.v1.wsrp.tc.names.oasis.InvalidRegistrationFault,
types.v1.wsrp.tc.names.oasis.OperationFailedFault
with arguments
null,
javax.xml.rpc.holders.BooleanHolder,
types.v1.wsrp.tc.names.oasis.holders.PortletDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ItemDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ItemDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ItemDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ItemDescriptionArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.CookieProtocolHolder,
types.v1.wsrp.tc.names.oasis.holders.ModelDescriptionHolder,
org.w3.www._2001.XMLSchema.holders.StringArrayHolder,
types.v1.wsrp.tc.names.oasis.holders.ResourceListHolder,
types.v1.wsrp.tc.names.oasis.holders.ExtensionArrayHolder,
null.
The arguments do not match the signature.
java.lang.IllegalArgumentException: argument type mismatch
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:384)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:281)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
...
It seems to me that AXIS mismatch arguments order (the last one,
'null', should have been the second argument).
Any idea on what i may i've done wrong?
Is there a known bug here (i did search in JIRA, but did not found anything).
Note: I've tested with AXIS 1.1 (had to modify generated code for the
java.lang.holders.StringArrayHolder issue) and AXIS 1.2RC3.
Subsidiary question: i've not been able to find a packaged sample of
native WSRP portlet, does anyone knows about good resources for being
kick-started on the subject?
Thanks in advance,
Etienne