web service里面为什么类里的方法都使用完整名称?
不使用可不可以?是不是客户端有可能调用不到?
public localhost.axis.Hello_jws.Hello getHello(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
localhost.axis.Hello_jws.HelloSoapBindingStub _stub = new localhost.axis.Hello_jws.HelloSoapBindingStub(portAddress, this);
_stub.setPortName(getHelloWSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
不使用可不可以?是不是客户端有可能调用不到?
public localhost.axis.Hello_jws.Hello getHello(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
localhost.axis.Hello_jws.HelloSoapBindingStub _stub = new localhost.axis.Hello_jws.HelloSoapBindingStub(portAddress, this);
_stub.setPortName(getHelloWSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货