标签:namespace webservice wsdl mismatch require
最近在进行两个项目开发时,需要使用WebService进行通信,在一个项目中使用axis2实现了,但在别一个项目中调用时,却发生异常,错误信息:namespace mismatch require http://webservice.transcoding.module.iefree.com found http://ws.apache.org/axis2/xsd
public static String callService(String taskXML) throws AxisFault { RPCServiceClient client = new RPCServiceClient(); Options options = client.getOptions(); String address = getAddress_Transcoding(); EndpointReference epf = new EndpointReference(address); options.setTo(epf); QName qName=new QName("http://ws.apache.org/axis2/xsd","addTransTask"); Object[] result = client.invokeBlocking(qName, new Object[]{ "ierp", "ierp2vod", taskXML } , new Class[] {int.class}); return result[0].toString(); }
QName qName=new QName("http://ws.apache.org/axis2/xsd","addTransTask");
QName中使用的是http://ws.apache.org/axis2/xsd,而通过http://192.168.1.131:8080/video-library/services/Transcoding?wsdl查看得到的targetNamespace=http://webservice.transcoding.module.iefree.com;
http://blog.sina.com.cn/s/blog_6f1a188a0100y6mo.html
namespace mismatch require错误处理方法
标签:namespace webservice wsdl mismatch require
原文地址:http://blog.csdn.net/testcs_dn/article/details/24804659