File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes JAVA Web Service Client to access CICS program - 401 Authentication Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAVA Web Service Client to access CICS program - 401 Authentication Error" Watch "JAVA Web Service Client to access CICS program - 401 Authentication Error" New topic
Author

JAVA Web Service Client to access CICS program - 401 Authentication Error

prabu sivaram
Greenhorn

Joined: Jan 02, 2014
Posts: 1
Hi All,

Please help me to fix the following Error.

We have CICS programs that are being exposed to WEB through CICS Web Serices. I am trying to write a client program that access the CICS program. I got the wsdl generated for input and ouput mapping for all CICS programs. I exported the wsdl file to Eclipse and Generated the Client Classes. The Appserver is Tomcat7.0 and Web Server is Apache Axis CXF 2.x. The SOAP address is authenticated using user id and password. When i paste the SOAP address IE browser it is asking the user id and password. After keying the userid and password i am able to access the same. But when i run the client program it is giving me 401 authentication error.

When i googled about it, i could realize that i need to supply security header in wsdl and generate client classes (or) need to handle this in the main program. Could anyone help me out on how to make the changes so that i can invoke the CICS program.


Note : When i changed the authentication type to No Authentication in CICS resource definition, i was able to invoke the CICS program.


Thanks & Reg
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAVA Web Service Client to access CICS program - 401 Authentication Error