java客户端调用C++ GSoap生成的webservice

String endpoint = "http://www.cmsz.com:7088/getdbpwd/getdbpwdservice";
   Service service = new Service();
   Call call = (Call)service.createCall();
   call.setTargetEndpointAddress(endpoint);

   call.setOperationName(new QName(
"urn:getdbpwd", "getdbpwd"));
   call.addParameter( "pmsDBUser",null,javax.xml.rpc.ParameterMode.IN);
   call.setReturnClass(String.class);
   String temp = (String)call.invoke(new Object[]{"pubdba"});
   System.out.println("result: " + temp);

你可能感兴趣的:(java,C++,c,webservice,C#)