java调用.net写的webservice问题,急啊在线等

来源:百度知道 编辑:UC知道 时间:2024/06/23 21:47:12
public static void main(String[] args) throws Exception {

String method = "get_Content_Value";
Service service = new Service();
Call call = (Call) service.createCall();

call.setTargetEndpointAddress(new java.net.URL("http://bf-server/wuliusystem/etoonsystem/myservice/contentvalue.asmx"));
call.setOperationName(new QName("http://tempuri.org/",method));
call.addParameter("tablename",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("Page",org.apache.axis.encoding.XMLType.XSD_INT,javax.xml.rpc.ParameterMode.IN);
call.addParameter("PageSize",org.apache.axis.encoding.XMLType.XSD_INT,javax.xml.rpc.ParameterMode.IN);

java调用axis服务,我写过。也成功
java调用grid服务,我写过,也成功。
dot net没有试过,应该也可以。有配置文件吗?我的原来,没有放配置文件,放了位置又不对。现在解决了。

不晓得,JAVA写分布式好象不是这样的吧!