String endpoint="http://www.webxml.com.cn/WebServices/TraditionalSimplifiedWebService.asmx?wsdl"; String namespaceurl="http://www.webxml.com.cn/"; Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress(endpoint); call.setOperationName("toTraditionalChinese"); call.addParameter("sText",XMLType.SOAP_STRING, ParameterMode.IN); call.setUseSOAPAction(true); call.setSOAPActionURI("http://webxml.com.cn/toTraditionalChinese"); call.setReturnType(XMLType.SOAP_STRING); String userID="";String sText="冯小刚"; Object[] obj = {sText}; try { String result =(String)call.invoke(obj); System.out.println(result); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)