how to serialze in soap::lite

Discussion in 'Perl' started by Rushikesh Joshi, Aug 19, 2004.

  1. Problem:
    Whenever i have called your stringArray method with argument of Array
    for different style. It work like below...

    #Pass XML without XML Serialiser & Vector by value
    #Pass XML with XML Serialiser & Vector by value
    #No any difference in both case
    <namesp1:stringArrTest
    xmlns:namesp1="com.logicboxes.foundation.sfnb.user.Test">
    <stringArrParam xmlns:ns="com.logicboxes.foundation.sfnb.user.Test"
    xsi:type="ns:ArrayOf_xsd_string">A</stringArrParam>
    <c-gensym4 xsi:type="xsd:string">B</c-gensym4>
    <c-gensym6 xsi:type="xsd:string">C</c-gensym6>
    </namesp1:stringArrTest>

    Error String
    <faultstring>
    org.xml.sax.SAXException: Deserializing parameter
    &apos;stringArrParam&apos;: could not find deserializer for type
    {com.logicboxes.foundation.sfnb.user.Test}ArrayOf_xsd_string
    </faultstring>
    -------------------------------------------------------------------------------------------------------------


    #Pass XML with XML Serialiser & Vector by Reference
    <namesp1:stringArrTest
    xmlns:namesp1="com.logicboxes.foundation.sfnb.user.Test">
    <stringArrParam xmlns:ns="com.logicboxes.foundation.sfnb.user.Test"
    xsi:type="ns:ArrayOf_xsd_string">
    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;Vector xmlns="http://localhost/Schemas/VectorSchema.xsd"&gt;
    &lt;item&gt;A&lt;/item&gt;
    &lt;item&gt;B&lt;/item&gt;
    &lt;item&gt;C&lt;/item&gt;
    &lt;/Vector&gt;
    </stringArrParam>
    </namesp1:stringArrTest>

    Error String
    <faultcode>soapenv:Server.userException</faultcode>
    <faultstring>
    org.xml.sax.SAXException: Deserializing parameter
    &apos;stringArrParam&apos;: could not find deserializer for type
    {com.logicboxes.foundation.sfnb.user.Test}ArrayOf_xsd_string
    </faultstring>
    -------------------------------------------------------------------------------------------------------------


    #Pass XML without XML Serialiser & Vector by Reference
    <namesp1:stringArrTest
    xmlns:namesp1="com.logicboxes.foundation.sfnb.user.Test">
    <stringArrParam SOAP-ENC:arrayType="xsd:string[3]"
    xmlns:ns="com.logicboxes.foundation.sfnb.user.Test"
    xsi:type="ns:ArrayOf_xsd_string">
    <item xsi:type="xsd:string">A</item>
    <item xsi:type="xsd:string">B</item>
    <item xsi:type="xsd:string">C</item>
    </stringArrParam>
    </namesp1:stringArrTest>

    Error String
    <faultcode>soapenv:Server.userException</faultcode>
    <faultstring>org.xml.sax.SAXException: No deserializer defined for
    array type {http://www.w3.org/1999/XMLSchema}string</faultstring>
    -------------------------------------------------------------------------------------------------------------

    Problem
    Now whenever i have called your IntArray method withour any arguments
    it returns below error.

    <faultcode>soapenv:Server.generalException</faultcode>
    <faultstring>Method &apos;intArrTest&apos; does not match any of the
    valid signatures for message-style service methods
    </faultstring>
    -------------------------------------------------------------------------------------------------------------

    Problem
    Now my question is how can i serialize this inputs actually the same
    XML for PHP/JAVA & .NET works fine.
    Once look at below input that works fine.

    For PHP/JAVA
    <stringArrParam xsi:type="SOAP-ENC:Array"
    SOAP-ENC:arrayType="xsd:string[3]">
    <item xsi:type="xsd:string">A</item>
    <item xsi:type="xsd:string">B</item>
    <item xsi:type="xsd:string">C</item>
    </stringArrParam>

    For .NET
    <stringArrParam href="#id1" />
    <soapenc:Array id="id1" soapenc:arrayType="xsd:string[3]">
    <item xsi:type="xsd:string">A</item>
    <item xsi:type="xsd:string">B</item>
    <item xsi:type="xsd:string">C</item>
    </soapenc:Array>

    Thanks & Regards,
    Rushikesh Joshi
    Mega E-Services Pvt. Ltd.
    AIM:MESRushikesh

    Tel: +91 (22) 22023015/5837
    Fax: +91 (22) 22843963
    Cell: +91-98195-93095
     
    Rushikesh Joshi, Aug 19, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Saqib Ali

    SOAP:Lite Limitations re: https??

    Saqib Ali, Sep 12, 2003, in forum: Perl
    Replies:
    1
    Views:
    3,037
    Serge Dubrouski
    Sep 16, 2003
  2. Blaine Everingham

    SOAP::Lite

    Blaine Everingham, Dec 9, 2003, in forum: Perl
    Replies:
    0
    Views:
    720
    Blaine Everingham
    Dec 9, 2003
  3. Aaron Brady

    SQL, lite lite lite

    Aaron Brady, Dec 29, 2008, in forum: Python
    Replies:
    15
    Views:
    761
    Aaron Brady
    Jan 1, 2009
  4. Rushikesh Joshi

    how to serialze in soap::lite

    Rushikesh Joshi, Aug 19, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    144
    Rushikesh Joshi
    Aug 19, 2004
  5. droesler
    Replies:
    2
    Views:
    512
    droesler
    Aug 31, 2010
Loading...

Share This Page