2
回答
cxf调用axis如何调用啊?
滴滴云服务器,限时包月0.9元,为开发者而生>>>   
JaxWsDynamicClientFactory  dcf = JaxWsDynamicClientFactory.newInstance();
		Client client = dcf.createClient(URL+"?wsdl");
		try {
			client.invoke("sayHello", "job");
		} catch (Exception e) {
			e.printStackTrace();
		}
这样会报错:
Exception in thread "main" org.apache.cxf.wsdl11.WSDLRuntimeException: Part Body defined with no element and no type.
 at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildMessage(WSDLServiceBuilder.java:874)
 at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:604)
 at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:571)
 at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:347)
 at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:196)
 at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:172)
举报
独孤小败
发帖于5年前 2回/1K+阅
顶部