是一段调用WebService的代码,先行谢过!
String endpoint = "http://testmail.com/kkk.nsf/getUsernewMail?openwebservice"; Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress(new java.net.URL(endpoint)); call.setOperationName("getUsermailUrl"); String mails = (String) call.invoke(new Object[] { oauser });