- The class javax.xml.soap.SOAPMessage is defined in a java or javax package and
 cannot be converted into an xml schema type.  An xml schema anyType will be use
d to define this class in the wsdl file.
这是resin上显示的错误

解决方案 »

  1.   

    是否需要在wsdd文件中注册什么呢?
      

  2.   

    错误的意思好像是不能发现 'http://soap.xml.javax' 的前缀!可能需要你把这个 前缀 加入到 名字空间 namespace 里面去,有点类似 c++ 的语法了呵呵
      

  3.   

    楼主用的是SAAJ 方式,拼装半天,比较繁琐,应该直接系列化 DataHandler,
    内容仅 1 行:public DataHandler getFile() throws Exception{
        return new DataHandler(new FileDataSource(new File("test.jpg")));
    }别忘了在wsdd中注册 DataHandler, 方法参考axis的例子。