Service service = new Service();
Call call = (Call) service.createCall();
String url = "http://ip/webService/文件名?wsdl";
call.setTargetEndpointAddress(new URL(url));
//call.setOperationName("方法名");//调用axis
call.setOperationName(new QName("soapxmlns", "方法名")); //调用jax-ws
call.setMaintainSession(true);
call.setUseSOAPAction(true);
call.addParameter("request", Constants.XSD_STRING, ParameterMode.IN);
call.setReturnType(Constants.XSD_STRING);
String str = (String) call.invoke(new Object[] { xml });
System.out.println(str);