是使用axis 來實現的。 嘗試過cxf 可再傳byte[] 時一直無法成功訪問,后來嘗試了 axis來實現,通過ecplise 生成java webservice client 來調用webservice接口
添加的依賴:
<dependency> <groupId>org.apache.axis</groupId> <artifactId>axis</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>org.apache.axis</groupId> <artifactId>axis-jaxrpc</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>axis</groupId> <artifactId>axis-wsdl4j</artifactId> <version>1.5.1</version> </dependency> <dependency> <groupId>commons-discovery</groupId> <artifactId>commons-discovery</artifactId> <version>0.2</version> </dependency> <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4.7</version> </dependency>
1、創建創建一個maven項目,添加相關依賴

2、創建java webservice client



3、完成后可以在上圖的那個路徑下找到相應的java文件

4、最后可以通常創建xxxxxxxProxy.java 這個類的對象進行調用就可以了

這樣就可以成功訪問了
