Loading ...
Sorry, an error occurred while loading the content.

RE: [soaplite] METHOD TO ASSIGN VALUES TO ARRAYS Deserializing parameter 'mkt_sector_code' : could not find deserializer for type ArrayOffString

Expand Messages
  • Abdullah Uygun
    Byrne, Thanks for quick response. However I am quite new at SOAP use. I try following however it does not help. my $name_fragment; my $mkt_sector_code =
    Message 1 of 1 , Oct 30, 2003
    • 0 Attachment

      Byrne,

      Thanks for quick response.

      However I am quite new at SOAP use. I try following however it does not help.

          my $name_fragment;
          my $mkt_sector_code = SOAP::Data->name('mkt_sector_code' => '');
          my $country_code = SOAP::Data->name('country_code' => '215');
          my $resp1 =  $svc-> getResearchList($name_fragment,$mkt_sector_code,$country_code);


      This time I receive below error

      any idea, WHAT AM I DOING WRONG?
      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="
      http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
        <soapenv:Fault>
         <faultcode>Server.userException</faultcode>
         <faultstring>No such operation &apos;getResearchList&apos;</faultstring>
         <detail/>
        </soapenv:Fault>
       </soapenv:Body>
      </soapenv:Envelope


      Abdullah

       

      -----Original Message-----
      From: Byrne Reese [mailto:byrne@...]
      Sent: Thursday, October 30, 2003 4:55 PM
      To: Abdullah Uygun
      Subject: Re: [soaplite] METHOD TO ASSIGN VALUES TO ARRAYS Deserializing parameter &apos;mkt_sector_code&apos; : could not find deserializer for type ArrayOffString


      Support for complex types such as ARRAYs in SOAP::Lite is currently very
      very weak. There is an active project to fix this however which may
      finally produce an solution to this nagging problem.

      The only way to create an array other toolkits can consume is to construct
      it manually using SOAP::Data objects.

      Here is a HOWTO that shows you how to next elements in SOAP::Lite:

      http://www.majordojo.com/archives/000008.html

      The trick is to make your XML look like this:

          <products SOAP-ENC:arrayType="xsd1:Product[10]"
                    xsi:type="SOAP-ENC:Array">
            <item xsi:type="xsd1:Product">
              <itemNumber xsi:type="xsd:string">1009</itemNumber>
              <unitPrice xsi:type="xsd:decimal">7.99</unitPrice>
              <itemName xsi:type="xsd:string">Ethernet Cable</itemName>
              <unitOfMeasure xsi:type="xsd:string">EACH</unitOfMeasure>
            </item>
            ...
          </products>

      Which is not hard, just nest the elements properly.

      > Hi all,
      >
      >
      href="http://ws.services.fitchratings.com/ws/services/ResearchProvider?wsdl" target=_blank>http://ws.services.fitchratings.com/ws/services/ResearchProvider?wsdl
      >
      >
      >
      I want to call getResearchList only with country_code='TUR'.
      >
      > my
      $svc = SOAP::Lite->
      > service('
      href="http://ws.services.fitchratings.com/ws/services/ResearchProvider?ws" target=_blank>http://ws.services.fitchratings.com/ws/services/ResearchProvider?ws
      >
      dl');
      > my $resp1 =  $svc->
      getResearchList('','','TUR','','','','');
      >
      >
      > However I get
      error
      >    <faultstring>org.xml.sax.SAXException:
      Deserializing parameter
      > &apos;mkt_sector_code&apos;:  could
      not find deserializer for type
      >
      ArrayOffString</faultstring>
      >
      > WHAT IS THE METHOD TO ASSIGN
      VALUES TO ARRAYS OF STRINGS?
      >
      >
      > Following is part of
      wsdl.
      > - <wsdl:message
      name="getResearchListRequest">
      >   <wsdl:part
      name="name_fragment" type="xsd:string" />
      >   <wsdl:part
      name="mkt_sector_code" type="tns2:ArrayOffString" />
      >  
      <wsdl:part name="country_code" type="tns2:ArrayOffint" />
      >   <wsdl:part name="report_type_code"
      type="tns2:ArrayOffString" />
      >   <wsdl:part
      name="entity_id" type="xsd:int" />
      >   <wsdl:part
      name="start_date" type="xsd:dateTime" />
      >   <wsdl:part
      name="end_date" type="xsd:dateTime" />
      >  
      </wsdl:message>
      > Abdullah
      >
      >


      ^byrne :/

    Your message has been successfully submitted and would be delivered to recipients shortly.