abedeen Posted August 29, 2008 Share Posted August 29, 2008 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.1219990913144Content-Type: text/xml; charset=UTF-8Content-Transfer-Encoding: binaryContent-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:runReportResponse 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.1219990913144Content-Type: application/rtfContent-Transfer-Encoding: binaryContent-Id: <report>{rtf1ansi Link to comment Share on other sites More sharing options...
swood Posted September 4, 2008 Share Posted September 4, 2008 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 Link to comment Share on other sites More sharing options...
abedeen Posted September 9, 2008 Author Share Posted September 9, 2008 swoodWrote: 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....... Link to comment Share on other sites More sharing options...
snowch Posted October 13, 2008 Share Posted October 13, 2008 I too would be interested in this project. Many thanks... Link to comment Share on other sites More sharing options...
snowch Posted October 14, 2008 Share Posted October 14, 2008 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. Link to comment Share on other sites More sharing options...
abedeen Posted October 15, 2008 Author Share Posted October 15, 2008 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 Link to comment Share on other sites More sharing options...
snowch Posted October 15, 2008 Share Posted October 15, 2008 My email: is csnow4 at csc.com Many thanks!Chris Link to comment Share on other sites More sharing options...
adshocker Posted January 13, 2009 Share Posted January 13, 2009 hi, can you also send it to adshocker at yahoo dot com? thanks. btw, are there any other solution to this issue? Link to comment Share on other sites More sharing options...
abedeen Posted January 13, 2009 Author Share Posted January 13, 2009 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. Link to comment Share on other sites More sharing options...
maverick911 Posted May 9, 2010 Share Posted May 9, 2010 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 Link to comment Share on other sites More sharing options...
allmendinger Posted July 4, 2012 Share Posted July 4, 2012 Hi, I would like the sample .net application Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now