Axis Error Could Not Find Deserializer For Type
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up could not find deserializer for type : Error up vote 3 down vote favorite I have to make a SOAP call from my java program ,for which I used apache axis. My program is as follows : import org.apache.axis.client.Call; import org.apache.axis.client.Service; import javax.xml.rpc.ParameterMode; import javax.xml.namespace.QName; public class Project { public static void main(String [] args) { try { String endpoint ="http://RequestUrl"; Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName(new QName(endpoint, "getFrsFileData")); String value = (String) call.invoke(new Object[] { "24BB7","frs1001" } ); System.out.println(value); } catch (Exception e) { System.err.println(e.toString()); } } } This on execution gives an error as follows Exception: org.xml.sax.SAXException: Deserializing parameter 'getFrsFileDataReturn': could not find deserializer for type {http://Url}FrsFileSoapDO at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:277) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.ax
map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor. Announcement Announcement Module Collapse No announcement yet. Axis deserializer cannot be found Page Title Module Move Remove Collapse X Conversation Detail Module Collapse Posts Latest Activity Search Forums Page of 2 Filter Time All Time Today Last Week Last Month Show All Discussions only Photos only http://stackoverflow.com/questions/9884872/could-not-find-deserializer-for-type-error Videos only Links only Polls only Filtered by: Clear All new posts alecswan Junior Member Join Date: Apr 2005 Posts: 22 #1 Axis deserializer cannot be found Apr 14th, 2005, 09:35 PM Greetings. I've just spent several hours trying to solve the problem with not being able to deserialize http://forum.spring.io/forum/other-spring-related/remoting/4943-axis-deserializer-cannot-be-found an XML response on the client side. I successfully deployed an Axis service, and am able to invoke findSchoolByName method, which returns a valid XML message (I intercepted and verified it using TCPMonitor). However, the client throws the following error: org.xml.sax.SAXException: Deserializing parameter 'findSchoolByNameReturn': could not find deserializer for type {urn:dss.sww.com}School I followed the JPetStore example from Spring 1.2RC1. My client bean is declared as follows:
parameter 'arg1': could not find deserializer for type {urn:BeanService}Order"Agile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Resolved Resolution: Incomplete Affects Version/s: 1.1 Fix https://issues.apache.org/jira/browse/AXIS-1049 Version/s: None Component/s: Serialization/Deserialization Labels: None Environment: Operating System: Windows http://axis.8716.n7.nabble.com/Error-could-not-find-deserializer-while-running-a-client-td3097.html NT/2K Platform: Other Bugzilla Id: https://issues.apache.org/bugzilla/show_bug.cgi?id=22982 Description This Ashok Samrat,i am using the AXIS.But i am getting one problem please help me asap I am running the example5.The beanservice i make the .jws file. And i am invoking to axis error the Client program the following error is giving "Error : org.xml.sax.SAXException: Deserializing parameter 'arg1': could not find deserial izer for type {urn:BeanService} Order" Please provide the steps how can i deploy in the weblogic servre If you don't mind please sir. 1)----The following is the Client.java--------------------- package samples.userguide.example5; axis error could import org.apache.axis.AxisFault; import org.apache.axis.client.Call; import org.apache.axis.client.Service; import org.apache.axis.utils.Options; import javax.xml.namespace.QName; import javax.xml.rpc.ParameterMode; public class Client { public static void main(String [] args) throws Exception { Options options = new Options(args); Order order = new Order(); order.setCustomerName("Glen Daniels"); order.setShippingAddress("275 Grove Street, Newton, MA"); String [] items = new String[] { "mp3jukebox", "1600mahBattery" } ; int [] quantities = new int [] { 1, 4 } ; order.setItemCodes(items); order.setQuantities(quantities); Service service = new Service(); Call call = (Call) service.createCall(); QName qn = new QName( "urn:BeanService", "Order" ); call.registerTypeMapping(Order.class, qn, new org.apache.axis.encoding.ser.BeanSerializerFactory (Order.class, qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory (Order.class, qn)); String result; try { call.setTargetEndpointAddress( new java.net.URL(options.getURL()) ); call.setOperationName( new QName ("OrderProcessor", "processOrder") ); call.addParameter( "arg1", qn, ParameterMode.IN ); call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING ); result = (String) call.invoke( new Object[] { order } ); } catch (AxisFault fault) { result = "Error : " + fault.toString(); } System.out.println(result); } } ---------------------------------------
this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Error : could not find deserializer while running a client Hello, I created a web service and when I try to test it with a test client I am getting the following errr org.xml.sax.SAXException: Deserializing parameter 'inquiryResponse': could not find deserializer for type {urn:DataInquiry2}inquiryResponse here is my WSDL ..IO ran WSDl2Java to create my web service