java如何调用delphi编写的webservice接口

bxfyb bxfyb 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<%@ page import="org.apache.axis.client.Call"%>
<%@ page import="org.apache.axis.client.Service"%>
<%@ page import="org.apache.axis.encoding.XMLType"%>
<%@ page import="javax.xml.rpc.*"%>

<%@ page import="javax.xml.rpc.ParameterMode"%>
<%@ page import="java.util.Vector"%>
<%@page import="java.net.URL"%>

<%
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress( new URL("http://127.0.0.1/inter/RewiseInterFace.dll/wsdl/IReWiseInterFace") );
call.setOperationName(new javax.xml.namespace.QName("GetStation"));
// call.setUseSOAPAction(true);
//call.setSOAPActionURI("http://www.my.com/Rpc");
call.addParameter( "StationName", org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN );
call.addParameter( "TimeString", org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN );
call.addParameter( "ModeName", org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN );
call.addParameter( "SendBuffer", org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.INOUT );
call.addParameter( "Check", org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.INOUT );

call.setReturnType( XMLType.XSD_STRING );

String Buffer = null;
String Ch = null;
String dd=(String)call.invoke(new Object[]{"宾县","2007082912","DMS_AVN",Buffer,Ch});

请高手帮助看看哪里出了问题?
wsdl等描述文件在下面跟贴里!
...全文
评论 5
收藏 已收藏
分享
返回顶部
bxfyb
Java EE 67,535 成员 225,843 内容