wood burning stoves 2.0*
The moose likes Web Services and the fly likes AXIS and Apache : Domain Names Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "AXIS and Apache : Domain Names" Watch "AXIS and Apache : Domain Names" New topic
Author

AXIS and Apache : Domain Names

B Rook
Greenhorn

Joined: Dec 27, 2003
Posts: 13
I have a webservice that I've developed in java with AXIS. Everything works fine when I use tomcat as the webserver (port 8080). However, I'm trying to migrate it to the development server which uses Apache and proxy passes requests to tomcat. When I generate the wsdl (using the ant tasks) the service location looks like this:

<wsdlsoap:address location="https://mydevserver/axis/services/mySvc"/>

I then use this wsdl to generate the necessary classes and wsdd files (using the ant tasks). The address in the servicelocator says:
"https://myServer/axis/services/mySvc"

Which is correct.

When I register the webservice the wsdl that appears in the Admin page ("View the list of deployed Web services") has a service location that looks like this:

<wsdlsoap:address location="http://myserver:8080/axis/services/mySvc"/>

There is no "https" and it added the :8080. Why is it doing this? I am running the AdminClient registration tool via localhost:8080, is that the problem?
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
yes, when you deploy your web service using Axis's AdminClient tool you have to specify admin service url using -l option


RR Kumaran
SCJP 1.4
B Rook
Greenhorn

Joined: Dec 27, 2003
Posts: 13
But you can run the adminclient program from the command line without specifying a url. That url is only needed to tell the adminclient program where the adminclient service lives. It doesn't tell the wsdl what to put in the service location attribute. I'm trying to find out why my service location attribute (in the wsdl) is saying something different that what is in my servicelocation class.

brian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AXIS and Apache : Domain Names