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 Issue on JXWS stand alone client for webservices hosted on CIC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Issue on JXWS stand alone client for webservices hosted on CIC" Watch "Issue on JXWS stand alone client for webservices hosted on CIC" New topic
Author

Issue on JXWS stand alone client for webservices hosted on CIC

Vijay Rajagopal
Greenhorn

Joined: Aug 02, 2011
Posts: 2
Hi,

I am trying to develop a JXWS client to access a webservice hosted on CICS.

I got the wsdl and related xsd's and used wsimport to generate all the classes, after referencing them locally.


The issue I am facing, incase of Mainframe hosted webservices the end point URL would have a context root...

http://beta.something.com/asdfa/CICS/sdfdsd

Normally If we try pasting this URL in a browser or use http://beta.something.com/asdfa/CICS/sdfdsd?wsdl we would only get the message internal server error 500.

But if a proper xml is constructed and fired through SOAP UI at this URL we can see a response.


When a JXWS client needs to be written, the code runs like this...


Public class TestClientService extends Service
{

static {

Qname = x;

URL = y;


}



TestClientService(URL url, Qname qname) {

super(url, qname);

}



TestClientService() {

super(seturl, setqname);

}


Proxy getProxy() {

return proxy;

}


The problem here being if we try to instantiate this client class through any of the valid constructors, it throws the nasty exception the webservice is not found...on two attempts on the first execution itself

http://beta.something.com/asdfa/CICS/sdfdsd
http://beta.something.com/asdfa/CICS/sdfdsd?wsdl

This wsdl urls can be overridden using BindingConverter object but the program ain't reaching the point itself. Its getting broken as soon as the client gets initialized in the constructor itself and throws a internal server error...

Is there any way to access a webservice hosted on CICS which do not display a wsdl in the browser but provides only context root URL?



 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Issue on JXWS stand alone client for webservices hosted on CIC
 
Similar Threads
.Net Interoperablity issue with Xfire generated Webserivces
Problem in web service client while trying to consume a service exposed on the net
IllegalArgumentException when invoking web service over https
proxy settings in servlet
Unable to establish connection to WSDL. Failed to access the WSDL.