Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to generate Web Service with Java Bean parameter ?
How to generate Web Service with Java Bean parameter ? [message #161341] Tue, 21 February 2006 13:55 Go to next message
Eclipse UserFriend
Originally posted by: nicolas.buttin.sgcib.com

Hello,

I'm learning to use web services with Axis.
I have already built some web services with simple type parameters thanks
to Web Tools.

Now I'm trying to build a web service taking a Java Bean parameter.
How can I do with Web Tools to generate a WSDD deploy file containing the
information for Axis to serialize an deserialize automatically my bean ?

Here's the class for my service :

public class Receiving {

public String storeFile(FileContainer container) throws IOException {
//The service code...
}
}

And the Java Bean :

public class FileContainer {

private byte[] content;
private String fileName;

public FileContainer(byte[] content, String fileName) {
this.content = content;
this.fileName = fileName;
}

public byte[] getContent() {
return content;
}

public void setContent(byte[] content) {
this.content = content;
}

public String getFileName() {
return fileName;
}

public void setFileName(String fileName) {
this.fileName = fileName;
}
}

The real question is : how works the web services generated by Eclipse ?
Why are there two WSDD file (deploy.wsdd and server-config-wsdd) ?

Thank you for your answers

Nico
Re: How to generate Web Service with Java Bean parameter ? [message #161609 is a reply to message #161341] Wed, 22 February 2006 12:42 Go to previous message
Eclipse UserFriend
Originally posted by: nicolas.buttin.free.fr

I now understand what is the server-deploy.wsdd file generated.

But I still don't know how to use Eclipse bottom up web service generator
when my operation get or return a bean.

Is this generator unable to do this ? Must I use another IDE like NetBeans
or JBuilder ? :)

I hope someone could help me...
Previous Topic:Newbee: WTP 1.0 sqlmodel.ecore uses incorrect URIs... to Ecore.ecore
Next Topic:Java Virtual Machine Launcher cannot find main class (running XDoclet)
Goto Forum:
  


Current Time: Fri Sep 20 08:25:31 GMT 2024

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

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

Back to the top