How to generate Web Service with Java Bean parameter ? [message #161341] |
Tue, 21 February 2006 13:55 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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...
|
|
|
Powered by
FUDForum. Page generated in 0.03911 seconds