Re: Help - No serializer found for class java.util.LinkedList$ListItr

2007-04-29 Thread Igor Dayen
I would suggest take a look at WSDL first and check for namespace and qname. 
Copy thereafter ns / qname into typemapping element of WSDD for Axis 1.x, see 
below.

   typeMapping xmlns:ns=some-name-space
 qname=ns:Array_Of_any
 type=java:java.util.LinkedList
 
serializer=org.apache.axis.encoding.ser.ArraySerializerFactory
 
deserializer=org.apache.axis.encoding.ser.ArrayDeserializerFactory
 encodingStyle=
/

You may also try to employ VectorSerializerFactory / VectorDeserializerFactory

Regards.


  - Original Message - 
  From: Prasad Viswatmula 
  To: axis-user@ws.apache.org 
  Sent: Saturday, April 28, 2007 11:45 PM
  Subject: Help - No serializer found for class java.util.LinkedList$ListItr


  Hi,

  I am getting the following error while running my axis web service client.  I 
am calling the service using static proxy approach.

  Thanks,
  Prasad  

  - Exception:
  java.io.IOException: No serializer found for class 
java.util.LinkedList$ListItr in registry [EMAIL PROTECTED] 
   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:734)
   at 
org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
   at 
org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504)
   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.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554)
 
   at org.apache.axis.Message.getContentType(Message.java:486)
   at 
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) 
   at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke (Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)

Re: Axis2 and polymorphism

2007-04-18 Thread Igor Dayen
Is Quadrilateral defined as abstract class? 
If so  - I expect it will be translated into abstract type in WSDL, with 
subsequent permitting polymorphic types in method signatures.
  - Original Message - 
  From: Meghna Rao 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, April 18, 2007 3:32 PM
  Subject: Axis2 and polymorphism


  Hello,

  Does Axis2 support object polymorphism?

  I've seen several JIRA issues that touch upon this one way or the other 
whether it is POJO approach or WSDL first approach.

  I have been trying to send objects across the wire using web services and 
here is their structure.

   Quadrilateral
   /  \
 /  \
   SquareRectangle

  My service's signature looks like this:
  public Quadrilateral retrieveQuadrilateral() {
// return an instance of Square or Rectangle.
  }

  What I hoped to see was a properly deserialized instance of Square or 
Rectangle at the client side which is not happening.

  I've inspected the SOAP response and there is no indicator in the xml for the 
deserializer to construct an object of the right instance.

  Is this even supported by Axis?

  Thanks,
  Sathija.




--
  Ahhh...imagining that irresistible new car smell?
  Check out new cars at Yahoo! Autos. 

DEPLOYMENT QUESTIONS

2007-04-15 Thread Igor Dayen
DEPLOYMENT QUESTIONS
===

QUESTIONS 
1. Can one  mix archived and exploded format within axis2  repository?
2. Can one have multiple exploded services within axis2 repository?

Below is a sample application tree I would be like to deploy.

Thank you.

webapps
  
 web-app
 classes
 lib
 web.xml (specifies axis2.xml.path / axis2.repository.path)
 
 axis2.xml.path=axis2-conf
 axis2-conf
  axis2.xml

 axis2.repository.path=axis2-repo
 axis2-repo
  lib
  modules
   lib
   modules.list
   ...mar

  services
   lib

   archived format
   services.list
   .aar

   exploded format

service name
 META-INF
  services.xml
 service classes

service name
 META-INF
  services.xml
 service classes