You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Walid <wa...@dbian.org> on 2003/10/15 18:06:53 UTC

WSDL2Java and Attachments

Hello,

I am facing a problem with attachments and Java2WSDL.

Here is my interface :


package com.wlab.axis;
import javax.activation.DataHandler;

/**
 * Interface describing Lab web service
 **/
public interface UnionServ {
    public int push(String fName);
    public DataHandler[] pop();
}


When I call java2wsdl, it gives me a wsdl file (see attachment).
Then when I call wsdl2java, I get this error message :

java.io.IOException: Type DataHandler is referenced but not defined.
 at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:522)
 at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:422)
 at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:408)
 at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:393)
 at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
 at java.lang.Thread.run(Unknown Source)


Anyone can help me ? I need to pop a undefined number of documents from
the server and I didnt find another way. 

Thanks for your help.

-- 
Walid Daniels