WP怎么调用Java WebService?
WP怎么调用Java开发的WebService?
我试了如下方法,但是e.Resul返回NULL,参数是对的,如下:
PIMService.AttendanceServiceSoapClient att = new PIMService.AttendanceServiceSoapClient();
att.GetLoginIDByStaffIDCompleted+=new EventHandler<PIMService.GetLoginIDByStaffIDCompletedEventArgs>(att_GetAllClubCompleted);
att.GetLoginIDByStaffIDAsync("SG","A");
private void att_GetAllClubCompleted(object sender, PIMService.GetLoginIDByStaffIDCompletedEventArgs e)
{
if (e.Error == null)
{
string aa = e.Result;
}
}
config如下:
<client>
<endpoint address="http://192.168.1.164:8080/JavaService/services/loginServices.loginServicessHttpSoap11Endpoint/"
binding="basicHttpBinding" bindingConfiguration="loginServicesSoap11Binding"
contract="LoginService.loginServicesPortType" name="loginServicesHttpSoap11Endpoint" />
</client>
谁知道是哪里错了?还有没什么其他方法能调用到Java WebSerives?
[解决办法]
那没有结果的话,就是函数本身的问题了
可能是参数传递之类的。