Title: R: Web service with Attachment Problem
Hello Wade
Firstly thanks for your help.
Then, I'm trying to implement a web service with a WSDL as you have indicated.
The type:
http://www.w3.org/2001/XMLSchema" targetNamespace="http://vbl.wservices.nomadic.atosorigin.com/ReceiverFileServiceInput" elementFormDefault="qualified">
become in java:
public class NodeDocument implements java.io.Serializable {
private java.lang.String name;
private java.lang.String type;
private byte[] content;
public NodeDocument() {
}
..
}
I haven't a Object type but a byte[] type. Can I use the javax.activation.DataHandler again?
Moreover, how I can read the attachment in the ReceiverFileBindingImplClass
that implements the web service?
public class ReceiverFileBindingImpl implements com.atosorigin.nomadic.wservices.ReceiverFilewebservice.ReceiverFilePortType{
public java.lang.String receiverFileOperation(com.atosorigin.nomadic.wservices.vbl.ReceiverFileServiceInput.NodeDocument in) throws java.rmi.RemoteException, com.atosorigin.nomadic.wservices.vbl.FaultMessages.FaultMessage {
return null;
}
}
Have you a example of this?
Thanks for your help
Diana