Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 62367 invoked from network); 2 Jan 2007 10:48:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2007 10:48:30 -0000 Received: (qmail 23517 invoked by uid 500); 2 Jan 2007 10:48:30 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 23222 invoked by uid 500); 2 Jan 2007 10:48:28 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 23211 invoked by uid 99); 2 Jan 2007 10:48:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 02:48:28 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 02:48:18 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H1hBV-0005QW-H7 for axis-user@ws.apache.org; Tue, 02 Jan 2007 02:47:57 -0800 Message-ID: <8122269.post@talk.nabble.com> Date: Tue, 2 Jan 2007 02:47:57 -0800 (PST) From: celia05es To: axis-user@ws.apache.org Subject: Re: Re: Re: No Deserializer found in encoding string! In-Reply-To: <20061229203922.26097.qmail@webmail50.rediffmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ebachler@alcatel-lucent.com References: <8075783.post@talk.nabble.com> <8085525.post@talk.nabble.com> <20061229115728.9885.qmail@webmail70.rediffmail.com> <20061229203922.26097.qmail@webmail50.rediffmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Sorry to answer so late but I hadn't seen your answer.... Well, I have tried what you have suggested but I still get the error!! No Deserializer found to deserialize a 'http://schemas.xmlsoap.org/soap/encoding/:string' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. Here is what I have: public static void init() throws IOException { url = new URL(InicializaCliente.BONOServidorURL); call = new Call(); // Match for String //----------------- SOAPMappingRegistry smr = new SOAPMappingRegistry(); StringDeserializer sd = new StringDeserializer(); smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("http://schemas.xmlsoap.org.sopa/encoding/","string"), String.class,null,sd); call.setSOAPMappingRegistry(smr); beanSer = new BeanSerializer(); smrObjBasico = new SOAPMappingRegistry(); smrObjBasico.mapTypes(Constants.NS_URI_SOAP_ENC, new QName(InicializaCliente.BONOUrn, "ObjResultadoBasico"), ObjResultadoBasico.class, beanSer, beanSer); call.setSOAPMappingRegistry(smrObjBasico); call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC); call.setTargetObjectURI(InicializaCliente.BONOUrn); salidaObjBasico= new ObjResultadoBasico(); } What am I doing wrong? Durga Srinivasu wrote: > > Hai, > > Don't remove your Output bean mapping, u keep that mapping as it is and > add the following mapping for string. > > smr.mapTypes(Constants.NS_URI_SOAP_ENC, new > QName("http://schemas.xmlsoap.org/soap/encoding/", > "string"), String.class, null, sd); > > In my old post, inplace of "String.class" there is null, that is wrong, we > should use "String.class". > > Sorry for the wrong post. > > thanks > Durga Srinivasu > > On Fri, 29 Dec 2006 Durga Srinivasu wrote : >>Hi, >> >>I hope ur are using Apache SOAP Kit to invoke ur web service, which is deployed on AXIS 1.4. >> >>I hope the following de-serializer changes to ur AICliente.soapInit() method could solve ur problem. >> >>SOAPMappingRegistry smr = new SOAPMappingRegistry(); >>StringDeserializer sd = new StringDeserializer(); >>smr.mapTypes(Constants.NS_URI_SOAP_ENC, new >>QName("http://schemas.xmlsoap.org/soap/encoding/", >>"string"), null, null, sd); >>call.setSOAPMappingRegistry(smr); >> >>thanks >>Durga Srinivasu >> >> >> >> >> >> >> >>On Fri, 29 Dec 2006 celia05es wrote : >> > >> >Hello again, >> >I have looked and looked again but could not find anything in the >> database >> >that could help me. I am completely stuck. >> >COuld someone give me a hand please? >> > >> > >> > >> > >> >celia05es wrote: >> > > >> > > Hello, >> > > >> > > I am quite new to Axis and I am getting mad trying to find out what >> the >> > > problem is. I have been trying so many things! I am desperate! >> > > Could you suggest a solution? >> > > I don't know what you need to help me so I give you the wsdd and the >> > > cliente side procedure where I call AXIS. I suppose the problem is >> there >> > > but I cannot find it. >> > > >> > > >> > > THank you >> > > ================================== >> > > I am using Axis 1-4 and Tomcat 5.1.9. >> > > >> > > I am getting the following exception: >> > > >> > > No Deserializer found to deserialize a >> > > 'http://schemas.xmlsoap.org/soap/encoding/:string' using >> > > encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. >> > > >> > > My application is very, very simple since I wanted to have AXIS >> working >> > > before starting something else. >> > > >> > > ON SERVER SIDE: >> > > >> > > AI.wsdd: >> > > >> > > - > > > targetNamespace="http://135.88.100.235:8081/services/services/AI" >> > > xmlns:apachesoap="http://xml.apache.org/xml-soap" >> > > xmlns:impl="http://135.88.100.235:8081/services/services/AI" >> > > xmlns:intf="http://135.88.100.235:8081/services/services/AI" >> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" >> > > xmlns:tns1="urn:AI" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" >> > > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" >> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> >> > > - >> > > - >> > > - > > > xmlns="http://www.w3.org/2001/XMLSchema"> >> > > >> > > - >> > > - >> > > >> > > >> > > >> > > >> > > >> > > >> > > - >> > > >> > > >> > > >> > > - >> > > >> > > >> > > - >> > > - >> > > > name="AImodif_p1Request" /> >> > > > name="AImodif_p1Response" >> > > /> >> > > >> > > >> > > - >> > > > > > transport="http://schemas.xmlsoap.org/soap/http" /> >> > > - >> > > >> > > - >> > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" >> > > namespace="http://AI" use="encoded" /> >> > > >> > > - >> > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" >> > > namespace="http://135.88.100.235:8081/services/services/AI" >> use="encoded" >> > > /> >> > > >> > > >> > > >> > > - >> > > - >> > > > > > location="http://135.88.100.235:8081/services/services/AI" /> >> > > >> > > >> > > >> > > >> > > >> > > AIServicio.java >> > > That contains a procedure AIModif_p1 (String p1_old, String >> p1_new). >> > > This procedure returns an Output object that contains the error code >> and >> > > the error message. >> > > >> > > CLIENTE SIDE >> > > AICliente.java >> > > import..... >> > > public class AICliente extends HttpServlet >> > > { >> > > >> > > public AICliente() {} >> > > >> > > private static URL url = null; >> > > private static Call call = null; >> > > private static SOAPMappingRegistry smr = null; >> > > private static BeanSerializer beanSer = null; >> > > private static Output output = null; >> > > >> > > public static void soapInit() throws IOException >> > > { >> > > url = new >> URL("http://135.88.100.235:8081/services/services/AI"); >> > > call = new Call(); >> > > beanSer = new BeanSerializer(); >> > > smr = new SOAPMappingRegistry(); >> > > smr.mapTypes(Constants.NS_URI_SOAP_ENC, >> > > new QName("urn:AI","Output"), >> > > Output.class, beanSer, beanSer); >> > > call.setSOAPMappingRegistry(smr); >> > > call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC); >> > > call.setTargetObjectURI("urn:AI"); >> > > output= new Output(); >> > > } >> > > >> > > public static Output AImodif_p1( String p1_old, String p1_new) >> > > throws IOException >> > > { >> > > System.out.println("Entewring Cliente AImodif_p1...."); >> > > System.out.println("p1_old="+p1_old+" p1_new="+p1_new); >> > > >> > > soapInit(); >> > > >> > > call.setMethodName("AImodif_p1"); >> > > >> > > Vector params = new Vector(); >> > > try >> > > { >> > > params.addElement(new >> Parameter("p1_old",String.class,p1_old,null)); >> > > params.addElement(new >> Parameter("p1_new",String.class,p1_new,null)); >> > > call.setParams(params); >> > > } >> > > catch (Exception e) >> > > { >> > > output.setPError(-1); >> > > output.setSError(e.getMessage()); >> > > System.out.println("ERROR: Generated fault: " + >> e.getMessage()); >> > > return output; >> > > }; >> > > >> > > System.out.println("AImodif_p1.....Server answering ..."); >> > > Response resp=null; try >> > > { >> > > System.out.println("url="+url); >> > > resp = call.invoke(url, ""); >> > > } >> > > catch (SOAPException e) >> > > { >> > > System.out.println("SOAPException in client AImodif_p1..."); >> > > output.setPError(-1); >> > > output.setSError(e.getMessage()); >> > > System.out.println("Caught SOAPException (" + e.getFaultCode() >> + "): >> > > [" + >> > > e.getMessage()+"]"); >> > > return output; >> > > } if (!resp.generatedFault()) >> > > { >> > > Parameter ret = resp.getReturnValue(); >> > > output = (Output)ret.getValue(); >> > > } >> > > else >> > > { >> > > Fault fault = resp.getFault(); >> > > output.setPError(-1); >> > > output.setSError(resp.getFault().getFaultString()); >> > > System.out.println("ERROR: Generated fault: " + fault); >> > > } >> > > return output; >> > > } >> > > >> > > public void doGet(HttpServletRequest request, HttpServletResponse >> > > response) >> > > throws IOException, ServletException >> > > { >> > > response.setContentType("text/html"); >> > > PrintWriter out = response.getWriter(); >> > > PaintClient ps= new PaintClient(); >> > > String p1_old="/"; >> > > String p1_new = request.getParameter("p1_new"); >> > > >> > > out.println("
PARAMETER 1
"); >> > > out.println(ps.PaintClientHtml("Modif p1", >> AImodif_p1(p1_old,p1_new))); >> > > } >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > >> >-- >> >View this message in context: >> http://www.nabble.com/No-Deserializer-found-in-encoding-string%21-tf2890711.html#a8085525 >> >Sent from the Axis - User mailing list archive at Nabble.com. >> > >> > >> >--------------------------------------------------------------------- >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> >For additional commands, e-mail: axis-user-help@ws.apache.org >> > > > -- View this message in context: http://www.nabble.com/No-Deserializer-found-in-encoding-string%21-tf2890711.html#a8122269 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org