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 / April 2005

Tip: Looking for answers? Try searching our database.

Simple custom return type in Apache Axis

Thread view: 
Jeffrey.Rodriguez@gmail.com - 29 Apr 2005 03:34 GMT
I'm trying to figure out how exactly to return a custom type using
Apache Axis.

I'm implementing a method in all future web services called
"ServiceStatus". This method will return 2 fields "status" (string) and
"comment" (string).

What would be the easiest way to implement this in Axis? I *think* it
would be to use an interface at which I would point Java2WSDL, but the
docs don't really go into detail about how exactly I would return a
custom type using this method.

After I use Java2WSDL and WSDL2Java, what file do I need to look at in
order to setup my service?
Rhino - 29 Apr 2005 16:26 GMT
> I'm trying to figure out how exactly to return a custom type using
> Apache Axis.
[quoted text clipped - 10 lines]
> After I use Java2WSDL and WSDL2Java, what file do I need to look at in
> order to setup my service?

I really don't understand your problem: String is *not* a custom type.

Rhino
Jeffrey.Rodriguez@gmail.com - 29 Apr 2005 17:51 GMT
I was trying to create a complex type which contained 2 strings, but
decied to use two <part> tags instead.

I couldn't find an easy to get Java2WSDL to generate either, instead I
had to resort to editing the WSDL after I generated a basic WSDL with
JavaWSDL. After doing so I modified my method to return a 2 part
response:
<wsdl:message name="getServiceStatusResponse">
 <wsdl:part name="status" type="xsd:string"/>
 <wsdl:part name="comment" type="xsd:string"/>
</wsdl:message>

Now I need to figure out how to get that response into my client :)


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.