The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Khushwinder (3) [Avatar] Offline
#1
Hi All

I am trying to connect to my report server through URL access and then trying to retrieve some values from my SSRS from my local machine like :

<%=name%>


But when i click on this hyperlink it asks for the username and password for that server.
However , i am using the following code to connect to my server :

String url = "http://IpAddressOfServer/ReportServer/ReportService2005.asmx";
ReportingService2005Soap port = null;
ReportingService2005Locator loc = new ReportingService2005Locator();
// Retrieve a port from the service locator
try {
port = loc.getReportingService2005Soap(new java.net.URL(url));
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ServiceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

org.apache.axis.client.Stub stub = (org.apache.axis.client.Stub) port;
stub.setUsername("IpAddressOfServer\USERNAME");
stub.setPassword("PASSWORD");

It is getting connected withut any problem and i am retrieving values also from my SSRS.

But the problem comes when i want to click on some hyperlink and it should go to the report server and generate the corressponding report.
But it is asking for the username and password which is not required.
If there will be some security issue it must not be get connected with the server through the code i am using.
I have tried to connect with wrong password but it gives unauthorized exception.

SO please anybody has any idea, advise me.

Regards.
Khushwinder.
Khushwinder (3) [Avatar] Offline
#2
Re: URL Access to SSRS 2005 is asking for the username and password
Any senior member if can help me i will be thankful to him.
Khushwinder (3) [Avatar] Offline
#3
Re: URL Access to SSRS 2005 is asking for the username and password
Is there no one who can help me?