com.calcxml.webservice
Interface AdminWSInterface
public interface AdminWSInterface
Calculator traffic statistics.
WSDL file location: http://www.calcxml.com/services/AdminWS?wsdl
- Author:
- brian
Method Summary |
java.lang.String |
getTrafficStats(java.lang.String xmlInput)
getTrafficStats - Use this method to get traffic statistics for a CalcXML client. |
getTrafficStats
java.lang.String getTrafficStats(java.lang.String xmlInput)
throws java.rmi.RemoteException
- getTrafficStats - Use this method to get traffic statistics for a CalcXML client.
- Parameters:
xmlInput
- An XML document, conforming to the calcxmlAdminRequest schema, containing all the input values for the request.
See the schema for full details regarding the XML document.
calcxmlAdminRequest.xsd Schema
Sample xmlInput 1 (Daily report grouped by date)
<?xml version="1.0" encoding="UTF-8"?>
<calcxmlAdminRequest username="your username" password="your password" version="1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.calcxml.com/schema/1.3/calcxmlAdminRequest.xsd">
<traffic fromDate="2009-05-01" toDate="2009-05-04" reportType="1" groupBy="1" />
</calcxmlAdminRequest>
Sample xmlInput 2 (Monthly report grouped by calculator)
<?xml version="1.0" encoding="UTF-8"?>
<calcxmlAdminRequest username="your username" password="your password" version="1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.calcxml.com/schema/1.3/calcxmlAdminRequest.xsd">
<traffic fromDate="2009-04-01" toDate="2008-06-01" reportType="2" groupBy="3"/>
</calcxmlAdminRequest>
- Returns:
- An XML document
See the schema for full details regarding the XML document.
calcxmlAdminResponse.xsd Schema
Sample Response 1 (Daily report grouped by date)
<?xml version="1.0" encoding="UTF-8"?>
<calcxmlAdminResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.calcxml.com/schema/1.3/calcxmlAdminResponse.xsd" version="1.3">
<traffic>
<row>
<date value="2009-05-01"/>
<hits value="590"/>
</row>
<row>
<date value="2009-05-02"/>
<hits value="710"/>
</row>
<row>
<date value="2009-05-03"/>
<hits value="642"/>
</row>
</traffic>
</calcxmlAdminResponse>
Sample Response 2 (Monthly report grouped by calculator)
<?xml version="1.0" encoding="UTF-8"?>
<calcxmlAdminResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.calcxml.com/schema/1.3/calcxmlAdminResponse.xsd" version="1.3">
<traffic>
<row>
<calcId value="bud01"/>
<calcTitle value="How Does Inflation Impact My Standard Of Living?"/>
<hits value="152"/>
</row>
<row>
<calcId value="bud02"/>
<calcTitle value="How Much Am I Spending?"/>
<hits value="245"/>
</row>
<row>
<calcId value="bud03"/>
<calcTitle value="How Much Do I Need For Emergencies?"/>
<hits value="78"/>
</row>
<row>
<calcId value="bud04"/>
<calcTitle value="Should I Pay Down Debt Or Invest My Monthly Surplus?"/>
<hits value="115"/>
</row>
</traffic>
</calcxmlAdminResponse>
- Throws:
java.rmi.RemoteException