NET client unable to retrive data from the web services of JasperServer

0

Hi All,

In C#

can i get a sample code in C#.

When we try to connect to Jasper Server using Webservice , It is connecting but unable to get the data.

I am using the following Code.

 hydwks10.ManagementServiceService ms = new WindowsApplication1.hydwks10.ManagementServiceService();
            System.Net.NetworkCredential c = new System.Net.NetworkCredential("asyed", "asyed");
            ms.Credentials = c;
            String s = String.Empty;
            s = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><request operationName=\"runReport\" locale=\"en\"><argument  name=\"RUN_OUTPUT_FORMAT\">RTF</argument><resourceDescriptor name=\"\" wsType=\"\" uriString=\"/reports/samples/AllAccounts\" isNew=\"false\"><label>null</label></resourceDescriptor></request>";
           
            String aaaa= ms.runReport(s);

 

I am getting the following Error:

 

Client found response content type of 'multipart/related; type="text/xml"; start="<526281C10048705BF36D4EDD463BAD62>";     boundary="----=_Part_5_32373432.1219990913144"', but expected 'text/xml'.
The request failed with the error message:
--

------=_Part_5_32373432.1219990913144
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <526281C10048705BF36D4EDD463BAD62>

<?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><ns1:runReportR... soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://axis2.ws.jasperserver.jaspersoft.com"><runReportReturn xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8"?>
<operationResult version="2.0.1">
    <returnCode><![CDATA[0]]></returnCode>
</operationResult>
</runReportReturn></ns1:runReportResponse></soapenv:Body></soapenv:Envelope>
------=_Part_5_32373432.1219990913144
Content-Type: application/rtf
Content-Transfer-Encoding: binary
Content-Id: <report>

{\rtf1\ansi\

abedeen's picture
Joined: Aug 28 2008 - 3:45am
Last seen: 11 years 6 months ago

10 Answers:

0
There is a project from the old JasperForge that has a .NET solution for connecting to JasperServer. We will resurrect that and let you know when it is available. Sherman Jaspersoft
swood's picture
2552
Joined: Jun 21 2006 - 12:48pm
Last seen: 7 years 4 months ago
0

swood
Wrote:

There is a project from the old JasperForge that has a .NET solution for connecting to JasperServer. We will resurrect that and let you know when it is available. Sherman Jaspersoft

Will it take some more time.......

abedeen's picture
Joined: Aug 28 2008 - 3:45am
Last seen: 11 years 6 months ago
0

I too would be interested in this project.  

 

Many thanks...

snowch's picture
46
Joined: Oct 13 2008 - 4:43am
Last seen: 11 years 4 months ago
0

Is there any likelihood the net_webservices_client will be found?  I am on a tight timescale to see if our application can be migrated from actuate iserver to jasper...

 

Many thanks in advance.

snowch's picture
46
Joined: Oct 13 2008 - 4:43am
Last seen: 11 years 4 months ago
0

Hi friend,

I got a by-Pass for .Net --> Jasper Server

 

Client[.Net(c#) -->Bridge.Net(Converts instructions of C# to Java)-->Jar(JVM)] ---> Jasper Server

 

If u wish i will send that .Net Application , Just provide me ur Email ID.

 

Regards,

s.z.abedeen

abedeen's picture
Joined: Aug 28 2008 - 3:45am
Last seen: 11 years 6 months ago
0

My email: is csnow4 at csc.com

 

Many thanks!

Chris

snowch's picture
46
Joined: Oct 13 2008 - 4:43am
Last seen: 11 years 4 months ago
0

hi,

 

can you also send it to adshocker at yahoo dot com?

 

thanks.

 

btw, are there any other solution to this issue?

adshocker's picture
Joined: Nov 18 2008 - 6:37pm
Last seen: 11 years 3 months ago
0

Hi,

 

First Download the following C# Project in your machine

 

1.      Download http://www.codeproject.com/KB/dotnet/Espresso.aspx    ( This code will invoke java class)

2.      First test that the existing sample java file is working properly.(Try to run from .NET Studio)

3.      Then Implement your Senario in java, and call that methods from .NET

 

I am able to work with it.

 

Regards,

Abedeen.

abedeen's picture
Joined: Aug 28 2008 - 3:45am
Last seen: 11 years 6 months ago
0

Hello,

See procedure to retreive data with .NET client here : http://www.maverick-zone.fr/index.php?page=tuto&id=16

(Fr)

www.maverick-zone.fr

maverick911's picture
Joined: Dec 8 2009 - 6:36am
Last seen: 10 years 2 months ago
0

Hi,

 

I would like the sample .net application

allmendinger's picture
Joined: May 3 2011 - 5:44am
Last seen: 3 years 4 months ago
Feedback
randomness