-
Mar 16th, 2006, 01:19 AM
#1
JaxRpcPortProxyFactoryBean and document\literal wsdl style
Hi,
I am trying to use 'document\literal' wsdl style with JaxRpcPortProxyFactoryBean but i m not able to do that. it gives following error when i tried to access the service but it's working fine with 'rpc\encoded' wsdl style.
please suggest me what to do if i want to use 'doc/lit' with JaxRpcPortProxyFactoryBean.
12:28:00,042 ERROR [RPCInvocation] org.xml.sax.SAXException: Deserializing parameter 'getProduct': could not find deserializer for type {http://www.lvl.com}getProduct
org.xml.sax.SAXException: Deserializing parameter 'getProduct': could not find deserializer for type {http://www.lvl.com}getProduct
at org.jboss.axis.message.RPCHandler.onStartChild(RPC Handler.java:326)
at org.jboss.axis.encoding.DeserializationContextImpl .startElement(DeserializationContextImpl.java:1168 )
at org.jboss.axis.message.SAX2EventRecorder.replay(SA X2EventRecorder.java:244)
at org.jboss.axis.message.SOAPElementAxisImpl.publish ToHandler(SOAPElementAxisImpl.java:1389)
at org.jboss.axis.message.RPCElement.deserialize(RPCE lement.java:262)
at org.jboss.axis.message.RPCElement.getParams(RPCEle ment.java:396)
at org.jboss.axis.providers.java.RPCInvocation.prepar eFromRequestEnvelope(RPCInvocation.java:235)
at org.jboss.axis.providers.java.RPCProvider.processM essage(RPCProvider.java:103)
at org.jboss.axis.providers.java.JavaProvider.invoke( JavaProvider.java:358)
at org.jboss.axis.strategies.InvocationStrategy.visit (InvocationStrategy.java:73)
at org.jboss.axis.SimpleChain.doVisiting(SimpleChain. java:160)
at org.jboss.axis.SimpleChain.invoke(SimpleChain.java :123)
at org.jboss.axis.handlers.soap.SOAPService.invoke(SO APService.java:560)
at org.jboss.webservice.server.ServerEngine.invokeInt ernal(ServerEngine.java:200)
at org.jboss.webservice.server.ServerEngine.invoke(Se rverEngine.java:89)
at org.jboss.axis.transport.http.AxisServlet.doPost(A xisServlet.java:911)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
at org.jboss.axis.transport.http.AxisServletBase.serv ice(AxisServletBase.java:370)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve .invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
12:28:00,058 ERROR [ServerEngine] Server error: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Deserializing parameter 'getProduct': could not find deserializer for type {http://www.lvl.com}getProduct
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Deserializing parameter 'getProduct': could not find deserializer for type {http://www.lvl.com}getProduct
at org.jboss.axis.message.RPCHandler.onStartChild(RPC Handler.java:326)
at org.jboss.axis.encoding.DeserializationContextImpl .startElement(DeserializationContextImpl.java:1168 )
at org.jboss.axis.message.SAX2EventRecorder.replay(SA X2EventRecorder.java:244)
at org.jboss.axis.message.SOAPElementAxisImpl.publish ToHandler(SOAPElementAxisImpl.java:1389)
at org.jboss.axis.message.RPCElement.deserialize(RPCE lement.java:262)
at org.jboss.axis.message.RPCElement.getParams(RPCEle ment.java:396)
at org.jboss.axis.providers.java.RPCInvocation.prepar eFromRequestEnvelope(RPCInvocation.java:235)
at org.jboss.axis.providers.java.RPCProvider.processM essage(RPCProvider.java:103)
at org.jboss.axis.providers.java.JavaProvider.invoke( JavaProvider.java:358)
at org.jboss.axis.strategies.InvocationStrategy.visit (InvocationStrategy.java:73)
at org.jboss.axis.SimpleChain.doVisiting(SimpleChain. java:160)
at org.jboss.axis.SimpleChain.invoke(SimpleChain.java :123)
at org.jboss.axis.handlers.soap.SOAPService.invoke(SO APService.java:560)
at org.jboss.webservice.server.ServerEngine.invokeInt ernal(ServerEngine.java:200)
at org.jboss.webservice.server.ServerEngine.invoke(Se rverEngine.java:89)
at org.jboss.axis.transport.http.AxisServlet.doPost(A xisServlet.java:911)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
at org.jboss.axis.transport.http.AxisServletBase.serv ice(AxisServletBase.java:370)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve .invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
{http://xml.apache.org/axis/}isRuntimeException: true
12:28:00,058 INFO [AxisServlet] org.xml.sax.SAXException: Deserializing parameter 'getProduct': could not find deserializer for type {http://www.lvl.com}getProduct
12:28:00,151 WARN [RequestProcessor] Unhandled Exception thrown: class org.apache.axis.AxisFault
12:28:00,151 WARN [[action]] Servlet.service() for servlet action threw exception
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Deserializing parameter 'getProduct': could not find deserializer for type {http://www.lvl.com}getProduct
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Deserializing parameter 'getProduct': could not find deserializer for type {http://www.lvl.com}getProduct
faultActor:
faultNode:
faultDetail:
Deserializing parameter 'getProduct': could not find deserializer for type {http://www.lvl.com}getProduct
at org.apache.axis.message.SOAPFaultBuilder.createFau lt(SOAPFaultBuilder.java:262)
at org.apache.axis.message.SOAPFaultBuilder.endElemen t(SOAPFaultBuilder.java:169)
at org.apache.axis.encoding.DeserializationContextImp l.endElement(DeserializationContextImpl.java:1092)
-
Mar 17th, 2006, 04:48 AM
#2
please help me to solve this problem or suggest me any online study material
-
Mar 22nd, 2006, 11:21 PM
#3
TypeMappingException
Hi,
I solved the above problem by including clientside class file generated by wscompile but now it's giving me TypeMappingException
please help me to solve this problem
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'productService' defined in ServletContext resource [/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/
type mapping does not support the specified encoding: http://schemas.xmlsoap.org/soap/encoding/
at com.sun.xml.rpc.encoding.TypeMappingRegistryImpl.r egister(TypeMappingRegistryImpl.java:46)
at uk.co.lvl.ecommerce.caf.util.ReflectionJaxPortProx yFactoryBean.postProcessJaxRpcService(Unknown Source)
at org.springframework.remoting.jaxrpc.LocalJaxRpcSer viceFactory.createJaxRpcService(LocalJaxRpcService Factory.java:206)
at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.prepare(JaxRpcPortClientInterceptor. java:310)
at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.afterPropertiesSet(JaxRpcPortClientI nterceptor.java:284)
at org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean.afterPropertiesSet(JaxRpcPortProxyFac toryBean.java:56)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1059)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:269)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:320)
at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:134)
at org.springframework.web.struts.ContextLoaderPlugIn .createWebApplicationContext(ContextLoaderPlugIn.j ava:353)
at org.springframework.web.struts.ContextLoaderPlugIn .initWebApplicationContext(ContextLoaderPlugIn.jav a:296)
at org.springframework.web.struts.ContextLoaderPlugIn .init(ContextLoaderPlugIn.java:225)
at org.apache.struts.action.ActionServlet.initModuleP lugIns(ActionServlet.java:869)
-
Apr 3rd, 2006, 11:57 PM
#4
Does spring support static stub client?
Hi,
Does spring support static stub client? And I think it supports dynamic proxy and DII. Does any one know how to create dynamic proxy client for document\literal wrap style. Because I am facing same problem with Dynamic proxy client (without using spring JaxRpcPortProxyFactoryBean) and jaxRpcPortProxyFactoryBean. if anyone knows about this please tell me
Regards,
Vishakha
-
Apr 5th, 2006, 07:13 AM
#5
problem got solved
Hi all,
I got solution for my problem.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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules