Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2005

Tip: Looking for answers? Try searching our database.

Apache soap

Thread view: 
JD - 02 Mar 2005 13:05 GMT
Hello everybody, web services are still new for me ; I've just created
a basic one with Apache soap which only receive and send a string. But
now, I'd like to create one which will be able to receive and send
some objects of mine (which are not javabeans). Do I need to create a
serializer and a unserializer and a xsd file for each object I want to
transfer?
I work with Apache soap but is it better to work with axis or WSDP?
Dan Nuttle - 11 Mar 2005 02:32 GMT
Yes, you need to define a serializer for each of your beans.  Or rather,
provide a mapping to a bean serializer.  And those beans should use only
Java primitives and/or their related class implementations (like
BigDecimal...and String).  There may be ways to create serializers for more
complex classes like OutputStreams...I've tried, and failed, and then
realized that I could just send byte arrays for character or binary data, so
why bother?

Also, if you create arrays of your beans, then you need to define
serializers for each type of array too.

Incidentally, my only experience is with Axis.  So my answers above are
based on working with Axis.  From what little I understand about the world
of web services in general, I'd say it's far easier to work with than Apache
SOAP.  I thought the latter was just what was available before Axis came
out, and my understanding is that it's quite a bit more complex.  I think
Axis was created to encapsulate a lot of the tedious details.  For instance,
you don't have to worry at all about creating or parsing the actual SOAP
message.  Axis takes care of all of that.

Apache has a fairly decent, though too brief, tutorial.

http://ws.apache.org/axis/java/user-guide.html

> Hello everybody, web services are still new for me ; I've just created
> a basic one with Apache soap which only receive and send a string. But
[quoted text clipped - 3 lines]
> transfer?
> I work with Apache soap but is it better to work with axis or WSDP?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.