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

6236Problem with parsin SOAP attachment

Expand Messages
  • Supra, Morne
    Sep 30, 2008
    • 0 Attachment

      Hi all

       

      I am calling a Jasperserver SOAP server to get the results of a report. The call is successful, but I can not view the results. It always end with:

      Can't call method "parts" without a package or object reference

       

      I used the online example of how to retrieve attachments, but adapted it to my requirements:

      #!c:\perl\bin\perl -w

       

      use SOAP::Lite +"trace" => "debug";

      use SOAP::MIME;

      BEGIN {open(STDERR, '>c:\soap\client\jasperclient.log');}

       

      $inputxml = '

      <request operationName="runReport"><argument name="RUN_OUTPUT_FORMAT">HTML</argument><argument name="PAGE">0</argument><resourceDescriptor name="" wsType="reportUnit" uriString="/reports/IDM/UserReview" isNew

      ="false"><label></label><parameter name="Date"><![CDATA[2008-05-31]]></parameter><parameter name="BranchID"><![CDATA[211321]]></parameter></resourceDescriptor></request>';

       

      sub SOAP::Transport::HTTP::Client::get_basic_credentials {

          return 'jasperadmin' => 'password';

        }

       

      $soap = SOAP::Lite->readable(1);

      $service = $soap->service('http://jasperadmin:password@10.33.13.185:8080/jasperserver/services/repository?wsdl');

      my $som = $service->runReport($inputxml);

       

       

      foreach my $part (${$som->parts}) {

        print $part->stringify;

      }

       

      I receive 3 Parts in the return and I attach only snippets as the message is quite long:

      SOAP::Transport::HTTP::Client::send_receive: POST http://10.33.13.185:8080/jasperserver/services/repository HTTP/1.1

      Accept: text/xml

      Accept: multipart/*

      Proxy-Authorization: Basic b3JhbmdlXGYyOTQ2OTU1Om1lbnRhdEAyNg==

      Content-Length: 1158

      Content-Type: text/xml; charset=utf-8

      SOAPAction: ""

       

      <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><namesp1:runReport xmlns:namesp1="http://axis2.ws.jasperserver.jaspersoft.com"><requestXmlString xsi:type="ns:string" xmlns:ns="http://www.w3.org/2001/XMLSchema">

      &lt;request operationName=&quot;runReport&quot;&gt;&lt;argument name=&quot;RUN_OUTPUT_FORMAT&quot;&gt;HTML&lt;/argument&gt;&lt;argument name=&quot;PAGE&quot;&gt;0&lt;/argument&gt;&lt;resourceDescriptor name=&quot;&quot; wsType=&quot;reportUnit&quot; uriString=&quot;/reports/IDM/UserReview&quot; isNew

      =&quot;false&quot;&gt;&lt;label&gt;&lt;/label&gt;&lt;parameter name=&quot;Date&quot;&gt;&lt;![CDATA[2008-05-31]]&gt;&lt;/parameter&gt;&lt;parameter name=&quot;BranchID&quot;&gt;&lt;![CDATA[211321]]&gt;&lt;/parameter&gt;&lt;/resourceDescriptor&gt;&lt;/request&gt;</requestXmlString></namesp1:runReport></SOAP-ENV:Body></SOAP-ENV:Envelope>

      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK

      Connection: close

      Date: Fri, 03 Oct 2008 08:53:34 GMT

      Server: Apache-Coyote/1.1

      Content-Type: multipart/related; type="text/xml"; start="<C8BAD2351CA238F871061100F3810C7E>";         boundary="----=_Part_150_2519124.1223024015421"

      Client-Date: Wed, 01 Oct 2008 06:16:09 GMT

      Client-Peer: 10.33.13.185:8080

      Client-Response-Num: 1

       

       

       

      ------=_Part_150_2519124.1223024015421

      Content-Type: text/xml; charset=UTF-8

      Content-Transfer-Encoding: binary

      Content-Id: <C8BAD2351CA238F871061100F3810C7E>

       

       

      <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><soapenv:Body><ns1:runReportResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://axis2.ws.jasperserver.jaspersoft.com"><runReportReturn xsi:type="ns2:string" xmlns:ns2="http://www.w3.org/2001/XMLSchema">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;

      &lt;operationResult version=&quot;2.0.1&quot;&gt;

                  &lt;returnCode&gt;&lt;![CDATA[0]]&gt;&lt;/returnCode&gt;

      &lt;/operationResult&gt;

      </runReportReturn></ns1:runReportResponse></soapenv:Body></soapenv:Envelope>

      ------=_Part_150_2519124.1223024015421

      Content-Type: text/html

      Content-Transfer-Encoding: binary

      Content-Id: <report>

       

       

      <html>

      <head>

        <title></title>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

        <style type="text/css">

          a {text-decoration: none}

        </style>

      </head>

      <body text="#000000" link="#000000" alink="#000000" vlink="#000000">

      <table width="100%" cellpadding="0" cellspacing="0" border="0">

      <tr><td width="50%">&nbsp;</td><td align="center">

       

      <a name="JR_PAGE_ANCHOR_0_1"/>

      <table style="width: 1247px" cellpadding="0" cellspacing="0" border="0" bgcolor="white">

      <tr>

        <td><img alt="" src="images/px" style="width: 30px; height: 1px;"/></td>

        <td><img alt="" src="images/px" style="width: 10px; height: 1px;"/></td>

        <td><img alt="" src="images/px" style="width: 63px; height: 1px;"/></td>

        <td><img alt="" src="images/px" style="width: 12px; height: 1px;"/></td>

        <td><im

      </table>

       

      </td><td width="50%">&nbsp;</td></tr>

      </table>

      </body>

      </html>

       

       

      ------=_Part_150_2519124.1223024015421

      Content-Type: image/gif

      Content-Transfer-Encoding: binary

      Content-Id: <img_0_0_3>

       

       

      GIF89aœ W Õ  ••ùÛ™ÑììO¶·±±²ð¹JöËmÃÄÄæz3””•ö®9¥m-ÐÐppp,¨¨xÇǤÚÚûüüç‹7£_ååådL'àòòQRSê•8k‹lÑ9ñññ¸ââïøøŒvIüëÇ
      ››øŸ:1“†Ÿžüóഁ;&#­†Y)……ÓÒÑš›üŠ5ܽ‚ݧAøúùdÀÀúw*öõõüÁEi_J
      ’‘Ë~9‚DDC?6)ëë룣¢ÝÝÝabcç‚6ÿÿÿ!ù


           ,    œ W  ÿÀŸpH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼^ý*ùÿ~{ƒX%  [1]‰Š‹‡%„Oˆ[1]”“[1]-—•‰ŽžFˆ”‹[1]’‹•–Ÿ/“£–Š‡ˆ³¥¢£ /¬„%·¤-;­4ÅÆ7-–”[1]«»w Î3”­9' ÝÞß'98Í
      ÑÒsÔÎ.­8Üßòó '”3æéêo%æùrÐ8ï„
      Qfœã×o
      …36X Hñ[Ž‹(6(< ¨¡
      lÈ­d½“ñ蝰`b m@ˆTy²b·”ór˜`s
      ÿ‰6kVÄ)žgx
      [1]

      
      ˆ           ,x¢êÒ‚(.Æ;±


      )‑8œnÈ°`F>

      ‑ø 

      e™ZÈ¥Qð¦
      …LdÅ ¢‰„"‑,¸Ã‹:xPâ!pâÅ

      'ž¬˜
      ",p¡W[I”–MjA
      ƒÖ”Ds h©yŠÅŒ< ¢vÚ´C<¸Ð †îI<ðMâ޶““ A`ÀX êíÃ5Si^gˆ—Œ   


      °¢¼yóv7­€
      ð#ÂLJ0¾þ¼ù+Ú¿Ã
      uy' €CP ªôAJ@@‑~äÙ—_qëÕ@ûß

      ÅW‑~èMÿBzƹÀRUö­8(

      Îi7!€„Lˆab


      Ô؁
      ¼ à

      RhD|íÑ'ã


      5[1]&Þ‡>Šø
      6LYk›%O
      ­0
      ]*Þ
      NKL`


      ¸_Œ­6ÐÑ:ÊØc…? ™a„+<@Ä$@
      pÀ‚lÐÙEI            €U2ÃD­lUÝX`Ã|~—ÄdÁ™F¤É!^:„›ôñ¸[1]ÆÈ#›jHÐ[1]
      [1]h=åLBÓŪè‰á `C
      ºŒ9á‑
      +¬°?¤É#mœRبæ·Û5Â`çno쐝JÚ“¬V‑

      €          fy{b79€


      æ= ÿîºë6'‚°#’ž2
      §m$äWÞ
      ÀqCSO¡ÐÔH7¥%
      ¤¥OYLÔ

       0ÁtL90

      ôZD|
      ê«ïx$ô»ã?ˆ—,pön˜­{åànž,ì)ÂÌ
      ˜€“UÞX°€9›•5ÝD
      (´€

      Ì<sÌ,€w


      ¥2:Ø2            ΍
      Á‑˜ŒdLyœš¸ÕÖrfºÑ>L`v]úGQ

      %7
      , ‚
      ™ñ‰v—ø°C¿¾âG[1]»€GmçÔT[Ýžl†ºïd‚Á°¦
      ŒÀ‚ÙfK¹u´Öö[1]ÇM÷ÝwS΂

      #Àpn¾ù5pÁ꬯î


      Æ@øîÿµÖº\„
      Ò~H€ÆjôfCÙycÄ€      
      Te[1]òžE¬Ù“@Ë)è”çmÂ

      xöm©±Ï^ø‚âž®Lë„@6ñ2¼Î­Iä¼fÑÛ

      :Þyûàƒ+ðm


      Ó­Š ðŠÐ½"Ô
      |­z“ŒHE
      ô.=ç[ƒH0[1]ýïlN
      ÚB–Ìd€&pÄP° ´¹à~ÕóÁèF@-íy

                  4 Õ¨¸ôtà†7„Aø 6`ˆþª×¥¢m0Eã“@V[1] Ú/t”³`[1]øgºÓq*l0”ÚÒ
      §@¯g<œZªÒ Œ             °`õ&`D

      -%(x"ÚÖhÁÿNŒ“ªÓ

      RðB4A ãñÞœÄ


      F!±ç‡$
      ¨†          ®@
      BT#5ØØ %N*âó§¿4òï=üß
      jS
      &AG¾       ç
      ƒQ¾)9ÊùƸ‘À
      1H£$Ͷ§

      :*%DÛdÞ8™€P€G«l c""$üe0<Â3#°Ä†07ÂÔÐ5[1]äÒ‚C¤œ«[1]ÌM‚ÓhŒ            êÔB¯Œ!BgÌ%Ï©?lðMæ9ÑXÌ;bϝe€y4àM~¢œ`ļÁ z¢“ŸvA~xÐ2
       ?!è¦<ù™Æ4Ú3%

      •"G‹i[1]‰¶'š“¢Ñ ´)„G[1]ÿ«3 Jeú¬Á


      3}C}V0[1]\nӣ

      ý


      ~

      Ñ| uxdÂä•ÿI 1À©


      $Ѐ÷x [1]6*Ö:²˜L• 0 ¨Æ$d¾aGÒ@1‰To `¤kµPw'–Ž‰ ˆ@
      :  
      ²QŒº  x5[1]ÈkãöêWÀæµ°?x ˆDØÄÈ
      [1]³ô_ÒÔ Ü`­]h7P°ÑØQ
      mY

      á@` ~}@
      d
      V‑Ö.[1]
      ø›aÕØÉƳ¾•¬édK€ÉF€9ÀÕMNÝð‚x,£0ÁZc Ú&š6—&@-zÀÆÚÖÂÀ8e%À:VÄ*æµ
      ÿWX
      KX¯â€m
      Ö‹§Úâ6¬0Ðë|! Y95F

      ºÍ4@j5@-RÕ_&¸TÁºÀS]w×I˜j‑€V†W÷[1]œVXX®0í áw¸Â"¾CzÁxžÛÔ 0NA

      jà ò@ ™}CcÙ 

      å†CbÏ_»›c64ub™}ÉßPy
      .åëd½ˆ!Éò÷ÂOÖC‡3\$‹ÈY
      ³˜ÇLæ2›ùÌhN³š×ÌfB¼ W°³+^ çbÕ9

      2ИÛÀ˜ë*P€
      äð‚ôå:؁˜¬ ‑Ü ;à€x


      á'tý
      Bº 5ÿ6=
      T@B* 1Q¿ Ր´
      * é!ðà
      ¨@GVj
      à`˜u­S½ëb‘ºX°ž5p€iK×'(@xÐ
      H  ÕF€


      Ü@/øvK
      à @[1](÷

      8àh@º#0×
      ºR€T@
      ¸®… mwwEŽtø²ƒäABP€‹ê½ír«@[1]~´[1] Î`àv(  0à
      p¥ •î

      €ƒz


       Þ98tN €à@åV@´w  wç á=èAN€ƒ

      üºãÖr€.$ ó–Ÿ [1]è[1]r0ï‑¨à


      >Á

      :’ƒ¼ Ò.ßApÀÿfÿà9[1]’Žð9È Ù6×:ÆUPrà›é¿î
      œÍƒ{@8@À£0p„ãû78´o@n
      ÀºÚ?ðõ

      >^í‑

      zt­ó­ ÈŸ /·VA
      x ƒ‑`\"Guî !
      |à]Á;ÀYîrpúÑt Ž
      ` +
      èÁ@~û‑àúé

      ( á!\®p|愇tå_À‹÷j‑GÀ­wh


      :ö~=(Ý  ¸œ
      @÷ú

       € š


      {Ç{Ës€€‑”«öÇ8¿à ð¼âøQ~pkZcŒí;Ðr
      —n,ç y7
      °qÁ†
      nW.O·

      pt×&ƒvpormæR§
      å÷[1]  Ãö
      :`p–Æ
      ”|gph"Èm?0qB [1]å¶
      ½Â
      ÀÖgGm7 }Ð~n&D mb"ƒæö
      €oó&w×f_@r,¸{Ì&zLÈ<€ !(
      x…S¸…\Ø…^ø…`†b8†dX†fx†hÈA  ;

      ------=_Part_150_2519124.1223024015421--

      Can't call method "parts" without a package or object reference at jasperclient.pl line 22.

       

      Any help would be appreciated.

       

      Regards

       

      Morne Supra

      BIS - Development
      Randburg
      Tel (011) 998-2323, Cell 0832899946
      e-mail msupra@...

      First National Bank - a division of FirstRand Bank Limited.
      An Authorised Financial Services Provider.

       

      To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser:
      https://www.fnb.co.za/disclaimer.html

      If you are unable to access the Disclaimer, send a blank e-mail to firstrandbankdisclaimer@... and we will send you a copy of the Disclaimer.