Jump to content
We've recently updated our Privacy Statement, available here ×

rietbean

Members
  • Posts

    1
  • Joined

  • Last visited

rietbean's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hello, Maybe somebody out there can help me. I am using perl SOAP::Lite to send xml. I can successfully run the list command, but I am having difficulty with the runReport. My code is as follows: 1 #!/usr/bin/perl -w 2 3 4 #use strict; 5 use SOAP::Lite; 6 #use SOAP::MIME; 7 #use MIME::Entitity; 8 9 10 11 12 $op_xml = "<request operationName="runReport" locale="en" >"; 13 $op_xml .= "<argument name="RUN_OUTPUT_FORMAT">PDF</argument>"; 14 #$op_xml .="<argument name="USE_DIME_ATTACHMENTS"><![CDATA[1]]></argument>"; 15 $op_xml .= "<resourceDescriptor name="" wsType="reportUnit" uriString="/Reports/Affiliate/MonthlyReports/AffiliateMonthlyReport" isNew= "false">"; 16 $op_xml .= "<label>null</label>"; 17 $op_xml .= "<parameter name="Affiliate" >[AFFILIATENAME]</parameter>"; 18 $op_xml .= "<parameter name="YearMonth" >2008-02-00</parameter>"; 19 $op_xml .= "<parameter name="EpochTimeNinetyDaysPrior" >1209677623</parameter>"; 20 $op_xml .="</resourceDescriptor></request>"; 21 22 23 my $soap = new SOAP::Lite 24 readable => 1, 25 service => 'http://[uSER]:[PASSWORD]@[MYSERVERNAME].[MYDOMAIN].net:8080/jasperserver/services/repository?wsdl', 26 uri => '/Reports/Affiliate/MonthlyReports/AffiliateMonthlyReport', 27 proxy => 'http://[MYSERVERNAME].[MYDOMAIN].net:8080'; 28 29 my $som = $soap->runReport($op_xml); 30 31 foreach my $part (${$som->parts}) { 32 print $part->stringify; 33 } 34 35 36 sub SOAP::Transport::HTTP::Client::get_basic_credentials { 37 # Overrides function 38 return '[uSER]' => '[PASSWORD]'; 39 } The following is what I get back: Unresolved (wrong?) href (http://tomcat.apache.org/) in element '{http://www.w3.org/1999/xhtml}a' <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Apache Tomcat</title> <style type="text/css"> /*<![CDATA[*/ body { color: #000000; background-color: #FFFFFF; font-family: Arial, "Times New Roman", Times, serif; margin: 10px 0px; } img { border: none; } a:link, a:visited { color: blue } th { font-family: Verdana, "Times New Roman", Times, serif; font-size: 110%; font-weight: normal; font-style: italic; background: #D2A41C; text-align: left; } td { color: #000000; font-family: Arial, Helvetica, sans-serif; } td.menu { background: #FFDC75; } .center { text-align: center; } .code { color: #000000; font-family: "Courier New", Courier, monospace; font-size: 110%; margin-left: 2.5em; } #banner { margin-bottom: 12px; } p#congrats { margin-top: 0; font-weight: bold; text-align: center; } p#footer { text-align: right; font-size: 80%; } /*]]>*/ </style> </head> <body> <!-- Header --> <table id="banner" width="100%"> <tr> <td align="left" style="width:130px"> <a href="http://tomcat.apache.org/"> <img src="tomcat.gif" height="92" width="130" alt="The Mighty Tomcat - MEOW!"/> </a> </td> <td align="left" valign="top"><b>Apache Tomcat</b></td> <td align="right"> <a href="http://www.apache.org/"> <img src="asf-logo-wide.gif" height="51" width="537" alt="The Apache Software Foundation"/> </a> </td> </tr> </table> <table> <tr> <!-- Table of Contents --> <td valign="top"> <table width="100%" border="1" cellspacing="0" cellpadding="3"> <tr> <th>Administration</th> </tr> <tr> <td class="menu"> <a href="manager/status">Status</a><br/> <!--<a href="admin">Tomcat Administration</a><br/>--> <a href="manager/html">Tomcat Manager</a><br/> </td> </tr> </table> <br /> <table width="100%" border="1" cellspacing="0" cellpadding="3"> <tr> <th>Documentation</th> </tr> <tr> <td class="menu"> <a href="RELEASE-NOTES.txt">Release Notes</a><br/> <a href="docs/changelog.html">Change Log</a><br/> <a href="docs">Tomcat Documentation</a><br/> </td> </tr> </table> <br/> <table width="100%" border="1" cellspacing="0" cellpadding="3"> <tr> <th>Tomcat Online</th> </tr> <tr> <td class="menu"> <a href="http://tomcat.apache.org/">Home Page</a><br/> <a href="http://tomcat.apache.org/faq/">FAQ</a><br/> <a href="http://tomcat.apache.org/bugreport.html">Bug Database</a><br/> <a href="http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&resolution=LATER&resolution=REMIND&resolution=---&bugidtype=include&product=Tomcat+6&cmdtype=doit&order=Importance">Open Bugs</a><br/> <a href="http://mail-archives.apache.org/mod_mbox/tomcat-users/">Users Mailing List</a><br/> <a href="http://mail-archives.apache.org/mod_mbox/tomcat-dev/">Developers Mailing List</a><br/> <a href="irc://irc.freenode.net/#tomcat">IRC</a><br/> </td> </tr> </table> <br/> <table width="100%" border="1" cellspacing="0" cellpadding="3"> <tr> <th>Miscellaneous</th> </tr> <tr> <td class="menu"> <a href="examples/servlets/">Servlets Examples</a><br/> <a href="examples/jsp/">JSP Examples</a><br/> <a href="http://java.sun.com/products/jsp">Sun's Java Server Pages Site</a><br/> <a href="http://java.sun.com/products/servlet">Sun's Servlet Site</a><br/> </td> </tr> </table> </td> <td style="width:20px"> </td> <!-- Body --> <td align="left" valign="top"> <p id="congrats">If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!</p> <p>As you may have guessed by now, this is the default Tomcat home page. It can be found on the local filesystem at:</p> <p class="code">$CATALINA_HOME/webapps/ROOT/index.html</p> <p>where "$CATALINA_HOME" is the root of the Tomcat installation directory. If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the <a href="docs">Tomcat Documentation</a> for more detailed setup and administration information than is found in the INSTALL file.</p> <p><b>NOTE: For security reasons, using the administration webapp is restricted to users with role "admin". The manager webapp is restricted to users with role "manager".</b> Users are defined in <code>$CATALINA_HOME/conf/tomcat-users.xml</code>.</p> <p>Included with this release are a host of sample Servlets and JSPs (with associated source code), extensive documentation, and an introductory guide to developing web applications.</p> <p>Tomcat mailing lists are available at the Tomcat project web site:</p> <ul> <li><b><a href="mailto:users@tomcat.apache.org">users@tomcat.apache.org</a></b> for general questions related to configuring and using Tomcat</li> <li><b><a href="mailto:dev@tomcat.apache.org">dev@tomcat.apache.org</a></b> for developers working on Tomcat</li> </ul> <p>Thanks for using Tomcat!</p> <p id="footer"><img src="tomcat-power.gif" width="77" height="80" alt="Powered by Tomcat"/><br/> Copyright © 1999-2007 Apache Software Foundation<br/> All Rights Reserved </p> </td> </tr> </table> </body> </html> at runReport_SOAPLITE.pl line 29 Most of the response (except the first and last lines) are a default tomcat page. My XML and soap call seem correct to me. It is failing on the runReport command which should be placed into a SOM object Can anyone see anything wrong? or possible reasons I might get the default tomcat page? Any perl gurus see something wrong with my code? Thanks. Andrew R
×
×
  • Create New...