>>>>> "Mala" == Mala Rathinasamy <[EMAIL PROTECTED]> writes:

    Mala> Hai,
    Mala>           I've a JavaBean which has got 3 properties
    Mala> 1.int 2.String 3.Vector

What is the signature for the getVector() method? Does it return a
Vector or array?

I've been able to use the BeanSerializer for JavaBeans that have a
Vector internally but have for accessors:
        Foo[] getFoos();
        setFoos(Foo[] fa);

I don't think it can handle getters and setters that use Vectors.

Hope this helps.
- Bob

    Mala> this needs to be passed from the Server to the client.

    Mala> In the Client code,the mappings are


    Mala>     SOAPMappingRegistry smr = new SOAPMappingRegistry();
    Mala>       BeanSerializer beanSer = new BeanSerializer();
        

    Mala>       // Map the types.
    Mala>       smr.mapTypes(
    Mala>               Constants.NS_URI_SOAP_ENC, new
    Mala>               QName("urn:TestPV-Provisioning",
    Mala>               "ProvisioningResult"),
    Mala>               ProvisioningResult.class, beanSer, beanSer);

    Mala> and in the deployment descriptor,

    Mala> <isd:map
        
    Mala> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
    Mala>                       xmlns:x="urn:TestPV-Provisioning"
    Mala>                       qname="x:ProvisioningResult"             
    Mala>                       javaType="com.test.ProvisioningResult"
    Mala> java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    Mala> xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    Mala> />


    Mala> I get the exception

    Mala> SOAPException fault code: SOAP-ENV:Client message: The
    Mala> 'http://schemas.xmlsoap.org/soap/encoding/:arrayType'
    Mala> attribute must be specified for every array.

    Mala> while running the client.

    Mala> Where do I need to specify the array type attribute?

    Mala> Thanks.



-- 
SynXis Corporation      | [EMAIL PROTECTED]    | Obstacles are those frightful 
1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | things you see when you take your
Denver, CO  80202       | Fax:(303)534-4257 | eyes off your goal.  -Henry Ford



                                    

Reply via email to