Hello
I am using RAD 6.0. I am trying to access IM 6.0 web services which has
provided AXIS stub and I set that in my application (as TEWS6.jar set in the
java build path of my web application that's how the documentation says).
I have used the axis libraries (axis.jar, axis-ant.jar,
commons-discovery.jar, commons-logging.jar, jaxrpc.jar, log4j-1.2.8.jar,
saaj.jar, wsdl4j.jar) in my application WEB-INF/lib folders since TEWS6.jar
used those axis jar files. The Identity Minder documentation has some sample
programs in java that runs fine with the above set up in java project and
gets data connecting the web services.
But when I used the same examples in web application it gives the following
exception:
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (403)Forbidden
faultActor:
faultNode:
faultDetail:
{}:return code: 403
<HEAD><TITLE>403: Access Forbidden</TITLE></HEAD>
<BODY>Please Note: Access to this web site requires that cookies pass
properly between your web browser and this web server. Please check the
following and retry your request:
<BR><BR>
<UL>
<LI>your web browser is configured to accept cookies.</LI>
<BR><BR>
<LI>you are using a fully qualified domain name in your URL.</LI>
<BR><BR>
<UL>
<LI>http://server.domain.com/index.html is CORRECT.</LI>
<LI>http://server/index.html is INCORRECT.</LI>
<LI>http://123.123.22.22/index.html is INCORRECT.</LI>
</UL>
</UL>
<HR>
</BODY>
</HTML>
{http://xml.apache.org/axis/}HttpErrorCode:403
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (403)Forbidden
faultActor:
faultNode:
faultDetail:
{}:return code: 403
<HEAD><TITLE>403: Access Forbidden</TITLE></HEAD>
<BODY>Please Note: Access to this web site requires that cookies pass
properly between your web browser and this web server. Please check the
following and retry your request:
<BR><BR>
<UL>
<LI>your web browser is configured to accept cookies.</LI>
<BR><BR>
<LI>you are using a fully qualified domain name in your URL.</LI>
<BR><BR>
<UL>
<LI>http://server.domain.com/index.html is CORRECT.</LI>
<LI>http://server/index.html is INCORRECT.</LI>
<LI>http://123.123.22.22/index.html is INCORRECT.</LI>
</UL>
</UL>
<HR>
</BODY>
</HTML>
{http://xml.apache.org/axis/}HttpErrorCode:403
(403)Forbidden
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:665)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
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:147)
at org.apache.axis.client.Call.invokeEngine(Call.java:2779)
at org.apache.axis.client.Call.invoke(Call.java:2762)
at org.apache.axis.client.Call.invoke(Call.java:2396)
at org.apache.axis.client.Call.invoke(Call.java:2319)
at org.apache.axis.client.Call.invoke(Call.java:1776)
at
tews6.wsdl.ViewUserQuerySoapBindingStub.viewUserQuery(ViewUserQuerySoapBindingStub.java:9188)
at
com.oakland.egov.podcast.imwsclient.UserLookup.ExecViewUser(UserLookup.java:155)
at
com.oakland.egov.podcast.imwsclient.UserLookup.execute(UserLookup.java:43)
at
com.oakland.egov.podcast.FindLDAPRecord.viewUserByUserid(FindLDAPRecord.java:31)
at
com.oakland.egov.podcast.PodcastPilotServlet.getUserData(PodcastPilotServlet.java:128)
at
com.oakland.egov.podcast.PodcastPilotServlet.performTask(PodcastPilotServlet.java:399)
at
com.oakland.egov.podcast.PodcastPilotServlet.doPost(PodcastPilotServlet.java:116)
at
com.oakland.egov.podcast.PodcastPilotServlet.doGet(PodcastPilotServlet.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:665)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.client.Call.invokeEngine(Call.java:2779)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.client.Call.invoke(Call.java:2762)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.client.Call.invoke(Call.java:2396)
[8/10/07 16:41:25:523 EDT] 0000003c SystemErr R at
org.apache.axis.client.Call.invoke(Call.java:2319)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
org.apache.axis.client.Call.invoke(Call.java:1776)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
tews6.wsdl.ViewUserQuerySoapBindingStub.viewUserQuery(ViewUserQuerySoapBindingStub.java:9188)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.oakland.egov.podcast.imwsclient.UserLookup.ExecViewUser(UserLookup.java:155)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.oakland.egov.podcast.imwsclient.UserLookup.execute(UserLookup.java:43)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.oakland.egov.podcast.FindLDAPRecord.viewUserByUserid(FindLDAPRecord.java:31)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.oakland.egov.podcast.PodcastPilotServlet.getUserData(PodcastPilotServlet.java:128)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.oakland.egov.podcast.PodcastPilotServlet.performTask(PodcastPilotServlet.java:399)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.oakland.egov.podcast.PodcastPilotServlet.doPost(PodcastPilotServlet.java:116)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.oakland.egov.podcast.PodcastPilotServlet.doGet(PodcastPilotServlet.java:105)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
[8/10/07 16:41:25:539 EDT] 0000003c SystemErr R at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
In the code, I am using the stub as
stub.setUsername(USERNAME);
stub.setPassword(PASSWD);
stub.setMaintainSession(true);
stub._setProperty("Cookie","SMCHALLENGE=YES");
I am stuck with this problem. Please, help me if anybody has any idea about
this.
--
View this message in context:
http://www.nabble.com/Problem-accesing-web-services-using-AXIS-stub-from-Websphere-6-tf4251141.html#a12099264
Sent from the Axis - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]