Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 46572 invoked by uid 500); 10 Aug 2002 18:19:07 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 46563 invoked from network); 10 Aug 2002 18:19:07 -0000 Message-ID: <3D5558C2.2CB79425@cs.indiana.edu> Date: Sat, 10 Aug 2002 14:17:38 -0400 From: Aleksander Slominski X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: "Raman N. Chikkamagalur" CC: "axis-dev@xml.apache.org" Subject: [WSIF] Re: Requesting some help References: Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N "Raman N. Chikkamagalur" wrote: > Hi Aleksander, > hi Raman, > Firstly, I apologize for sending you this mail directly. I tried for > long to post this message on the WSIF discussion list but there seemed to be some > problem with the server. Since you seemed to have knowledge about using > Complex-Types in DynamicInvoker.java I thought of sending this mail to > you. I would be glad if you could help me by answering my question. did you try to send your question to axis-dev - it is now official list for WSIF, see for example: http://marc.theaimsgroup.com/?l=axis-dev&w=2&r=1&s=%5BWSIF%5D&q=b > Question: > ========= > > I tried to modify the DynamicInvoker.java program so that it can handle > complex types. Since we cannot pass instances of complex types by > command line arguments I instantiated the objects inside the program. When > I ran my program I got a > deserialization exception (Pasted at the end of this posting). > > How do we register serializers and which WSIF apis should we use. I saw > the the "AddressBook" example. But this follows a different programming > model and it is not as flexible as DynamicInvoker.java (for eg. It is > difficult to handle multiple outputs using AddressBook example) > Hence, I am more interested in the DynamicInvoke.java programming model. > > I read that JDOM could be used with WSIF to get a programming model > similar to DynamicInvoke. I would be glad if you > please let me know of any sample code that uses WSIF with JDOM. i think what you need is generic and dynamic representation of any xsd type you may use without need to map to java class, otherwise you need ot have on CLASSPATH not only class but also register serializer and deserialzier (at least for Apache SOAP). there are more dynamic representation of type instance either as XML stream directly, document object models (DOM or JDOM) or some closer to actual type systems (such as JROM). please get the latest WSIF from apache, experiment with it and then post results to the mailing lists and i am sure people will be willing ot help you but you need ot be more specific: would you like for example such dynamic handling of complex types work with every WSIF provider (apache soap, axis, java-local, jms etc.) or to make it only working with one WSIF providers. how exactly input to DynamicInvoker should be represented (as XML string, JDOM etc.)? thanks, alek > =============================================================================== > org.xml.sax.SAXException: Deserializing parameter 'sayHelloToReturn': > could not > find deserializer for type {urn:Customer}Customer > at > org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:231) > at > org.apache.axis.encoding.DeserializationContextImpl.startElement(Dese > rializationContextImpl.java:857) > at > org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja > va:199) > at > org.apache.axis.message.MessageElement.publishToHandler(MessageElemen > t.java:644) > at > org.apache.axis.message.RPCElement.deserialize(RPCElement.java:235) > at > org.apache.axis.message.RPCElement.getParams(RPCElement.java:259) > at org.apache.axis.client.Call.invoke(Call.java:1806) > at org.apache.axis.client.Call.invoke(Call.java:1711) > at > org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.in > vokeRequestResponseOperation(Unknown Source) > at > org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.ex > ecuteRequestResponseOperation(Unknown Source) > at clients.ComplexTypeDI.invokeMethod(ComplexTypeDI.java:211) > at clients.ComplexTypeDI.main(ComplexTypeDI.java:46) > [ERROR] Call - -Exception: parameter 's > ayHelloToReturn': could not find deserializer for type > {urn:Customer}Customer> > Result: > ===============================================================================