Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Share my webservices
Share my webservices [message #189820] Thu, 15 March 2007 11:56 Go to next message
andrea is currently offline andreaFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,
after a week of trouble I get my webservices run on my tonmcat instllation.
I want describing the operations I've done before explane my questions.
I get two wsdl file describing the web services that I must develope.
My project consist to create two webservices to update our local database
with data from the webservices consumer that give me the two wsdl file.
Using Eclipse wtp, with the topdown wizard I've created all the class.
Then, I fill the two class with my code (Two class because I've two
webservice) and test it with Service Explorer.
After a little bit of tuning hte goal is reached and I've successfully
tested my web services with Service Explorer built in Eclipse and with two
client created with the wizard.
Then I try to exported the project from my machine to the server that we
using for products accessible from Internet where run our Tomcat 5.0
Installation.
Everithing works fine.
When I've uploaded my projects onto the tomcat server in the Manager Page
of my project I can see two wsdl files (I started developing webservices
from these, two folder that contains my test client and another folder
named wsdl/ that contanins two further wsdl created ny the eclipse wizard.
Now I want to share my web services with our patner that give us the
intizial wsdl file but I have no idea to do this.
Suppose that my url is http://myserver:8080 and the complete path of my
project is http://myserver:8080/myPorject.
I've another question about the architeture of the project created with
Eclipse-
The WTP (1.5) wizard add to my library axis.jar. Then in my Tomcat I dont
need to install Axis because It's buil in my project, Right?
If this is true, How can I access to the axis functionality like the
AdminConsole, the list of exposed webservices etc?
Thanks in advance Ponzetti
Re: Share my webservices [message #189844 is a reply to message #189820] Thu, 15 March 2007 14:08 Go to previous messageGo to next message
Andrew Mak is currently offline Andrew MakFriend
Messages: 41
Registered: July 2009
Member
Hi Ponzetti,

> Now I want to share my web services with our patner that give us the
> intizial wsdl file but I have no idea to do this.
> Suppose that my url is http://myserver:8080 and the complete path of my
> project is http://myserver:8080/myPorject.

I assume you would like to know how to let your partner invoke the web
service that you've created. If so, take a look at the wsdl that WTP
generated for you, look for the endpoint url in there which would look
something like:

http://myserver:8080/myProject/services/MyServiceName

Now if you append a ?wsdl to that url and access it through a browser,
you'll actually get back a version of the wsdl file that can be used by
your partner to generate a client to invoke your service. i.e., you should
give this url to your partner:

http://myserver:8080/myProject/services/MyServiceName?wsdl


> I've another question about the architeture of the project created with
> Eclipse-
> The WTP (1.5) wizard add to my library axis.jar. Then in my Tomcat I dont
> need to install Axis because It's buil in my project, Right?

Right, the axis jar are in your project's WEB-INF/lib directory


> If this is true, How can I access to the axis functionality like the
> AdminConsole, the list of exposed webservices etc?

For this I'll refer you to the axis user-guide [1]. Specifically, take a
look at the "Publishing Web Services with Axis" section.


Hope this helps

Andrew

[1] http://ws.apache.org/axis/java/user-guide.html
Re: Share my webservices [message #189867 is a reply to message #189844] Thu, 15 March 2007 14:49 Go to previous messageGo to next message
andrea is currently offline andreaFriend
Messages: 6
Registered: July 2009
Junior Member
>Hi Ponzetti,

Hi Andrew

>I assume you would like to know how to let your partner invoke the web
service >that you've created. If so, take a look at the wsdl that WTP
generated for you, >look for the endpoint url in there which would look
something like:

>http://myserver:8080/myProject/services/MyServiceName

>Now if you append a ?wsdl to that url and access it through a browser, you'll
>actually get back a version of the wsdl file that can be used by your partner
>to generate a client to invoke your service. i.e., you should give this url
to >your partner:

>http://myserver:8080/myProject/services/MyServiceName?wsdl


Right. It works and Rocks :-)
Only one question still.
In the two wsdl that my partner send to me I've an entry like this:

<wsdlsoap:address
location="http://localhost:8080/ises1/services/nameoftheserviceWS" />

I replace localhost with the name of the server like this:

<wsdlsoap:address
location=" http://titano.domain.com:8080/ises1/services/nameoftheservic eWS"
/>

Titano is the server where web services will be published.
After running the wizard the new wsdl that are placed in the wsdl folder
are like this:

<wsdlsoap:address
location=" http://localhost:8080/nameofmyproject/services/nameoftheserv iceWS"/>

Notice that the server name is again localhost.
I want know if this happen because the tomcat server on my machine is
localhost.
is it right?

>Right, the axis jar are in your project's WEB-INF/lib directory

Ok.


>For this I'll refer you to the axis user-guide [1]. Specifically, take a
look >at the "Publishing Web Services with Axis" section.
>
>
>Hope this helps
>
>Andrew

>[1] http://ws.apache.org/axis/java/user-guide.html

Thanks I'll read this guide. Thank you very much.
Ponzetti
Re: Share my webservices [message #189873 is a reply to message #189867] Thu, 15 March 2007 15:35 Go to previous messageGo to next message
Andrew Mak is currently offline Andrew MakFriend
Messages: 41
Registered: July 2009
Member
Hi Ponzetti,

> Notice that the server name is again localhost.
> I want know if this happen because the tomcat server on my machine is
> localhost. is it right?

That's right. However, after you deployed the service on titano and if
you access the wsdl via:
http://titano.domain.com:8080/ises1/services/nameoftheservic eWS?wsdl

You will notice that the wsdlsoap:address element will have the correct
hostname. That is because ?wsdl is generated by axis and it will sub in
the hostname for you.

Andrew
Re: Share my webservices [message #189880 is a reply to message #189873] Thu, 15 March 2007 15:50 Go to previous message
andrea is currently offline andreaFriend
Messages: 6
Registered: July 2009
Junior Member
Many Many Thanks.
See Ya' Ponzetti
Previous Topic:refactoring a project
Next Topic:Extending HTML Editor
Goto Forum:
  


Current Time: Mon Dec 22 02:52:24 GMT 2014

Powered by FUDForum. Page generated in 0.01718 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software