error while usingJaxRpc.. of spring and document/literal wsdl style
vishakha_sawant
Greenhorn
Joined: Mar 13, 2006
Posts: 7
posted
0
Hi all,
I am totally newbie to webservices. I am using spring framework to integrate webservices in my application. I am using "org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean" class of spring api for this and it's working properly with 'rpc/encoding' style of wsdl. i am using jwsdp1.5 to generate wsdl file. But it's giving following error when i tried it with 'document/literal'
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.io.IOException: No serializer found for class uk.co.lvl.ecommerce.dsf.dto.Product in registry org.apache.axis.encoding.TypeMappingImpl@19702b1 faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.io.IOException: No serializer found for class uk.co.lvl.ecommerce.dsf.dto.Product in registry org.apache.axis.encoding.TypeMappingImpl@19702b1 at org.apache.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:1277)
can anyone plz suggest me what should i do to use 'document/literal' with jax-rpc please help me out to solve this problem
vishakha_sawant
Greenhorn
Joined: Mar 13, 2006
Posts: 7
posted
0
please help me out to solve the above problem
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35247
7
posted
0
Hello "vishakha"-
Welcome to JavaRanch.
On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it - please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.
As to your question, did you register a serializer for class uk.co.lvl.ecommerce.dsf.dto.Product? You can't send just any object via SOAP - if it's not one of the objects Axis knows about, then you will need to provide a pair of serializer/deserializer classes (unless you can use Axis' BeanSerializer, but even that needs to be declared). [ March 20, 2006: Message edited by: Ulf Dittmer ]
vishakha_sawant
Greenhorn
Joined: Mar 13, 2006
Posts: 7
posted
0
Hi Ulf Dittmer, Thanks for your help. ya i already registered 'product' using 'org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean'. I solve the error-- 'No serializer found for class uk.co.lvl.ecommerce.dsf.dto.Product in registry' by including the class files generated at the time of 'wscompile'. But now i m getting following error... what i should do? what this error actually mean?
Hi, The above error is gone now. But now i m getting another exception i.e TypeMappingException during deployment of my client that is an .war file. please tell me the why this exception is thrown and what this expception mean
[/config/webContext.xml]: Initialization of bean failed; nested exception is com.sun.xml.rpc.encoding.TypeMappingException: type mapping does not support the specified encoding: http://schemas.xmlsoap.org/soap/encoding/
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
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:585)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:280)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:88)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
at org.jboss.web.WebModule.startModule(WebModule.java:68)
at org.jboss.web.WebModule.startService(WebModule.java:46)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:428)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy30.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:400)
at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy31.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
vishakha_sawant
Greenhorn
Joined: Mar 13, 2006
Posts: 7
posted
0
Hi, I deployed webservice(document\literal wrapped style) and tested that with eclipse web service explorer, the service is working fine. Then i tried to access that webservice using "static stub client" and "dynamic proxy client". static stub client is working fine but dynamic proxy client is giving some error. i checked there corrsponding soap-request
why there is difference in the soap-request of same webservices? plz tell me what i should do to solve this problem and i have some problem with wscompile also i want to generate document\literal style wsdl file using wscompile without wrapping and for that i tried to use -f:unwrap option and also combination of -f ocumentliteral and -f:unwrap but i didnt get wsdl with plain document\literal style.
vishakha_sawant
Greenhorn
Joined: Mar 13, 2006
Posts: 7
posted
0
Hi all,
Finally after doing lot of R&D I got solution for my problem. Thanks to google. Instead of passing plain SEI, I passed wrapped SEI with Wrapped response and request. And at server side I included all the class file generated by wscompile tool
Regards, Vishakha
vishakha_sawant
Greenhorn
Joined: Mar 13, 2006
Posts: 7
posted
0
Hi,
still I am not able to generate 'document\literal' wsdl file with wscompile tool. I tried google search but it didnt work. I am doing it on command prompt and not using ant task. does it make any difference?
Regards, Vishakha
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: error while usingJaxRpc.. of spring and document/literal wsdl style