• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating Web services - Newbie  RSS feed

 
Bianca Deloso
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks!

I'm new to web services and I'm trying to create one using Axis 1.4 (with Tomcat for testing purposes). I've been able to do the fibonacci example and am trying to create my own sample.

I have created a bean and an interface to use for creating the WSDL as shown below:



I am able to create a WSDL and the java codes from the wsdl successfully but am having problem with deploying it to my local. (Sorry, no stack trace a the moment.



Did I go about creating everything the right way? Design wise, I want to make use of ArrayLists instead of String[], is that also possible? I've been told there might be a problem if I did this but am not quite sure.

Any help would be greatly appreciated
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the error message it's not clear what might be happening.

One thing I noticed is that you mention "Serializable" and "Remote" - those are not necessary, as a cross-platform WS will not use those mechanisms.

As to using Collection classes, you should avoid those for cross-platform compatibility in favor of arrays. See this article for more information.
 
Nathan Hook
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was an excellent link. Thank you for posting that.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!