use complex type as attribute in services - axis

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

use complex type as attribute in services - axis

sqlien
Hi,

In the portal Liferay, I call the services I have write in ofbiz and it works well. But when I set In my service an attribute with type="myBean" that is complex Type, i get the above error,

does anyone know how to use a complex type in ofbiz services ?

NB : i ahve already learn this :
http://www.nabble.com/Using-SOAP-complex-types-with-OfBiz-tp9180865p9180865.html 
but the problem is still
Thanks,


AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.io.IOException: No serializer found for class org.ofbiz.fdo.myBean in registry org.apache.axis.encoding.TypeMappingDelegate@e2d0ab
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:java.io.IOException: No serializer found for class org.ofbiz.fdo.myBean in registry org.apache.axis.encoding.TypeMappingDelegate@e2d0ab
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1507)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801)
        at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208)
        at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
        at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
        at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
        at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229)
        at org.apache.axis.Message.getContentLength(Message.java:510)
        at org.ofbiz.webapp.event.SOAPEventHandler.invoke(SOAPEventHandler.java:267)
        at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:406)
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:237)
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:178)
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:74)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:245)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        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.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)