Scott: Thanks for your answer.
According to your comments I say: 2) I use "Constants.NS_URI_LITERAL_XML" because, as you said, I use Element parameters between these Services. So I will eliminate the BeanSerializer (I was using it and it worked well). 3) Could you please tell me how I can put the classes in the class loader of the server ? I will explain you this interaction: 1) A client sends some info (over Apache SOAP) to my Service. (OK) 2) My Service receives this call and saves the data internally. (OK) 3) My Service builds a new DOM Element and sends it to other services. (ERROR !) I can't see the ERROR of this third step because the Client (step 1) uses a servlet to invoke my Service and it internally invokes the other services. I know that my code is not working well because I comment that line of the new Call ("Call call = new Call();") and it works (without calling the services, of course). How can I see that error ? Thanks Maxi On Fri, 30 Jan 2004 10:04:59 -0500, "Scott Nichol" <[EMAIL PROTECTED]> said: > Max: I am sending this directly to you as well as the list because my > e-mails to the list are not showing up. > > I have a number of comments. > > 1. You do not need to register anything to [de-]serialize a Vector. In > fact, the BeanSerializer may do things you do not want it to do. > > 2. Constants.NS_URI_LITERAL_XML is *not* the same as WSDL > document/literal. It is a custom encoding supported by Apache SOAP. It > will not allow you to use BeanSerializer, etc. It only works with > parameters that are DOM Element. > > 3. What error do you get when you try to instantiate a Call? You should > be able to do this if you have the classes available in a class loader > available to the server. > > Scott Nichol > > Do not send e-mail directly to this e-mail address, > because it is filtered to accept only mail from > specific mail lists. > ----- Original Message ----- > From: "Maximiliano Barone" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, January 30, 2004 9:51 AM > Subject: Server-Side as a Client of other Web Service > > > > Hi ! I am developing a Service that receives a call from a Client over > > Apache SOAP like this: > > > > CLIENT: > > > > // Mapping registry > > SOAPMappingRegistry smr = new > > SOAPMappingRegistry(); > > BeanSerializer beanSer = new BeanSerializer (); > > > > smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("urn:UpdateUsrWS", > > "UpdateUsr"), Vector.class, beanSer, beanSer); > > > > // Build the call. > > Call call = new Call(); > > call.setTargetObjectURI("urn:UpdateUsrWS"); > > call.setMethodName("main"); > > call.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML); > > > > > > The Server Side (MyService: UpdateUsrWS) receives some information from > > the Client and invokes other Services over Apache SOAP too, so my Service > > (Server-Side) acts as a client too. > > The problem is that I am trying to create a new Call from my class and it > > doesn't work. > > > > > > SERVER (As a Client of other Web Services) > > > > Call call = new Call(); > > > > Do you know if the SOAP Server supports this ? > > Any suggestion ? > > > > Thank you. > > > > Max > > > > > > > > -- > > http://www.fastmail.fm - Sent 0.000002 seconds ago > > -- http://www.fastmail.fm - Choose from over 50 domains or use your own