Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 960563

Pages: 1
R.S.Ramaswamy
Unregistered




webservice in java
      #31796 - 05/10/06 04:38 AM

I think that it is NOT AT ALL correct to say that creating a webservice in java is difficult. I write a simple function bean and just place it in tomcat\webapps\axis folder as a file with *.jws extension.
That 's all. I now start tomcat and get the wsdl by typing the url as:
http://localhost:8080/axis/demo.jws?wsdl

I get the wsdl file and I can create either java client or asp.net client.

Please see my article on AXIS in:
www.roseindia.net ( look for webservice in menu)

or
http://in.geocities.com/rsramsam/axis2a.htm

Regards.
RSR


Post Extras: Print Post   Remind Me!   Notify Moderator  
Anonymous
Unregistered




Re: webservice in java [Re: R.S.Ramaswamy]
      #31872 - 05/11/06 07:39 PM

Hi,
Thanks for your comments. I agree with you, creating a Web service in java is NOT difficult if you use XFire.

The process of writing a bean, renaming it with *.jws extension and placing it in tomcat\webapps\axis folder has some issues. Here are those:

1. Your application must have many other Java classes. If from any of them, you want to invoke a method of your "exposed" bean, how would you do that? Using Web services?
That'll be a big NO. Web services are not practical for intra-application calls.

2. If your bean is not just for "hello world", it'll have to talk to some other classes of your application. Being inside another web archive named "axis", how will it see other Java classes of the same application? Your "bean" is in a separate web application now, isn't it?

XFire allows you to expose your methods as Web services from inside the same application. This is known as embeddability.

Best regards,
Shahid


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 5569

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5