Report's login programmatically
Answered
Hi
Our site written in C# and I would like to login programmatically,
I've looked for documentation about this issue and found that I should add a reference.cs file and then write some code according to your example in the example folder at the server installation dir, file name: ws_admin_singlesignon.jsp, I should write something like that:
- AdministrationServiceResponse rs = null;
- AdministrationServiceRequest rsr = new AdministrationServiceRequest();
- AdministrationServiceService ts = new AdministrationServiceServiceLocator("localhost", 8080, "/services/AdministrationService", false);
- AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();
- rsr.setLoginId("admin@yellowfin.com.au");
- rsr.setPassword("test");
- rsr.setOrgId(new Integer(1));
- rsr.setFunction("LOGINUSER");
- AdministrationPerson ap = new AdministrationPerson();
- ap.setUserId("admin@yellowfin.com.au");
- ap.setPassword("test");
- rsr.setPerson(ap);
- rs = rssbs.remoteAdministrationCall(rsr);
The problem is that the AdministrationServiceService and AdministrationServiceSoapBindingStub are not recognized at all and the code is not compiled.
Any suggestion?
Hi Eliran,
Thanks for sending the question through. From a support perspective, we don't actually 'support' c# integration, but we do have some customers that have integrated with c# in the past.
Do you think you could take a quick look at the below forum posts on the same subject and see if this information helps?
http://www.yellowfinbi.com/YFForum-problem-when-I-try-to-integrate-with-C-MVC-?thread=147415
http://www.yellowfinbi.com/YFForum-C-integration-problem-?thread=205334#p5
Let me know if you have any questions or if you continue to run into difficulties.
Kind Regards,
Dustin
Hi Eliran,
Thanks for sending the question through. From a support perspective, we don't actually 'support' c# integration, but we do have some customers that have integrated with c# in the past.
Do you think you could take a quick look at the below forum posts on the same subject and see if this information helps?
http://www.yellowfinbi.com/YFForum-problem-when-I-try-to-integrate-with-C-MVC-?thread=147415
http://www.yellowfinbi.com/YFForum-C-integration-problem-?thread=205334#p5
Let me know if you have any questions or if you continue to run into difficulties.
Kind Regards,
Dustin
Hi Eliran,
I think the following post might also provide some useful info:
http://www.yellowfinbi.com/YFForum-dot-Net-Net-integration-?thread=110922
Please let us know how it all goes.
Regards,
David
Hi Eliran,
I think the following post might also provide some useful info:
http://www.yellowfinbi.com/YFForum-dot-Net-Net-integration-?thread=110922
Please let us know how it all goes.
Regards,
David
Replies have been locked on this page!