jaspernewuser Posted August 5, 2008 Share Posted August 5, 2008 Hi All, I created a webservice java client using wsdl from url http://localhost:8080/jasperserver/services/repository?wsdlonce all my java files are auto generated for above wsdl and when I try to access any of the repository service I get following error. How can I pass my authentication information from my webservice client while invoking any of the repository service.faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (401)Full authentication is required to access this resource faultActor: faultNode: faultDetail: {}:return code: 401<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title>Sun Java System Application Server 9.1_02 - Error report</title><style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - Full authentication is required to access this resource</h1><hr/><p><b>type</b> Status report</p><p><b>message</b>Full authentication is required to access this resource</p><p><b>description</b>This request requires HTTP authentication (Full authentication is required to access this resource).</p><hr/><h3>Sun Java System Application Server 9.1_02</h3></body></html> {http://xml.apache.org/axis/}HttpErrorCode:401(401)Full authentication is required to access this resource at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.jasperforge.www.jasperserver.ws.ReportSchedulerSoapBindingStub.deleteJob(ReportSchedulerSoapBindingStub.java:337) at org.jasperforge.www.jasperserver.ws.ReportSchedulerProxy.deleteJob(ReportSchedulerProxy.java:50) at test.Test.main(Test.java:29) Thanks Link to comment Share on other sites More sharing options...
lucianc Posted August 5, 2008 Share Posted August 5, 2008 JasperServer includes sample web services client code in a web application located under samples (see the java-webapp-sample). You can use this sample application as a starting point for your WS client code.Regards,Lucian Link to comment Share on other sites More sharing options...
Gaby38 Posted August 5, 2008 Share Posted August 5, 2008 Hello everybody!Just to notice that in a previous post :www.jasperforge.org/plugins/espforum/view.phpI get exactly the same kind of error in another context : use of iReportV3 with JSPlugin V3 and till now this problem is still pending for me though I did all tries suggested.So I am very interested by the future answers to this post. Link to comment Share on other sites More sharing options...
swood Posted August 9, 2008 Share Posted August 9, 2008 I would like to get to the bottom of this.Can you tell me more about the environment where you are running iReport? Operating system, JDK for iReport machine Did you have a previous version of iReport installed before you installed iR 3.0? is the server running on the same machine as iReport? ShermanJaspersoft Link to comment Share on other sites More sharing options...
Gaby38 Posted August 14, 2008 Share Posted August 14, 2008 Shermann,See my "main" thread on the subject : in the last post I explain that I discovered that my troubles were due to the use of the 8080 port in my context. : ireport running on a different PC, which itself hosts other tomcats or apache servers. The strange thing is : why it works with the 2.1 plugin?I am sorry for all the noise generated.I thank you once more having taken care of my strange problem. 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