delphi调用webservice时抛错 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
dubbo 调用对方.
<em>抛</em>异常. return (Result) currentClient.request(inv, timeout).get(); 2017-03-24 21:30:48,hostName=,Remote invoke .xxxx error. args:[{"startPoint":{"lat":23.18832,"lng":112.83368000000002,"angle":0
delphi 调用WebService 参数太多
我用<em>delphi</em> <em>调用</em>WebService <em>时</em>,提示参数太多,代码如下:rn CommunityServicePortType = interface(IInvokable)rn ['FE46E171-D92F-D476-0C40-8B9EB51E5590']rnrn function uploadd_grda(const in0: WideString; const in1: WideString; const in2: WideString; const in3: WideString; const in4: WideString; const in5: WideString; const in6: WideString; const in7: WideString; const in8: WideString; const in9: WideString;rn const in10: WideString; const in11: WideString; const in12: WideString; const in13: WideString; const in14: WideString; const in15: WideString; const in16: WideString; const in17: WideString; const in18: WideString;rn const in19: WideString; const in20: WideString; const in21: WideString; const in22: WideString; const in23: WideString; const in24: WideString; const in25: WideString; const in26: WideString; const in27: WideString;rn const in28: WideString; const in29: WideString; const in30: WideString; const in31: WideString; const in32: WideString; const in33: WideString; const in34: WideString; const in35: WideString; const in36: WideString;rn const in37: WideString; const in38: WideString; const in39: WideString; const in40: WideString; const in41: WideString; const in42: WideString; const in43: WideString; const in44: WideString; const in45: WideString;rn const in46: WideString; const in47: WideString; const in48: WideString; const in49: WideString; const in50: WideString; const in51: WideString; const in52: WideString; const in53: WideString; const in54: WideString;rn const in55: WideString; const in56: WideString; const in57: WideString; const in58: WideString; const in59: WideString; const in60: WideString; const in61: WideString; const in62: WideString; const in63: WideString;rn const in64: WideString; const in65: WideString; const in66: WideString; const in67: WideString; const in68: WideString; const in69: WideString; const in70: WideString; const in71: WideString; const in72: WideString;rn const in73: WideString; const in74: WideString; const in75: WideString; const in76: WideString; const in77: WideString; const in78: WideString; const in79: WideString; const in80: WideString; const in81: WideString;rn const in82: WideString; const in83: WideString; const in84: WideString; const in85: WideString; const in86: WideString; const in87: WideString; const in88: WideString; const in89: WideString; const in90: WideString;rn const in91: WideString; const in92: WideString; const in93: WideString; const in94: WideString; const in95: WideString; const in96: WideString; const in97: WideString; const in98: WideString; const in99: WideString;rn const in100: WideString; const in101: WideString; const in102: WideString; const in103: WideString; const in104: WideString; const in105: WideString; const in106: WideString; const in107: WideString; const in108: WideString;rn const in109: WideString; const in110: WideString): Integer; stdcall;rnrn提示的<em>错</em>误为:“Too many parameters in method uploadd_grda",但是编译可以通过,但是运行报<em>错</em>rnrn各位大峡,救命啊
***********Delphi调用Java的WebService的问题.急........
我用Java写了个WS,部署在JBoss 4.2上面,WS使用的style是RPC的,符合Delphi7支持的标准.rn 但为什么只要WS有参数传入的情况下.我的Delphi客户就无法<em>调用</em>?报的<em>错</em>是没有传入需要的参数.rn PS:我在WS方面使用的是String类型.D7客户端用的是WideString.rn 求解...分不够可另外贴加!
如何截获 TOpenPictureDialog预览
在TOpenPictureDialog中选中某些<em>错</em>误格式的图片<em>时</em>,有可能会<em>抛</em>出类似:JPEG error #53的<em>错</em>误。这些<em>错</em>误全是英文的,用户无法理解的<em>错</em>误。请问大家,有没有办法截获这类<em>错</em>误呢?
Delphi开发和调用webservice
Delphi开发和<em>调用</em>的<em>webservice</em>Delphi开发和<em>调用</em>的<em>webservice</em>Delphi开发和<em>调用</em>的<em>webservice</em>Delphi开发和<em>调用</em>的<em>webservice</em>Delphi开发和<em>调用</em>的<em>webservice</em>
delphi webservice调用
做的英汉互译小工具,用<em>webservice</em>实现,请不要嘲笑,谢谢!
delphi 如何调用webservice
<em>webservice</em>是用<em>delphi</em>写的,代码如下:rn [WebMethod]rn public XmlDataDocument select()rn rn rn DBOperator conn = DBOperator.Instance("");rn conn.Open();rn DataTable dt = conn.Execute("select * from test");rn dt.TableName = "fff";rn DataSet ds = new DataSet("table");rn ds.Tables.Add(dt);rn XmlDataDocument xl = new XmlDataDocument(ds);rn return xl;rn rn请问如何用<em>delphi</em>来<em>调用</em>这个返回的记录集合,我掉老报<em>错</em>
Delphi中Webservice的调用
rn 一个WS在被<em>调用</em><em>时</em>,必须知道其WSDL文档的URL地址,但我自己写的rn WS,WS在IIS服务器上运行,写程序<em>时</em>候,WS的 URL就是开发<em>时</em>候用到的IIS地址了,但是因为我们是做成产品发布的,IIS的地址是在 客户安装后才确定IP的(这个<em>时</em>候我可以让客户输入后在把它保存起来),那么我编写程序的<em>时</em>候该怎么来处理<em>调用</em>WS<em>时</em>候的URL问题呢!rn
delphi 调用webservice
程序里面<em>调用</em>了一个<em>webservice</em> 经常在数据上传下载的<em>时</em>候网络超<em>时</em>。弹出报<em>错</em>框,程序就断了。怎样能判断网络超<em>时</em>并重新去连接。让程序一直进行下去。
delphi 调用webservice
最近用了<em>delphi</em><em>调用</em><em>webservice</em>,主要代码如下:rnprocedure sendMsgThread;rnvarrnWSResult,row: Integer;rn WSIServer: MessageService;//<em>webservice</em>对象rn m,msgcount:integer;rn mytime:TDateTime;rn submittime:string;rnrnbeginrn mytime:=Now;rn DateTimeToString(submitTime,'yyyy-MM-dd HH:mm:ss',mytime);rn WSIServer:= GetMessageService(true,'',nil); //获取<em>webservice</em>rn WSResult:= WSIServer.sendMessage(GetUserName(),GetUserPass(),tphoneString,tcontent,submitTime,tmsgType); //<em>调用</em><em>webservice</em>里面的方法rn if WSResult = -3 thenrn beginrn Application.MessageBox(PChar(发送失败),'发送提示',MB_OK);rn endrn else if WSResult =0 thenrn beginrn Application.MessageBox(PChar('发送成功'),'发送提示',MB_OK);rn end;rn end; rnrn以上程序用了一段<em>时</em>间,暂<em>时</em>没发现什么问题,不过在这里有就个问题想请教大虾一下:rn1 当我程序运行结束的<em>时</em>候,<em>webservice</em>对象 WSIServer要不要释放掉,如果要,要怎么释放?rn2 以上程序只是实现了一次的提交,但我需要重复提交多次的<em>时</em>候,是不是只需要循环地调rn用这个方法:WSResult:= WSIServer.sendMessage(GetUserName(),GetUserPass(),tphoneString,tcontent,submitTime,tmsgType); 还是需要做什么处理? rn请大侠们帮忙看下,谢谢!
Delphi 调用WebService 出
1.新建一个App, 放上一个button, listbox, HTTPRIOrn2.新建<em>webservice</em>s -> wsdlInmporter 导入你这个网站的Wsdl 让程序知道<em>调用</em>规则rn 不出意外会生成个WeatherWebService.pas ,主窗体引用它rn http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdlrnrn3.设置HTTPRIO的 port, service, wsdlLocation 会下拉出来rn4.写点代码吧rn //得到支持的地区rnprocedure TForm1.Button1Click(Sender: TObject);rnvarrn AOS,ss: ArrayOfString;rn I: Integer;rnbeginrn AOS := (HTTPRIO1 as WeatherWebServiceSoap).getSupportProvince;rn for I := Low(AOS) to High(AOS) dorn Listbox1.Items.Add(AOS[I]); -- 可以把所有省份列出来rnrn[color=#FF0000]但是使用下面代码,出现<em>错</em>误:[/color]rn -- 取省份下的城市rn ss := (HTTPRIO1 as WeatherWebServiceSoap).getSupportCity('广西')rn -- 取城市的天气rn ss := (HTTPRIO1 as WeatherWebServiceSoap).getWeatherbyCityName('深圳');rnrn---- <em>错</em>误信息为:rnProject Project1.exe raised exception class ERemotableException with message '服务器无法处理请求。 - 未将对象引用设置到对象的实例。'. Process stopped. Use Step or Run to continue.
delphi调用webservice 问题◆
<em>webservice</em>用的是c#(Vs2005)的代码:rn[code=C#]using System;rnusing System.Web;rnusing System.Web.Services;rnusing System.Web.Services.Protocols;rnusing System.Data;rnrn[WebService(Namespace = "http://tempuri.org/")]rn[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]rnpublic class Service : System.Web.Services.WebServicernrn public Service() rn rn //如果使用设计的组件,请取消注释以下行 rn //InitializeComponent(); rn rnrn [WebMethod]rn public int Sub(int a, int b)//两个整数相减rn rn return a - b;rn rn[/code]rnrn下面是自动生成的service.pas:rn[code=Delphi(Pascal)]// ************************************************************************ //rn// The types declared in this file were generated from data read from thern// WSDL File described below:rn// WSDL : http://10.18.1.27/webService/Service.asmx?WSDLrn// Encoding : utf-8rn// Version : 1.0rn// (2009-05-04 13:23:01 - $Revision: 1.9.1.0.1.0.1.9 $)rn// ************************************************************************ //rnrnunit Service;rnrninterfacernrnuses InvokeRegistry, Types, XSBuiltIns;rnrntypernrn // ************************************************************************ //rn // The following types, referred to in the WSDL document are not being representedrn // in this file. They are either aliases[@] of other types represented or were referredrn // to but never[!] declared in the document. The types from the latter categoryrn // typically map to predefined/known XML or Borland types; however, they could also rn // indicate incorrect WSDL documents that failed to declare or import a schema type.rn // ************************************************************************ //rn // !:int - "http://www.w3.org/2001/XMLSchema"rnrnrn // ************************************************************************ //rn // Namespace : http://tempuri.org/rn // soapAction: http://tempuri.org/Subrn // transport : http://schemas.xmlsoap.org/soap/httprn // binding : ServiceSoaprn // service : Servicern // port : ServiceSoaprn // URL : http://10.18.1.27/webService/Service.asmxrn // ************************************************************************ //rn ServiceSoap = interface(IInvokable)rn ['77573149-9C57-FA51-F11F-EFD527C91BD9']rn function Sub(const a: Integer; const b: Integer): Integer; stdcall;rn end;rnrnfunction GetServiceSoap(UseWSDL: Boolean=System.False; Addr: string=''): ServiceSoap;rnrnrnimplementationrn uses SOAPHTTPClient;rnrnfunction GetServiceSoap(UseWSDL: Boolean; Addr: string): ServiceSoap;rnconstrn defWSDL = 'http://10.18.1.27/webService/Service.asmx?WSDL';rn defURL = 'http://10.18.1.27/webService/Service.asmx';rn defSvc = 'Service';rn defPrt = 'ServiceSoap';rnvarrn RIO: THTTPRIO;rnbeginrn Result := nil;rn if (Addr = '') thenrn beginrn if UseWSDL thenrn Addr := defWSDLrn elsern Addr := defURL;rn end;rn RIO := THTTPRIO.Create(nil);rn tryrn if UseWSDL thenrn beginrn RIO.WSDLLocation := Addr;rn RIO.Service := defSvc;rn RIO.Port := defPrt;rn end elsern RIO.URL := Addr;rn Result := (RIO as ServiceSoap);rn finallyrn if Result = nil thenrn RIO.Free;rn end;rnend;rnrnrninitializationrn InvRegistry.RegisterInterface(TypeInfo(ServiceSoap), 'http://tempuri.org/', 'utf-8');rn InvRegistry.RegisterDefaultSOAPAction(TypeInfo(ServiceSoap), 'http://tempuri.org/Sub');rnrnend. [/code]rnrn<em>调用</em>web服务的代码:rn[code=Delphi(Pascal)]unit Unit1;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs,StdCtrls, DB, ADODB,InvokeRegistry, Rio, SOAPHTTPClient ;rnrntypern TForm1 = class(TForm)rn Button1: TButton;rn procedure Button1Click(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Form1: TForm1;rnrnimplementationrnrnuses Service;rnrn$R *.dfmrnrnprocedure TForm1.Button1Click(Sender: TObject);rnvarrn rtn: Integer;rn ws: ServiceSoap;rnbeginrn ws:= GetServiceSoap(false,'');rn rtn:= ws.Sub(13,5);//计算13减去5的结果rn showmessage('返回结果: '+ intToStr(rtn));rnend;rnrnend.[/code]rnrn比较费解的是返回的结果一直“0”,但用C#<em>调用</em><em>时</em>没有问题的rn请高手帮忙,问题出在哪里?
??Delphi调用WebService的问题??
<em>delphi</em><em>调用</em>服务器的Web Service,rn服务器端使用.Net开发,rn因为涉及到验证问题,rn所以,rn<em>delphi</em>首先会<em>调用</em>web service的login方法,rn服务器验证通过后,rn会将对应的Session中的Session["logined"]置为true,rn下次<em>delphi</em>再来<em>调用</em>其他方法<em>时</em>,rn会检查该对应的Session的Sessin["logined"]值,rn仍为false则不予执行。rn.Net服务器端中因为声明了[WebMethod(EnableSession=true0]故可以支持Session,rn我在客户端用Thttprio<em>调用</em><em>时</em>,rn发现第二次<em>调用</em>其他方法<em>时</em>,rn对于.Net服务器而言,此<em>时</em>产生的Session与login<em>时</em>的Session为同一个,rn难道THttpRio控件会自动维持连接状态?rn如果是,rn那如何取出该状态呢?rn对于.Net开发的客户端而言,rn在引用该WebService<em>时</em>,rn可以通过CookieContainer来维护连接状态,rnDelphi有类似的机制吗?
delphi调用Https的webservice
之前一直使用THTTPRIO<em>调用</em>C#写的http的<em>webservice</em>,现在要换成https的<em>webservice</em>,网上查了资料用TIdHTTPt和TIdSSLIOHandlerSocket实现,具体用法不清楚,请各位大侠帮帮忙,谢谢!rnprocedure TForm1.Button1Click(Sender: TObject);rnbeginrn HTTPRIO1.WSDLLocation:='http://192.168.1.151/JYYWXTService/Service.asmx?wsdl';rn HTTPRIO1.HTTPWebNode.UseUTF8InHeader:=true;rn HTTPRIO1.Service:='JYYWXTService';rn HTTPRIO1.Port:='JYYWXTServiceSoap';rn SaveServe:= HTTPRIO1 as JYYWXTServiceSoap;rn Memo1.Lines.Add(SaveServe.UploadData('21010117113000001','18C55','B1,B2,B3,'));// UploadData接口函数rnend;rnrn现在换成了“https://192.168.1.151/JYYWXTService/Service.asmx?wsd”不知道怎么<em>调用</em>UploadData了.
delphi 调用webservice 序列化
<em>delphi</em> <em>调用</em><em>webservice</em><em>时</em>,可能没有序列化,出现如下<em>错</em>误:rn '' is not a vaild integer value,操作正常,那么请问高手,如何在<em>delphi</em>实现rn序列,java里倒是有序列类
delphi关于webservice调用
请问一下,原来用:http://122.125.128.80:8011/Service.asmx?wsdl做<em>webservice</em>的服务是好的,我现在把122.125.128.80:8011这个地址做了个域名解析:http://xhpt.sssid.cn/Service.asmx?wsdl后<em>delphi</em>在做wsdl importer向导<em>时</em>提示<em>错</em>误:unable to load wsdl file/locationrn请问是什么问题?大家帮着看看是哪里<em>错</em>了。用网页访问http://xhpt.sssid.cn/是可以打开WEBSERVICE服务页面的。
delphi调用webservice
如果<em>webservice</em>返回值为null,如果不为空的话,<em>调用</em>正常rn<em>delphi</em>报<em>错</em>如下:rnSOAP Response Packet: element matching function return not found, received ""
Delphi调用webservice传输数据
Webservice是用C#写的,返回的数据是用下面的方法返回的:rnrnDataSetSurrogate dss = new DataSetSurrogate(DS);rnBinaryFormatter bf = new BinaryFormatter();rnMemoryStream ms = new MemoryStream();rnbf.Serialize(ms, dss);//将对象或具有指定顶级(根)的对象图形序列化为给定流rnbyte[] buffer = ms.ToArray(); //将流内容写入字节数组rnbyte[] Zipbuffer = Compress(buffer);rnreturn Zipbuffer;rnrnDelphi里不能用啊,返回值是TBypeDynArray,可是报<em>错</em>:"H4sIAAAAAAA……5ZWR+2Ta/jM0vd80vO+aXXf3lN/x/AA2wGrrVOAgA' is not a valid integer valuernrn把Webservice里改成返回DataSet,在Delphi里用TDataSet接收也不行,Delphi<em>调用</em><em>时</em>会报 Access violation at address 00403829 in modulern救命啊!!!!!!!!!!!!!!
Delphi调用webservice例子
这是一个简单的Delphi<em>调用</em>web例子,初学者可以简单参考一下。
delphi 调用 dotnet WebService
最近在做一个项目,以前是用asp.net做的,但是中间要连接很多的控制设备,只好写很多的控件,但是IE选项中又有很多的设置,客户拿到手里老是觉得很别扭,于是想干脆用<em>delphi</em>做一个的客户端应用程序,数据通过.net web service 进行更新,只是实现一些和硬件紧密相关的简单操作。rn现在碰到下列问题,请高手指引:rnrn1.我想在web服务中返回一个.net DataSet数据集,客户端用 ClientDataSet和DBGrid,但是我第次使用都要用Delphi生成一个*.xtr的格式文档,这样不是很麻烦,不知道有没有更智能一点的办法???rnrn2.不知道这样做性能上会不会有什么问题???特别是当我数据从几十万条中一次性选择几千条<em>时</em>。rn我现在处理的办法是先把DataSet存储到服务器的xml文件中(将考虑使用Zip进行压缩后下载)。rnrn3.希望大家给点宝贵意见!谢谢!!!
linux服务器
小弟的服务器是MAS,操作系统是Linux,老是<em>抛</em>一个很奇怪的问题,如果重启服务器在短<em>时</em>间内这个问题就不会出现,但是一天以后又会出同样的问题,而且将读不到数据库中的数据,所有与数据库相关的操作都将失败。具体异如下:rnrnLast packet sent to the server was 1 ms ago.rnrnSTACKTRACE:rnrncom.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: rnrn** BEGIN NESTED EXCEPTION ** rnrnjava.net.SocketExceptionrnMESSAGE: Broken pipernrnSTACKTRACE:rnrnjava.net.SocketException: Broken pipernat java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)rn at java.net.SocketOutputStream.write(SocketOutputStream.java:136)rn at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)rn at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)rn at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2744)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1612)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)rn at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)rn at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1467)rn at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)rn at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)rn at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)rn at org.hibernate.loader.Loader.doQuery(Loader.java:662)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)rn at org.hibernate.loader.Loader.doList(Loader.java:2144)rn at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)rn at org.hibernate.loader.Loader.list(Loader.java:2023)rn at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)rn at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)rn at com.jixin.hibernate.daos.HireMessageDaoImpl.getHireMessage1(HireMessageDaoImpl.java:185)rn at org.apache.jsp.hire_jsp._jspService(hire_jsp.java:92)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.jixin.system.tools.CharEncodingFilter.doFilter(CharEncodingFilter.java:32)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnrnrn** END NESTED EXCEPTION **rnrnrnLast packet sent to the server was 1 ms ago.rn、rn、rn、rn、rn、rn** END NESTED EXCEPTION **rnrnrnorg.hibernate.exception.JDBCConnectionException: could not execute queryrn、rn、rn、rn、rnCaused by: com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error:rnrnrn** BEGIN NESTED EXCEPTION ** rnrncom.mysql.jdbc.CommunicationsExceptionrnMESSAGE: Communications link failure due to underlying exception: rnrn** BEGIN NESTED EXCEPTION ** rnrnrnrnhibernate配置如下rn [code=XML]rn jdbc:mysql://localhost/jixinenterprisewebsite?useUnicode=true&characterEncoding=UTF-8rn rn rn com.mysql.jdbc.Driverrn rn xxxxrn xxxxrn rn org.hibernate.dialect.MySQLDialectrn rn falsern updatern rn threadrn rnrnrn rn org.hibernate.cache.EhCacheProviderrn rn truernrn rn org.hibernate.connection.C3P0ConnectionProviderrn rn 2rn rn falsernrn rn rn 30000rn rn 50rn rn 28000rn 1[/code]rnrnrn使用技术为SSH1rn集成方案如下rnrn[code=Java]public boolean addMessage(String username, String title, String message) rn Session session = null;rn try rn [b]session = HibernateUtils.getSessionFactory().getCurrentSession();[/b] session.beginTransaction();rn Criteria ctr = session.createCriteria(Admin.class);rn Criterion c = Expression.eq("username", username);rn ctr.add(c);rn Admin admin = (Admin) ctr.uniqueResult();rn String name = admin.getName();rn companyMessage.setDate(new Date());rn companyMessage.setMessage(message);rn companyMessage.setName(name);rn companyMessage.setTitle(title);rn session.save(companyMessage);rn session.beginTransaction().commit();rn return true;rnrn catch (Exception e) rn e.printStackTrace();rn session.beginTransaction().rollback();rn return false;rnrn rn [/code]rnrn不知各位是否遇到,什么问题,如何解决,,谢谢
dbcore.cpp
rn我在程序中<em>调用</em>了两次m_pRegRst->Open(),用于查询不同的信息。rn是不是不能两次Open同一个结果集CRecordset* m_pRegRst呢??rn
NullPointerException
package myjava;rnimport java.io.*;rnimport java.awt.*;rnimport java.awt.event.*;rnpublic class FileView extends Frame implements ActionListenerrnrn String directory;rn static TextArea textarea;rn static Panel p;rn static Button openfile;rn static Button close;rn static Frame frame;rn public FileView(String directory,String filename)rn rn super();rn addWindowListener(new WindowAdapter()rn rn public void windowClosing(WindowEvent e)rn rn dispose();rn rn );rn if(directory==null)rn rn File f;rn if((filename!=null)&&(f=new File(filename)).isAbsolute())rn rn directory=f.getParent();rn filename=f.getName();rn rn elsern directory=System.getProperty("user.dir");rn rn this.directory=directory;rn setFile("/E","FileView.java");rn rn public void setFile(String directory,String filename)rn rn if((filename==null)||(filename.length()==0))rn return ;rn File f;rn FileReader in=null;rn tryrn rn f=new File("/","FileView.java");rn in=new FileReader(f);rn char[] buffer=new char[4096];rn int len;rn textarea.setText("");rn while((len=in.read(buffer))!=-1)rn rn String s=new String(buffer,0,len);rn textarea.append(s);rn rn this.setTitle("FileViewer:"+filename);rn textarea.setCaretPosition(0);rn rn catch(IOException e)rn rn textarea.setText(e.getClass().getName()+":"+e.getMessage());rn this.setTitle("FileViewer:"+filename+":I/OException");rn rn finallyrn rn tryrn rn if(in!=null)rn in.close();rn rn catch(IOException e)rn rn rn rn rn rn public void actionPerformed(ActionEvent e)rn rn String cmd=e.getActionCommand();rn if(cmd.equals("OpenFile"))rn rn FileDialog f=new FileDialog(this,"Open File",FileDialog.LOAD);rn f.show();rn directory=f.getDirectory();rn setFile(directory,f.getFile());rn f.dispose();rn rn else if(cmd.equals("close"));rn this.dispose();rn rn public static void main(String[] args)rn rn frame.addWindowListener(new WindowAdapter()rn rn public void windowClosed(WindowEvent e)rn rn System.exit(0);rn rn );rn textarea=new TextArea("",24,80);rn textarea.setFont(new Font("MonoSpaced",Font.PLAIN,12));rn textarea.setEditable(false);rn p=new Panel();rn p.setLayout(new FlowLayout(FlowLayout.RIGHT,10,5));rn Font font=new Font("SansSerif",Font.BOLD,14);rn openfile=new Button("OpenFile");rn close=new Button("Close");rn p.add(openfile);rn p.add(close);rn frame.add("Center",textarea);rn frame.add("South",p);rn frame.setSize(500,400);rn frame.setVisible(true);rn frame.setSize(200,250);rn frame.show();rn rnrnException in thread "main" java.lang.NullPointerExceptionrn at myjava.FileView.main(FileView.java:92)rn注意:E:\FileView.java 使用或覆盖了已过<em>时</em>的 API。rn注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译rn请问问题出在哪里?
Mysql
rn环境:mysql5.1rnlinux6rn语句:rn[code=sql]select a.ID as ID,ifnull(ComplaintsNumbers,'') as ComplaintsNumbers,ifnull(BeenComplaintsNumbers,'') as BeenComplaintsNumbers,ifnull(b.Types,'') as ComplaintsNumbersOperators,ifnull(c.Types,'') as BeenComplaintsNumbersOperators,ifnull(d.Types,'') as ComplaintsNumbersRegion,ifnull(e.Types,'') as BeenComplaintsNumbersRegion,ifnull(ComplaintsContent,'') as ComplaintsContent,ifnull(f.Types,'') as BeenComplaintNumbersNature,ifnull(g.Types,'') as ComplaintHandleStatus,ifnull(ComplaintsTime,'') as ComplaintsTime,ifnull(h.UserName,'') as UserName,ifnull(HandleContent,'') as HandleContent,ifnull(RecvSmsContent,'') as RecvSmsContent,ComplaintHandleStatus as ComplaintHandleStatus from t_complaintsinfos as a left join t_types as b on a.ComplaintsNumbersOperators= b.ID left join t_types as c on a.BeenComplaintsNumbersOperators= c.ID left join t_types as d on a.ComplaintsNumbersRegion= d.ID left join t_types as e on a.BeenComplaintsNumbersRegion= e.ID left join t_types as f on a.BeenComplaintNumbersNature= f.ID left join (select ComplaintsID,ifnull(GROUP_CONCAT(distinct Types),'') as Types from t_complaintshandle as a left join t_types as b on a.HandleStatus=b.ID group by ComplaintsID) as g on a.ID= g.ComplaintsID left join t_userinfos as h on a.UserID= h.ID where a.ID =16[/code]rnrn<em>错</em>误:rnMixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clausernrn语句稍微有点长 大部分都是因为控制ifnull的语句 级联了一张表的好多字段。rn现在只有在Tomcat下的项目报这个<em>错</em>误,在其他的包括navicat或者直接在linux下的mysql操作都没有问题,为什么只在项目里报<em>错</em>呢?rnrn如果哪位大神能帮着优化下语句也很OK。rnrn分实在不多,就那么回事吧
dwr3
Allocate exception for servlet dwrrnorg.xml.sax.SAXException: Failed to resolve: arg0=-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN arg1=http://getahead.org/dwr/dwr30.dtdrn at org.directwebremoting.impl.DTDEntityResolver.resolveEntity(DTDEntityResolver.java:59)rn at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)rn at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)rn at org.directwebremoting.impl.DwrXmlConfigurator.setInputStream(DwrXmlConfigurator.java:132)rn at org.directwebremoting.impl.DwrXmlConfigurator.setServletResourceName(DwrXmlConfigurator.java:87)rn at org.directwebremoting.impl.ContainerUtil.configureFromDefaultDwrXml(ContainerUtil.java:238)rn at org.directwebremoting.impl.ContainerUtil.configureContainerFully(ContainerUtil.java:396)rn at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:77)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Unknown Source)rnrnweb.xmlrn[code=XML]rn rn dwrrn org.directwebremoting.servlet.DwrServletrn rn debugrn falsern rn 1rn rn rn dwrrn /dwr/*rn rn[/code] rnrndwr.xmlrn[code=XML]rnrnrnrn rn 省略rn rnrn[/code]rn弄了一天了,还是不行,请教各位这个<em>错</em>误怎么解决?
求助问题
我想在业务层的<em>错</em>误信息在界面层上显示怎么做呀!哪位大哥帮帮我
问题
我想在页务层出<em>错</em>的,想<em>抛</em>到界面层,要怎么做呀,先谢谢了。
调用webservice
<em>错</em>误信息:rnAxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Serverrn faultSubcode: rn faultString: Error invoking 'com.asiainfo.boss4.<em>webservice</em>.OnBoss4Service.onBoss4Pboss(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: nullrn faultActor: rn faultNode: rn faultDetail: rn http://xml.apache.org/axis/stackTrace:Error invoking 'com.asiainfo.boss4.<em>webservice</em>.OnBoss4Service.onBoss4Pboss(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: nullrn at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)rn at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)rn at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)rn at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at javax.xml.parsers.SAXParser.parse(Unknown Source)rn at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)rn at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)rn at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2784)rn at org.apache.axis.client.Call.invoke(Call.java:2767)rn at org.apache.axis.client.Call.invoke(Call.java:2443)rn at org.apache.axis.client.Call.invoke(Call.java:2366)rn at org.apache.axis.client.Call.invoke(Call.java:1812)rn at com.asiainfo.boss4.<em>webservice</em>.OnBoss4ServiceHttpBindingStub.onBoss4Pboss(OnBoss4ServiceHttpBindingStub.java:435)rn at com.asiainfo.boss4.<em>webservice</em>.WebserviceClient.main(WebserviceClient.java:48)rnrn http://xml.apache.org/axis/hostname:3WS1F5TR5E8QLTKrnrnError invoking 'com.asiainfo.boss4.<em>webservice</em>.OnBoss4Service.onBoss4Pboss(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: nullrn at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)rn at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)rn at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)rn at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at javax.xml.parsers.SAXParser.parse(Unknown Source)rn at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)rn at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)rn at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2784)rn at org.apache.axis.client.Call.invoke(Call.java:2767)rn at org.apache.axis.client.Call.invoke(Call.java:2443)rn at org.apache.axis.client.Call.invoke(Call.java:2366)rn at org.apache.axis.client.Call.invoke(Call.java:1812)rn at com.asiainfo.boss4.<em>webservice</em>.OnBoss4ServiceHttpBindingStub.onBoss4Pboss(OnBoss4ServiceHttpBindingStub.java:435)rn at com.asiainfo.boss4.<em>webservice</em>.WebserviceClient.main(WebserviceClient.java:48)rn
调用webservice出问题了。
<em>调用</em><em>时</em>报异常:rnAxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Server.userExceptionrn faultSubcode: rn faultString: java.lang.NullPointerExceptionrn faultActor: rn faultNode: rn faultDetail: rn http://xml.apache.org/axis/stackTrace: java.lang.NullPointerExceptionrn at java.util.Hashtable.put(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)rn at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2583)rn at org.apache.axis.client.Call.invoke(Call.java:2553)rn at org.apache.axis.client.Call.invoke(Call.java:2248)rn at org.apache.axis.client.Call.invoke(Call.java:2171)rn at org.apache.axis.client.Call.invoke(Call.java:1691)rn at org.tempuri.Service1SoapStub.helloWorld(Service1SoapStub.java:110)rn at org.tempuri.Client.main(Client.java:25)rnrnrnjava.lang.NullPointerExceptionrn at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)rn at org.apache.axis.client.Call.invoke(Call.java:2251)rn at org.apache.axis.client.Call.invoke(Call.java:2171)rn at org.apache.axis.client.Call.invoke(Call.java:1691)rn at org.tempuri.Service1SoapStub.helloWorld(Service1SoapStub.java:110)rn at org.tempuri.Client.main(Client.java:25)rnCaused by: java.lang.NullPointerExceptionrn at java.util.Hashtable.put(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)rn at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2583)rn at org.apache.axis.client.Call.invoke(Call.java:2553)rn at org.apache.axis.client.Call.invoke(Call.java:2248)rn ... 4 morernrn请问是什么<em>错</em>误?
调用webservice内存不足
我用vs2005<em>调用</em>java写的<em>webservice</em>(部署在tomcat上,。net程序在iis,同一台服务器)rn结果爆出内存不足,盼解答rn下面的代码是在Page_Load()中<em>调用</em>的rn kmiswebser.PlatformService res = new kmiswebser.PlatformService();rn kmiswebser.CDB12[] rep;rn rn rep = res.getCDB12_CC();rn rn Response.Write(message1);rn if (rep.Length < 1)rn rn Response.Write(" ");rn rn elsern rn Lca1.Text = rep[0].a1;rn Lca2.Text = rep[0].a2;rn Lca3.Text = rep[0].a3;rn Lca4.Text = rep[0].a4;rn Lcc.Text = rep[0].CX;rn Lcf.Text = rep[0].FX;rn Lcd.Text = rep[0].DX;rn Lcl.Text = rep[0].LX;rn rn rep = res.getCDB12_XJ();rn if (rep.Length < 1)rn rn Response.Write(" ");rn rn elsern rn rn Lxa1.Text = rep[0].a1;rn Lxa2.Text = rep[0].a2;rn Lxa3.Text = rep[0].a3;rn Lxa4.Text = rep[0].a4;rn Lxc.Text = rep[0].CX;rn Lxf.Text = rep[0].FX;rn Lxd.Text = rep[0].DX;rn Lxl.Text = rep[0].LX;
delphi调用Java webservice实例
NULL 博文链接:https://longwenbin2008.iteye.com/blog/299543
Delphi调用C# WebService的例子
Delphi<em>调用</em>C# WebService的例子 包括数据结构的访问
Delphi调用Webservice 地址出
我做了一个非常简单的<em>webservice</em>,客户端使用httprio进行<em>调用</em>。结果客户端在绝大多数电脑上运行正常,但在某些机器上(现在发现有几个win2003)运行会报地址<em>错</em>(类似指针越界的<em>错</em>误)。rn hpLogin.URL := 'http://www.happyuu.com/uucgi/uudata.exe/soap/IDataUU';rn id:=10501;rn s:='123456';rn if FDataUU.Login(id,s) then showmessage('ok');rn因为程序非常简单,是否是因为Win2003对Httprio支持不好?但是也不是所有2003都有问题。
delphi调用webservice(C#)问题
我用C#做了个访问数据库,进行存取图片的程序,返回的类型是byte[]数组,现在问题是在Delphi中无法将查询到的图片以流的形式显示在Delphi中的Image控件中,有<em>delphi</em>7和<em>webservice</em>(c#)都会的高手吗?其实主要是<em>delphi</em>的问题,我是新手,麻烦指点哦!
delphi调用webservice代理设置
THTTPRIO增加代理设置代码如下 RIO.HTTPWebNode.Proxy:='192.168.1.1:808'; RIO.HTTPWebNode.UserName:='admin'; RIO.HTTPWebNode.Password:='123';
java调用delphi写的webservice
wsdl:rnhttp://61.154.14.22:8765/ws12580Appoint.dll/wsdl/Iws12580Appointrnrn用php和<em>delphi</em>本身可以。java<em>调用</em>就会出<em>错</em>:rn生成客户端<em>时</em>报<em>错</em>:rn[code=Java]rnaddress:http://61.154.14.22:8765/ws12580Appoint.dll/wsdl/Iws12580Appoint -- com.funo.wcity.app.appoint.service.CityService.findCityToBean1258(CityService.java:84)rnException in thread "main" AxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Server.userExceptionrn faultSubcode: rn faultString: org.xml.sax.SAXException: Bad envelope tag: definitionsrn faultActor: rn faultNode: rn faultDetail: rnhttp://xml.apache.org/axis/stackTrace:org.xml.sax.SAXException: Bad envelope tag: definitionsrn[/code]
Delphi调用VS2005 WebService编码问题
开发环境rn 服务端:VS2005 C#rn 客户端:Delphi2006rnrn************************服务端部份源码************************rn[WebMethod]rnpublic bool UserLogin(string LoginName, string Password)rnrn .... ....rnrnrn**********************客户端********************************rnWSDL Inport 产生的文件rnrn ... ...rnrnfunction GetServiceSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): ServiceSoap;rnconstrn defWSDL = 'http://localhost:1203/WebApp/Service.asmx?WSDL';rn defURL = 'http://localhost:1203/WebApp/Service.asmx';rn defSvc = 'Service';rn defPrt = 'ServiceSoap';rnvarrn RIO: THTTPRIO;rnbeginrn ... ...rn rn RIO.Converter.Options := rn RIO.Converter.Options +[soUTF8InHeader,soUTF8EncodeXML];rn RIO.HTTPWebNode.UseUTF8InHeader:=True;rn rn ... ...rnrnend;rnrninitializationrn ... ...rn InvRegistry.RegisterInvokeOptions(TypeInfo(ServiceSoap), ioDocument);rn ... ...rnend.rnrn ... ...rnrn客户端<em>调用</em>代码rnrn ... ...rnprocedure TLoginForm.btn_OKClick(Sender: TObject);rnvarrn s:ServiceSoap;rnbeginrn s:=GetServiceSoap();rn if s.UserLogin(txt_Loginname.Text,txt_Password.Text) thenrn ShowMessage('登录成功')rn elsern ShowMEssage('登录失败');rnend;rn ... ...rnrnrnrnrn********************问题*********************rnrn按照上面的方法已经解决了,参数传递失败,部分中文乱码问题,但是对于特定的中文如rnUserName:='四 ' 的<em>时</em>候,在服务端接收到的参数为? (注在四后有一个半角空格)rnrn再者 rnrnUserName:='孙逊' 的<em>时</em>候,在客户端会直接报<em>错</em>EDOMParseError. rnrn后来无意中发现 如果在 孙逊后加一个全角的空格,则收到的参数正确.rnrn请问有什么什么方法可以让DELPHI+C# WebService 正常的支持中文呢?rnrnrn
delphi 7 如何调用 webservice?
rt
delphi调用C# WebService 出
C# WebService中的函数rn [WebMethod]rn public string Test_Pro(string vString)rn rn return vString; rn rnrnDelphi中<em>调用</em>为:rnvarrn d:ServiceSoap;rnbeginrn d:=GetServiceSoap();rn Caption:= d.Test_Pro('asdasdasdasd');rnrn但是<em>调用</em>出<em>错</em>,但是VS调试又是正确的,不晓得怎么办?
Delphi调用Java的WebService报
合作伙伴写了一些处理逻辑在WebService中,wsdl地址为:https://114.255.245.64:8080/Crm/services/clienttrade?wsdlrn 我用<em>delphi</em>新建一个WebService的WSDL Import,生成一个文件后,<em>调用</em>报<em>错</em>,谁能帮忙:rn <em>调用</em>:rn procedure TForm1.btn2Click(Sender: TObject);rnvarrn x: THTTPRIO;rnrn InterfaceVariable: clienttradePortType;rnbeginrn X :=THTTPRio.Create(Application);rn x.HTTPWebNode.UseUTF8InHeader:=true;rn x.WSDLLocation:= 'https://114.255.245.64:8080/Crm/services/clienttrade?wsdl';rn InterfaceVariable := X as clienttradePortType;rn showmessage(InterfaceVariable.SayHello);rnend;rn报<em>错</em>信息有<em>时</em>是“证书作者不支持。。”、“Empty Document"rn郁闷。rnrn另外,在WSDL Import导入的<em>时</em>候,点击Next有<em>时</em>会出现:rn Unable to load WSDL File/Location: https://114.255.245.64:8080/Crm/services/clienttrade?wsdl. Error [灾难性故障].rn
delphi webservice 调用
project project3.exe raised exception class ERemotableException with message 'access violation at address 004037B in module'project2.exe'.read of address 00000003'.process stopped.use step or run to continue.
delphi 调用 webservice问题,求助!
<em>webservice</em> 服务器端是由java做的.客户端用<em>delphi</em>来写.rn现在的问题是用<em>delphi</em>的new-other-items-><em>webservice</em>->wsdl import 向导 这种方法不行.rn后来我用的idhttp控件的post来发送:rn IdHTTP1.Post(StrURL,Param,RStream)rn//StrURL:WSDL网址rn//Param:客户端参数rn//RStream:服务器端返回参数rn可是服务器返回参数是<em>错</em>误的.检查了下WSDL网址和客户端参数都是对的,为什么服务器端返回来的数据<em>时</em><em>错</em>误的呢,是不是采用post的方法不对,还是有其他什么方法,来动态连接<em>webservice</em>?rn谢谢!
Delphi调用Https Webservice的问题
工具是Delphi2006rnrn现状,使用WSDL Importer产生文件并<em>调用</em>相关方法,以前做成应用程序,使用正常,数据接收,以及发送数据到服务器都没有问题,由于项目需要,将原来的应用程序改成windows服务程序,用http的<em>webservice</em>进行测试一切正常,但是把<em>webservice</em>地址切换成https的就不行了,rn返回<em>错</em>误信息:rn服务器返回的信息无效或不可识别 - URL:http://(这里是<em>webservice</em>地址,把https解析成http了) - SOAPAction:""rnrn请问这是什么原因,或者可以用其它什么方式<em>调用</em>https的<em>webservice</em>
delphi开发的webservice调用问题
用<em>delphi</em>开发的<em>webservice</em>,由于这方面是新手,只是脑补了一天就写出来的东西。新建项目<em>时</em>选择的是<em>webservice</em>s下的Soap Server Application,然后在里面只是实现了一个简单的测试方法。发布到iis后,在浏览器打开http://localhost/WebServiceTest/后显示如下:rnlocalhost - /WebServiceTest/rnrn--------------------------------------------------------------------------------rn[To Parent Directory]rnrn 2013年10月8日 15:25 2038272 Project1.dllrn点击project1.dll后就报<em>错</em>了:rnrn<em>错</em>误摘要 rnHTTP <em>错</em>误 404.3 - Not Foundrnrn由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加 MIME 映射。rnrnrn详细<em>错</em>误信息 rnrnrn模块rnStaticFileModule rnrn通知rnExecuteRequestHandler rnrn处理程序rnStaticFile rnrn<em>错</em>误代码rn0x80070032 rnrnrnrn请求的 URLrnhttp://localhost:80/WebServiceTest/Project1.dll rnrn物理路径rnC:\inetpub\wwwroot\WebServiceTest\Project1.dll rnrn登录方法rn匿名 rnrn登录用户rn匿名 rnrn然后在我自己写的客户端中<em>调用</em>也是报<em>错</em>的。不知道有没有这方面的专家,给帮忙看看。rn我使用的开发工具是<em>delphi</em>7,发布到iis7.5,操作系统是win7 旗舰版,64位。
delphi 调用C# WebService的问题.
比如我<em>调用</em>一个简单的方法rnstring HelloWorld(string st)rnrn return st+"Hello World";rnrn我传一个string参数给它<em>时</em>.返回还是"Hello World"rn而且我还试了另一个方法.rnint(int a,int b)rnrn return a+b;rnrn结果我无论传什么值进去结果都是0;rn这应当是两种语言类型之间的不匹配.大家帮帮忙.
Delphi 调用C#编写的WebService
我在用Delphi<em>调用</em>C#编写的WebService的<em>时</em>候。WebService中的方法无法接收到Delphi传入方法中的参数。我用的是THTTPRIO控件。用Delphi的WSDL导入工具导入的WebService。下面是导入文件。rnrn// ************************************************************************ //rn// The types declared in this file were generated from data read from thern// WSDL File described below:rn// WSDL : http://localhost/ServiceTest/Service.asmx?wsdlrn// Encoding : utf-8rn// Version : 1.0rn// (2005-12-17 1:49:46 - 1.33.2.5)rn// ************************************************************************ //rnrnunit Service;rnrninterfacernrnuses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;rnrntypernrn // ************************************************************************ //rn // The following types, referred to in the WSDL document are not being representedrn // in this file. They are either aliases[@] of other types represented or were referredrn // to but never[!] declared in the document. The types from the latter categoryrn // typically map to predefined/known XML or Borland types; however, they could also rn // indicate incorrect WSDL documents that failed to declare or import a schema type.rn // ************************************************************************ //rn // !:string - "http://www.w3.org/2001/XMLSchema"rnrnrnrn // ************************************************************************ //rn // Namespace : http://tempuri.org/rn // soapAction: http://tempuri.org/HelloWorldrn // transport : http://schemas.xmlsoap.org/soap/httprn // binding : ServiceSoaprn // service : Servicern // port : ServiceSoaprn // URL : http://localhost/ServiceTest/Service.asmxrn // ************************************************************************ //rn ServiceSoap = interface(IInvokable)rn ['77573149-9C57-FA51-F11F-EFD527C91BD9']rn function HelloWorld(const user: WideString): WideString; stdcall;rn end;rnrnfunction GetServiceSoap(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): ServiceSoap;rnrnrnimplementationrnrnfunction GetServiceSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): ServiceSoap;rnconstrn defWSDL = 'http://localhost/ServiceTest/Service.asmx?wsdl';rn defURL = 'http://localhost/ServiceTest/Service.asmx';rn defSvc = 'Service';rn defPrt = 'ServiceSoap';rnvarrn RIO: THTTPRIO;rnbeginrn Result := nil;rn if (Addr = '') thenrn beginrn if UseWSDL thenrn Addr := defWSDLrn elsern Addr := defURL;rn end;rn if HTTPRIO = nil thenrn RIO := THTTPRIO.Create(nil)rn elsern RIO := HTTPRIO;rn tryrn Result := (RIO as ServiceSoap);rn if UseWSDL thenrn beginrn RIO.WSDLLocation := Addr;rn RIO.Service := defSvc;rn RIO.Port := defPrt;rn end elsern RIO.URL := Addr;rn finallyrn if (Result = nil) and (HTTPRIO = nil) thenrn RIO.Free;rn end;rnend;rnrnrninitializationrn InvRegistry.RegisterInterface(TypeInfo(ServiceSoap), 'http://tempuri.org/', 'utf-8');rn InvRegistry.RegisterDefaultSOAPAction(TypeInfo(ServiceSoap), 'http://tempuri.org/HelloWorld');rnrnend.
java调用delphiwebservice问题?
我用<em>delphi</em>做客户段直接用TSoapConection+TClientDataSet就可以从<em>webservice</em>中取得数据~!rn那我用java怎样取得<em>webservice</em>提供的数据啊?rnrn
Delphi 调用webservice简单例子
1、打开<em>delphi</em>,File-&amp;gt;New-&amp;gt;Other-&amp;gt;选<em>webservice</em>-&amp;gt;WSDL importer 如下所示2、点【ok】,弹出输入WSDL 的URL地址框,输入WSDL地址,然后【Next】3、点【Next】之后,Delphi将自动生成ServerClass.pas单元4、接下来我们测试这个WS5、得出以下结果...
实现带的素数判断
用C++编写一段代码,判断一个数是否为素数,含有<em>错</em>误处理的一个程序
这个怎么解决?
获取指定对象的对象的属性及值rnrn private void btnClassInfo_Click(object sender, EventArgs e)rn rnrn Item itemtest = new Item();rnrn itemtest.AfterSaleId = 12;rn itemtest.ApproveStatus = "ApproveStatus"; rnrn SetObjPropValueToCtrls(itemtest);rn rnrn //显示对象的属性及值rn private void SetObjPropValueToCtrls(object objprop)rn rn foreach (System.Reflection.PropertyInfo info in typeof(Item).GetProperties()) //1、正常运行rn //foreach (System.Reflection.PropertyInfo info in typeof(objprop.GetType().ToString()).GetProperties()) //2、编译不通过rn rnrn rtbProperty.Text = rtbProperty.Text + "Name: " + info.Name +rn " ; Value: " + info.GetValue(objprop, null) +rn " ; Type: " + info.GetType().ToString() + "\n"; //3、Type类型全部为:System.Reflection.RuntimePropertyInforn rn rnrnrn我查询了一下:C# typeof() 和 GetType()区别。rnrn1、typeof(x)中的x,必须是具体的类名、类型名称等,不可以是变量名称。 rn2、GetType()方法继承自Object,所以C#中任何对象都具有GetType()方法,它的作用和typeof()相同,返回Type类型的当前对象的类型。 rnrn比如有这样一个变量i: rnInt32 i = new Int32(); rnrni.GetType()返回值是Int32的类型,但是无法使用typeof(i),因为i是一个变量,如果要使用typeof(),则只能:typeof(Int32),返回的同样是Int32的类型。rnrnrn很明显上面的写法是不对的,但是不知道怎么改正!rn
javascript 系统常见
主要有以下6种: EvalError: raised when an error occurs executing code in eval()   (在使用eval方法出现异常<em>时</em>才会报此<em>错</em>误) RangeError: raised when a numeric variable or parameter is outside of its valid range   (当数字变量或者参数超出了...
ELK删除索引
自己搭了一套ELK日志平台。rn思路很简单,从多个服务器上部署logstash,统计日志。rnrnoutputrnrn elasticsearch rn hosts => ["10.10.1.166:9200"]rn index => "union_openapi-%+YYYY-MM-dd"rn rnrn设置index每天都新建一个索引。rnrnElasticsearch主机上,data目录下,每天都会产生新的索引文档union_openapi-%+YYYY-MM-dd。rn我只想保留近三天的文档,势必要对以往的文档做删除操作,于是写了一个shell定<em>时</em>脚本删除三天前的文档目录。rnrn删除 文档后,Elasticsearch的日志里面<em>抛</em><em>错</em>rnfailed to execute operation for shard [[dj_openapi_front-2016-03-26][4]rnElasticsearchException[failed to refresh store stats]; nested: NoSuchFileException[/home/work/log_system/elasticsearch-2.2.0/data/log_system/nodes/0/indices/dj_openapi_front-2016-03-26/4/index];rnrnrn
高分求助mod_jk.log
用apache+tomcat做集群部署,看了下mod_jk.log,<em>抛</em>有以下信息rnrn[Fri Aug 28 10:40:44.796 2009] [2228:3804] [info] mod_jk.c (2608): Aborting connection for worker=workerlbrn[Fri Aug 28 10:43:14.078 2009] [2228:3532] [info] jk_ajp_common.c (1788): Writing to client aborted or client network problemsrn[Fri Aug 28 10:43:14.078 2009] [2228:3532] [info] jk_ajp_common.c (2447): (worker2) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1)rn[Fri Aug 28 10:43:14.093 2009] [2228:3532] [info] jk_lb_worker.c (1384): service failed, worker worker2 is in local error statern[Fri Aug 28 10:43:14.093 2009] [2228:3532] [info] jk_lb_worker.c (1403): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance.rn[Fri Aug 28 10:43:14.093 2009] [2228:3532] [info] mod_jk.c (2608): Aborting connection for worker=workerlbrn[Fri Aug 28 10:50:30.031 2009] [2228:216] [info] jk_ajp_common.c (1788): Writing to client aborted or client network problemsrn[Fri Aug 28 10:50:30.031 2009] [2228:216] [info] jk_ajp_common.c (2447): (worker2) sending request to tomcat failed (unrecoverable), because of client write error (attempt=1)rn[Fri Aug 28 10:50:30.031 2009] [2228:216] [info] jk_lb_worker.c (1384): service failed, worker worker2 is in local error statern[Fri Aug 28 10:50:30.031 2009] [2228:216] [info] jk_lb_worker.c (1403): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance.rn[Fri Aug 28 10:50:30.031 2009] [2228:216] [info] mod_jk.c (2608): Aborting connection for worker=workerlbrnrn貌似好像说worker2出<em>错</em>了,但是实际上,我看了下worker1、worker2 都在正常工作,请问上面的是什么<em>错</em>误?谢谢rnrn
在线求助:TOMCAT
项目分两部分,前台和后台的过滤器基本相同,后台布置到tomcat里启动没有问题,前台布置了启动就<em>抛</em><em>错</em>,帮我看看什么<em>错</em>误啊 rn2006-10-24 9:19:17 org.apache.catalina.core.AprLifecycleListener lifecycleEvent rn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_07\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\jdk15\bin rn2006-10-24 9:19:18 org.apache.coyote.http11.Http11BaseProtocol init rn信息: Initializing Coyote HTTP/1.1 on http-8080 rn2006-10-24 9:19:18 org.apache.catalina.startup.Catalina load rn信息: Initialization processed in 2609 ms rn2006-10-24 9:19:18 org.apache.catalina.core.StandardService start rn信息: Starting service Catalina rn2006-10-24 9:19:18 org.apache.catalina.core.StandardEngine start rn信息: Starting Servlet Engine: Apache Tomcat/5.5.17 rn2006-10-24 9:19:18 org.apache.catalina.core.StandardHost start rn信息: XML validation disabled rn2006-10-24 9:19:20 org.apache.catalina.core.StandardContext filterStart rn严重: Exception starting filter encodingFilter rnjava.lang.ClassNotFoundException: filter.EncodingFilter rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) rnat org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:209) rnat org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) rnat org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:77) rnat org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600) rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:4193) rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:718) rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) rnat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) rnat org.apache.catalina.core.StandardService.start(StandardService.java:450) rnat org.apache.catalina.core.StandardServer.start(StandardServer.java:709) rnat org.apache.catalina.startup.Catalina.start(Catalina.java:551) rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) rnat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) rnat java.lang.reflect.Method.invoke(Unknown Source) rnat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) rnat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) rn2006-10-24 9:19:20 org.apache.catalina.core.StandardContext filterStart rn严重: Exception starting filter sessionfilter rnjava.lang.ClassNotFoundException: filter.SessionFilter rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) rnat org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:209) rnat org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) rnat org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:77) rnat org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600) rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:4193) rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:718) rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) rnat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) rnat org.apache.catalina.core.StandardService.start(StandardService.java:450) rnat org.apache.catalina.core.StandardServer.start(StandardServer.java:709) rnat org.apache.catalina.startup.Catalina.start(Catalina.java:551) rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) rnat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) rnat java.lang.reflect.Method.invoke(Unknown Source) rnat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) rnat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) rn2006-10-24 9:19:20 org.apache.catalina.core.StandardContext start rn严重: Error filterStart rn2006-10-24 9:19:20 org.apache.catalina.core.StandardContext start rn严重: Context [] startup failed due to previous errors rn2006-10-24 9:19:21 org.apache.catalina.core.ApplicationContext log rn信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] rn2006-10-24 9:19:21 org.apache.catalina.core.ApplicationContext log rn信息: ContextListener: contextInitialized() rn2006-10-24 9:19:21 org.apache.catalina.core.ApplicationContext log rn信息: SessionListener: contextInitialized() rn2006-10-24 9:19:22 org.apache.catalina.core.ApplicationContext log rn信息: ContextListener: contextInitialized() rn2006-10-24 9:19:22 org.apache.catalina.core.ApplicationContext log rn信息: SessionListener: contextInitialized() rn2006-10-24 9:19:23 org.apache.coyote.http11.Http11BaseProtocol start rn信息: Starting Coyote HTTP/1.1 on http-8080 rn2006-10-24 9:19:24 org.apache.jk.common.ChannelSocket init rn信息: JK: ajp13 listening on /0.0.0.0:8009 rn2006-10-24 9:19:24 org.apache.jk.server.JkMain start rn信息: Jk running ID=0 time=0/172 config=null rn2006-10-24 9:19:24 org.apache.catalina.storeconfig.StoreLoader load rn信息: Find registry server-registry.xml at classpath resource rn2006-10-24 9:19:24 org.apache.catalina.startup.Catalina start rn信息: Server startup in 6453 ms
MASBroken pipe
小弟的服务器是MAS,操作系统是Linux,老是<em>抛</em>一个很奇怪的问题,如果重启服务器在短<em>时</em>间内这个问题就不会出现,但是一天以后又会出同样的问题,而且将读不到数据库中的数据,所有与数据库相关的操作都将失败。具体异如下:rnrnLast packet sent to the server was 1 ms ago.rnrnSTACKTRACE:rnrncom.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: rnrn** BEGIN NESTED EXCEPTION ** rnrnjava.net.SocketExceptionrnMESSAGE: Broken pipernrnSTACKTRACE:rnrnjava.net.SocketException: Broken pipernat java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)rn at java.net.SocketOutputStream.write(SocketOutputStream.java:136)rn at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)rn at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)rn at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2744)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1612)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)rn at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)rn at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1467)rn at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)rn at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)rn at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)rn at org.hibernate.loader.Loader.doQuery(Loader.java:662)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)rn at org.hibernate.loader.Loader.doList(Loader.java:2144)rn at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)rn at org.hibernate.loader.Loader.list(Loader.java:2023)rn at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)rn at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)rn at com.jixin.hibernate.daos.HireMessageDaoImpl.getHireMessage1(HireMessageDaoImpl.java:185)rn at org.apache.jsp.hire_jsp._jspService(hire_jsp.java:92)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.jixin.system.tools.CharEncodingFilter.doFilter(CharEncodingFilter.java:32)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnrnrn** END NESTED EXCEPTION **rnrnrnLast packet sent to the server was 1 ms ago.rn、rn、rn、rn、rn、rn** END NESTED EXCEPTION **rnrnrnorg.hibernate.exception.JDBCConnectionException: could not execute queryrn、rn、rn、rn、rnCaused by: com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error:rnrnrn** BEGIN NESTED EXCEPTION ** rnrncom.mysql.jdbc.CommunicationsExceptionrnMESSAGE: Communications link failure due to underlying exception: rnrn** BEGIN NESTED EXCEPTION ** rnrnrnrnhibernate配置如下rnXML codern jdbc:mysql://localhost/jixinenterprisewebsite?useUnicode=true&characterEncoding=UTF-8rn rn rn com.mysql.jdbc.Driverrn rn xxxxrn xxxxrn rn org.hibernate.dialect.MySQLDialectrn rn falsern updatern rn threadrn rnrnrn rn org.hibernate.cache.EhCacheProviderrn rn truernrn rn org.hibernate.connection.C3P0ConnectionProviderrn rn 2rn rn falsernrn rn rn 30000rn rn 50rn rn 28000rn 1rnrnrnrn使用技术为SSH1rn集成方案如下rnrnJava codepublic boolean addMessage(String username, String title, String message) rn Session session = null;rn try rn [b]session = HibernateUtils.getSessionFactory().getCurrentSession();[/b] session.beginTransaction();rn Criteria ctr = session.createCriteria(Admin.class);rn Criterion c = Expression.eq("username", username);rn ctr.add(c);rn Admin admin = (Admin) ctr.uniqueResult();rn String name = admin.getName();rn companyMessage.setDate(new Date());rn companyMessage.setMessage(message);rn companyMessage.setName(name);rn companyMessage.setTitle(title);rn session.save(companyMessage);rn session.beginTransaction().commit();rn return true;rnrn catch (Exception e) rn e.printStackTrace();rn session.beginTransaction().rollback();rn return false;rnrn rn rnrnrn不知各位是否遇到,什么问题,如何解决,,谢谢
使用PageHelper插件
因为项目中用到了PageHelper插件,但是在启动运行<em>时</em>,<em>抛</em><em>错</em>: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\workspace\taotao-manager\taotao-ma...
winform中调用webservice候出的????
本机进行编译的<em>时</em>候没有问题,在作成了安装程序,在客户端安装之后出现以下的<em>错</em>误信息?????rnrn是什么原因引起的???????????????//rnrnrnrnrnrn有关<em>调用</em>实<em>时</em> (JIT) 调试而不是此对话框的详细信息,rn请参阅此消息的结尾。rnrn************** 异常文本 **************rnSystem.Net.WebException: 请求因 HTTP 状态 404 失败:Not Found。rn at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream)rn at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)rn at ufdata.cad097.UfData.ReadUf(String strsql, Int32 flag)rn at ufdata.initialize.DataGrid_DataBind()rn at ufdata.initialize.initialize_Load(Object sender, EventArgs e)rn at System.Windows.Forms.Form.OnLoad(EventArgs e)rn at System.Windows.Forms.Form.OnCreateControl()rn at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)rn at System.Windows.Forms.Control.CreateControl()rn at System.Windows.Forms.Control.WmShowWindow(Message& m)rn at System.Windows.Forms.Control.WndProc(Message& m)rn at System.Windows.Forms.ScrollableControl.WndProc(Message& m)rn at System.Windows.Forms.ContainerControl.WndProc(Message& m)rn at System.Windows.Forms.Form.WmShowWindow(Message& m)rn at System.Windows.Forms.Form.WndProc(Message& m)rn at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)rn at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)rn at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn************** 已加载的程序集 **************rnmscorlibrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3705.0rn 基本代码:file:///c:/winnt/microsoft.net/framework/v1.0.3705/mscorlib.dllrn----------------------------------------rnufdatarn 程序集版本:1.0.1542.25317rn Win32 版本:1.0.1542.25317rn 基本代码:file:///C:/Program%20Files/hse/Install/ufdata.exern----------------------------------------rnmscorlib.resourcesrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3300.0rn 基本代码:file:///c:/winnt/assembly/gac/mscorlib.resources/1.0.3300.0_zh-chs_b77a5c561934e089/mscorlib.resources.dllrn----------------------------------------rnSystem.Windows.Formsrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3705.0rn 基本代码:file:///c:/winnt/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dllrn----------------------------------------rnSystemrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3705.0rn 基本代码:file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dllrn----------------------------------------rnSystem.Web.Servicesrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3705.0rn 基本代码:file:///c:/winnt/assembly/gac/system.web.services/1.0.3300.0__b03f5f7f11d50a3a/system.web.services.dllrn----------------------------------------rnSystem.Datarn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3705.0rn 基本代码:file:///c:/winnt/assembly/gac/system.data/1.0.3300.0__b77a5c561934e089/system.data.dllrn----------------------------------------rnSystem.Xmlrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3705.0rn 基本代码:file:///c:/winnt/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system.xml.dllrn----------------------------------------rnSystem.Webrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3705.0rn 基本代码:file:///c:/winnt/assembly/gac/system.web/1.0.3300.0__b03f5f7f11d50a3a/system.web.dllrn----------------------------------------rnga5kr6bdrn 程序集版本:0.0.0.0rn Win32 版本:1.0.3705.0rn 基本代码:file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dllrn----------------------------------------rnSystem.Drawingrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3705.0rn 基本代码:file:///c:/winnt/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dllrn----------------------------------------rnCrystalDecisions.Windows.Formsrn 程序集版本:9.1.3300.0rn Win32 版本:9.1.9370.0rn 基本代码:file:///c:/winnt/assembly/gac/crystaldecisions.windows.forms/9.1.3300.0__692fbea5521e1304/crystaldecisions.windows.forms.dllrn----------------------------------------rnCrystalDecisions.Sharedrn 程序集版本:9.1.3300.0rn Win32 版本:9.1.9360.0rn 基本代码:file:///c:/winnt/assembly/gac/crystaldecisions.shared/9.1.3300.0__692fbea5521e1304/crystaldecisions.shared.dllrn----------------------------------------rnSystem.resourcesrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3300.0rn 基本代码:file:///c:/winnt/assembly/gac/system.resources/1.0.3300.0_zh-chs_b77a5c561934e089/system.resources.dllrn----------------------------------------rnSystem.Web.Services.resourcesrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3300.0rn 基本代码:file:///c:/winnt/assembly/gac/system.web.services.resources/1.0.3300.0_zh-chs_b03f5f7f11d50a3a/system.web.services.resources.dllrn----------------------------------------rnSystem.Windows.Forms.resourcesrn 程序集版本:1.0.3300.0rn Win32 版本:1.0.3300.0rn 基本代码:file:///c:/winnt/assembly/gac/system.windows.forms.resources/1.0.3300.0_zh-chs_b77a5c561934e089/system.windows.forms.resources.dllrn----------------------------------------rnrn************** JIT 调试 **************rn若要启用实<em>时</em> (JIT) 调试,此rn应用程序或计算机的配置文件 (machine.config) 的 rn system.windows.forms 节中必须设置 jitDebugging 值。rn编译应用程序<em>时</em>还必须启用rn调试。rnrn例如:rnrnrn rnrnrn启用 JIT 调试后,任何未处理的异常rn将被发送到此计算机上注册的 JIT 调试器,rn而不是由此对话框处理。rnrn
PB调用WEBSERVICE出现HTTP 417
查了资料,如果是.NET开发的话, 需要在<em>调用</em>前,加上这么一句话: System.Net.ServicePointManager.Expect100Continue = false;rnrn问题来了, PB里怎么加上这个代码?rn
gsoap调用WebService自定义类型
问题:使用gsoap<em>调用</em>WebService<em>时</em>,如果参数是自定义的类,如何处理?rn最好能给个Demo。rn代码:rn[code=C/C++]rn TestHttpBinding service;rn _ns1__SaveImgTmp saveIn;rn _ns1__SaveImgTmpResponse saveOut; rn service.__ns1__SaveImgTmp(&saveIn,&saveOut);rn[/code]rnrn问题:如何初始化_ns1__SaveImgTmp类。rnrnC++确实让人郁闷,用C#和Java都能正常<em>调用</em>这个WebService。
javascript调用webservice
用javascript<em>调用</em>web service<em>时</em>弹出"Soap not available"或"ClientSoap not available"<em>错</em>误,有哪位xdjm知道什么原因吗?紧急求助~~~
android调用webservice的疑问
rn最近在做的项目需要连接第三方的数据库查询信息rnrn想着用<em>webservice</em>试试rnrn在网上找了一些例子,其中rnrn[code=Java] // 命名空间rn String nameSpace = "http://tempuri.org/";rn // <em>调用</em>的方法名称rn String methodName = "AndroidTest";rn String endPoint = "http://192.168.1.188:88/androidws/service1.asmx";rn String soapAction = "http://tempuri.org/AndroidTest";rn // 指定WebService的命名空间和<em>调用</em>的方法名[/code]rnrnrn命名空间已经找到了rn但endpoint找不到具体的链接地址。。。。。rn我想求助下大家,这个endpoint(<em>webservice</em>的url)在哪边找到的[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img]
调用webservice进行身份验证
本实例是<em>webservice</em>在匿名验证下需要进行身份验证。
客户端调用webservice
<em>错</em>误提示:DocumentElement http://schemas.xmlsoap.org/soap/envelope/:Envelope expected, :html foundrn请问这是什么问题,哪里出了问题么?因为不是每次都出这个<em>错</em>误。但出现的概率挺大。
调用webservice遇到的困难
我们在做一个项目,是spring和webwork做的。现在要在这个项目中给别的公司提供<em>webservice</em>接口,请问客户端<em>调用</em><em>webservice</em><em>时</em>是否还会要求登陆呢?
我做了个SSH框架,一旦添加WEBSERVICE服务启动TOMCAT...
我是用Eclipse添加<em>webservice</em>支持的,但是一启动TOMCAT就<em>抛</em><em>错</em>,不添加WEBSERVICE就不<em>抛</em><em>错</em>...谁帮我看下,谢谢,以下是异常....rnException sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanDefinitionStoreException: Line 5 in XML document from ServletContext resource [/WEB-INF/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".rnorg.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".rn at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)rn at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)rn at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:222)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269)rn at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn我的SPRING是2.5的
delphi调用webService:ESOAPHTTPException(如何解决)
出<em>错</em>信息:Project Project1.exe raised exception class ESOAPHTTPException with message'The connection with the server was terminated abnormally -URL:http://192.168.2.20:8088/-SOAPAction'rnrnrn请问如何解决?
delphi调用webservice(C#)如何获取soapheader
可以<em>调用</em>对方的LOGON方法,之后对方在soapheader里加了GUID,返回格式如下rn- rn- rn 12837c15-881a-46d6-9cf3-adb1ab87c44c rn rn rn- rnrn读取段的代码如下rn首先声明了一个soapheader类rntypern SecuritySoapHeader=Class(TSOAPHeader)rn privatern FUniqueID:WideString;rn publishedrn property UniqueID :WideString read FUniqueID Write FUniqueID;rnend;rnprocedure GetSoapHearder;//获取soapheaderrnvarrn aIntf1: WSEmpSecuritySoap;//<em>webservice</em>服务rn Headers: ISOAPHeaders;rn H: SecuritySoapHeader;rnbeginrn aIntf1 := GetWSEmpSecuritySoap(false,'',HTTPRIO1);rn aIntf1.Logon('a',b');rn Headers := (aIntf1 as ISOAPHeaders);rn Headers.Get(SecuritySoapHeader, TSoapHeader(H)); //先获取SoapHeaderrn --跟踪发现 每次H=nil rn ShowMessage(H.FUniqueID);rn end;rnrn请问是否写法不对,导致不能正确获取到soapheader的信息?在线等回应.
Delphi调用C#写的WebService中文乱码的问题?
C#中WebMethod代码如下:rn[WebMethod]rnpublic string Test(string strSend)rnrn return strSend;rnrnrn可在Delphi下<em>调用</em>该WebService<em>时</em>,strSend如果带有中文的话,就返回的乱码。rn比如strSend="中国" 返回却是??rnrn这个应该怎么解决呢?
关于DELPHI调用WEBSERVICE,调试正常,正常执行报
我用DELPHI<em>调用</em>WEBSERVICE,在调试期间是正常的,但另外运行的<em>时</em>候就报<em>错</em>,rn见图:rn调试运行<em>时</em>,点登陆:rn[img=https://img-bbs.csdn.net/upload/201807/06/1530848804_484104.jpg][/img]rnrn独立运行<em>时</em>,点登陆:rn[img=https://img-bbs.csdn.net/upload/201807/06/1530848837_333209.jpg][/img]rnrn真是是怪了。单独运行<em>时</em>还要涉及到什么环境吗?rn
Delphi客户端调用VS2005 webservice参数传递的问题!!
刚好在做的一个产品的升级,服务器端改用vs2005做重新开发,所以<em>webservice</em>需要用vs2005重写(原来是用soaptoolkit开发的),客户端还是用<em>delphi</em>7开发的,用THTTPRIO 组件<em>调用</em> ,改写完成后,发现很多方法的参数无法传递到<em>webservice</em>(结果返回正确),起先怀疑是<em>delphi</em><em>调用</em>的问题 ,在调试后发现<em>delphi</em><em>调用</em><em>时</em>,发送的soap包是对的,参数是确是发出去了,只是vs2005在收到数据后,没有正确解析soap包,传递的参数丢失,再仔细比较后发现,vs2005新写的<em>webservice</em>的wsdl中,所有的参数类型和原来的不一样,和<em>delphi</em><em>调用</em><em>时</em>soap包中的类型也不一相,原来string 都是 xsd空间下的,如xsd:string,xsd:boolean等,现在都为s:string,s:boolean,应该是数据类型不匹配导致了参数的无法正确传递,rn 请问各各xdjm,在vs2005的webservie中是否可以设置soap传递是的数据类型,如设置成xsd,如想正确<em>调用</em>,还有什么更简单办法!!rn
如何在Delphi调用后台的WebService加入数字证书
我是用Delphi作为客户端<em>调用</em>Java开发的WebService服务,现在的问题是如何实现rn我在<em>调用</em>后台的WebService的<em>时</em>候,在传输过程中也附带数字证书一起传过去,防止rn在传输的过程中数据被截获,请各位大侠帮帮忙........rn
Delphi调用C#写的WebService中文乱码的问题?在线等
C#中WebMethod代码如下:rn[WebMethod]rnpublic string Test(string strSend)rnrn return strSend;rnrnrn可在Delphi下<em>调用</em>该WebService<em>时</em>,strSend如果带有中文的话,就返回的乱码。rn比如strSend="中国" 返回却是??rnrn这个应该怎么解决呢?
java调用.net的webserviceSAXNotRecognizedException异常??请高手帮帮忙!!
代码:rn String endpoint = "http://localhost/WebServiceTest/Service1.asmx";rn Service service = new Service(); rn Call call = (Call) service.createCall();rn call.setTargetEndpointAddress( new java.net.URL(endpoint) );rn call.setOperationName(new QName("http://tempuri.org/","HelloWorld"));rn call.setReturnType(XMLType.XSD_STRING); rn String res = (String) call.invoke( new Object[] );rn System.out.println( res );rnrn异常:rnException in thread "main" AxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Server.userExceptionrn faultSubcode: rn faultString: org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/properties/lexical-handlerrn faultActor: rn faultNode: rn faultDetail: rn http://xml.apache.org/axis/stackTrace: org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/properties/lexical-handlerrn at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:155)rn at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:241)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2583)rn at org.apache.axis.client.Call.invoke(Call.java:2553)rn at org.apache.axis.client.Call.invoke(Call.java:2248)rn at org.apache.axis.client.Call.invoke(Call.java:2171)rn at org.apache.axis.client.Call.invoke(Call.java:1691)rn at com.dawen.cooperate.TestClient.main(TestClient.java:25)rnrnrnorg.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/properties/lexical-handlerrn at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2583)rn at org.apache.axis.client.Call.invoke(Call.java:2553)rn at org.apache.axis.client.Call.invoke(Call.java:2248)rn at org.apache.axis.client.Call.invoke(Call.java:2171)rn at org.apache.axis.client.Call.invoke(Call.java:1691)rn at com.dawen.cooperate.TestClient.main(TestClient.java:25)rnCaused by: org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/properties/lexical-handlerrn at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:155)rn at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:241)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)rn ... 7 morern
dubbo 重启.优雅停机方案解决or
2017-03-30 14:22:02 673,hostName=.com,Remote invoke com..liangjian.order.api.OrderRemotingService@.getByOrderId error. args:[414162054], resp:dubbo return null object., time:1174,Flag=6445603358dca406
delphi webservice
<em>delphi</em> <em>webservice</em>一个很不<em>错</em>的例子,指点你的迷津
急,求大神帮帮忙,关于C#调用delphi的dll文件问题
[DllImport(_fileDll, EntryPoint = "JX102R_Read_Card",rnCharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]rnpublic static extern int JX102R_Read_Card(ref int ReaderNo, ref StringBuilder CardNo, ref StringBuilder clientIP);rnrnint readerNo = 0;rnStringBuilder cardNo = new StringBuilder();rnStringBuilder clientIP = new StringBuilder();rnint num = JX102R_Read_Card(ref readerNo, ref cardNo, ref clientIP);rnrn<em>调用</em>的<em>时</em>候<em>抛</em><em>错</em>:C# 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。rnrn在Pb上面是能成功<em>调用</em>的
webservice 如何调用webservice
我现在有两个<em>webservice</em>rn因为项目功能需要,我需要一个<em>webservice</em>中<em>调用</em>;另外一个<em>webservice</em>完成其功能。。rn但是按照传统的Invoke方法。。老是报:程序集中不存在xxx服务。。rnrn比较着急,在线等!!!有经验给讲讲,,不慎感谢!
WebService和调用WebService的方法
WebService的实现方法和<em>调用</em>方法。
webservice 调用java webservice
我刚学<em>webservice</em>,现在要做的是在我的<em>webservice</em>实现(.asmx)中再<em>调用</em>另外的java <em>webservice</em>请问如何实现,我用web引用<em>时</em>提示命名空间不对,或出<em>错</em>???还有两天<em>时</em>间了。我用winform可以正常<em>调用</em>java <em>webservice</em>.多谢了
delphi 调用 C 的 __stdcall函数 抱
大家好,菜鸟又有问题了,我用c++写的dll <em>delphi</em><em>调用</em><em>时</em>一启动就抱找不到地址....rn请各位知情的大大帮帮我哈!好象c++自己都用不了__stdcall这种函数,好像VB可以..迷盲了..rn[c]rnextern "C" __declspec(dllexport) void __stdcall geti(int &i);rnrn i = 34234;rnrnrn[<em>delphi</em><em>调用</em>]rnprocedure geti(var i:integer);stdcall;external'test.dll'rn...rnvar tm :integer;rn...rngeti(tm)rnrn一启动就报找不到地址....晕
Delphi调用C#的Webservice返回Dataset
<em>delphi</em>客户端<em>调用</em>c#开发的Webservice操作数据库。-----------------------------
Delphi调用C#编写的WebService返回空值
用Delphi 7.0编写程序<em>调用</em>C#编写的WebService,调试老半天发现接收到的结果都是空值。 有个可能的原因是,WebService可能是用VS2005编写的,VS2005 默认是用的 SoapDocumentProtocol而Delphi 是使用的 SoapRpcProtocol。 这会造成所以客户端传过去的字符串变成null,需要在生成的接口单元的initialization
delphi调用 webservice 提示Unmarshalling Error
<em>错</em>误描述:rn unexpected element (uri:"http://impl.order.api.service.ac.jd.com",local:"venderSign").expected elements arernrnrn对这块小弟不太熟悉,求高手解答。rn// ************************************************************************ //rn// The types declared in this file were generated from data read from thern// WSDL File described below:rn// WSDL : http://220.231.59.70/services/services/orderSearchService?wsdlrn// Encoding : UTF-8rn// Codegen : [wfDebug,wfUseSerializerClassForAttrs]rn// Version : 1.0rn// (2011-05-27 16:50:06 - 1.33.2.5)rn// ************************************************************************ //rnrnunit orderSearchService1;rnrninterfacernrnuses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;rnrntypernrn // ************************************************************************ //rn // The following types, referred to in the WSDL document are not being representedrn // in this file. They are either aliases[@] of other types represented or were referredrn // to but never[!] declared in the document. The types from the latter categoryrn // typically map to predefined/known XML or Borland types; however, they could also rn // indicate incorrect WSDL documents that failed to declare or import a schema type.rn // ************************************************************************ //rn // !:string - "http://www.w3.org/2001/XMLSchema"rn // !:long - "http://www.w3.org/2001/XMLSchema"rn // !:int - "http://www.w3.org/2001/XMLSchema"rn // !:boolean - "http://www.w3.org/2001/XMLSchema"rnrn apiResult = class; "http://impl.order.api.service.ac.jd.com/" rn consignee = class; "http://impl.order.api.service.ac.jd.com/" rn ware = class; "http://impl.order.api.service.ac.jd.com/" rn order = class; "http://impl.order.api.service.ac.jd.com/" rn apiOrderQueryDetail = class; "http://impl.order.api.service.ac.jd.com/" rnrnrnrn // ************************************************************************ //rn // Namespace : http://impl.order.api.service.ac.jd.com/rn // ************************************************************************ //rn apiResult = class(TRemotable)rn privatern FchineseErrCode: WideString;rn FenglishErrCode: WideString;rn FnumberCode: Integer;rn Fsuccess: Boolean;rn publishedrn property chineseErrCode: WideString read FchineseErrCode write FchineseErrCode;rn property englishErrCode: WideString read FenglishErrCode write FenglishErrCode;rn property numberCode: Integer read FnumberCode write FnumberCode;rn property success: Boolean read Fsuccess write Fsuccess;rn end;rnrnrnrn // ************************************************************************ //rn // Namespace : http://impl.order.api.service.ac.jd.com/rn // ************************************************************************ //rn consignee = class(TRemotable)rn privatern FuserAddress: WideString;rn FuserEmail: WideString;rn FuserMobilephone: WideString;rn FuserName: WideString;rn FuserPost: WideString;rn FuserTelephone: WideString;rn publishedrn property userAddress: WideString read FuserAddress write FuserAddress;rn property userEmail: WideString read FuserEmail write FuserEmail;rn property userMobilephone: WideString read FuserMobilephone write FuserMobilephone;rn property userName: WideString read FuserName write FuserName;rn property userPost: WideString read FuserPost write FuserPost;rn property userTelephone: WideString read FuserTelephone write FuserTelephone;rn end;rnrn // ************************************************************************ //rn // Namespace : http://impl.order.api.service.ac.jd.com/rn // ************************************************************************ //rn ware = class(TRemotable)rn privatern FgiftPoint: WideString;rn FjdPrice: WideString;rn FproductNo: WideString;rn FskuId: WideString;rn FskuOutId: WideString;rn FwareDiscountFee: WideString;rn FwareId: WideString;rn FwareName: WideString;rn FwareOutId: WideString;rn FwareTotal: WideString;rn publishedrn property giftPoint: WideString read FgiftPoint write FgiftPoint;rn property jdPrice: WideString read FjdPrice write FjdPrice;rn property productNo: WideString read FproductNo write FproductNo;rn property skuId: WideString read FskuId write FskuId;rn property skuOutId: WideString read FskuOutId write FskuOutId;rn property wareDiscountFee: WideString read FwareDiscountFee write FwareDiscountFee;rn property wareId: WideString read FwareId write FwareId;rn property wareName: WideString read FwareName write FwareName;rn property wareOutId: WideString read FwareOutId write FwareOutId;rn property wareTotal: WideString read FwareTotal write FwareTotal;rn end;rnrn // ************************************************************************ //rn // Namespace : http://impl.order.api.service.ac.jd.com/rn // ************************************************************************ //rn order = class(TRemotable)rn privatern FbuyerOrderRemark: WideString;rn FconsigneeInfo: consignee;rn FdeliveryDateRemark: WideString;rn FfactFreightPrice: WideString;rn FfreightPrice: WideString;rn FinvoiceInfo: WideString;rn ForderEndTime: WideString;rn ForderId: WideString;rn ForderStartTime: WideString;rn ForderState: WideString;rn ForderTotalPrice: WideString;rn FpayType: WideString;rn Fpayment: WideString;rn FsellerOrderRemark: WideString;rn FtotalDiscountFee: WideString;rn FvenderId: WideString;rn FwareInfos: ware;rn FwareTotalPrice: WideString;rn publicrn destructor Destroy; override;rn publishedrn property buyerOrderRemark: WideString read FbuyerOrderRemark write FbuyerOrderRemark;rn property consigneeInfo: consignee read FconsigneeInfo write FconsigneeInfo;rn property deliveryDateRemark: WideString read FdeliveryDateRemark write FdeliveryDateRemark;rn property factFreightPrice: WideString read FfactFreightPrice write FfactFreightPrice;rn property freightPrice: WideString read FfreightPrice write FfreightPrice;rn property invoiceInfo: WideString read FinvoiceInfo write FinvoiceInfo;rn property orderEndTime: WideString read ForderEndTime write ForderEndTime;rn property orderId: WideString read ForderId write ForderId;rn property orderStartTime: WideString read ForderStartTime write ForderStartTime;rn property orderState: WideString read ForderState write ForderState;rn property orderTotalPrice: WideString read ForderTotalPrice write ForderTotalPrice;rn property payType: WideString read FpayType write FpayType;rn property payment: WideString read Fpayment write Fpayment;rn property sellerOrderRemark: WideString read FsellerOrderRemark write FsellerOrderRemark;rn property totalDiscountFee: WideString read FtotalDiscountFee write FtotalDiscountFee;rn property venderId: WideString read FvenderId write FvenderId;rn property wareInfos: ware read FwareInfos write FwareInfos;rn property wareTotalPrice: WideString read FwareTotalPrice write FwareTotalPrice;rn end;rnrn // ************************************************************************ //rn // Namespace : http://impl.order.api.service.ac.jd.com/rn // ************************************************************************ //rn apiOrderQueryDetail = class(TRemotable)rn privatern FapiResult: apiResult;rn ForderTotal: Integer;rn Forders: order;rn publicrn destructor Destroy; override;rn publishedrn property apiResult: apiResult read FapiResult write FapiResult;rn property orderTotal: Integer read ForderTotal write ForderTotal;rn property orders: order read Forders write Forders;rn end;rn // ************************************************************************ //rn // Namespace : http://impl.order.api.service.ac.jd.com/rn // transport : http://schemas.xmlsoap.org/soap/httprn // style : documentrn // binding : OrderSearchServiceImplServiceSoapBindingrn // service : OrderSearchServiceImplServicern // port : OrderSearchServiceImplPortrn // URL : http://220.231.59.70/services/services/orderSearchServicern // ************************************************************************ //rn OrderSearchService = interface(IInvokable)rn ['03213F39-BBCF-B9D2-2684-8ADEB3D880BD']rn function searchOrderInfoByOrderId(const venderSign: WideString; const tradeNo: WideString; const venderId: Int64; const orderId: WideString; const optionalFields: WideString): apiOrderQueryDetail; stdcall;rn function searchOrderInfo(const venderSign: WideString; const tradeNo: WideString; const venderId: Int64; const startDate: WideString; const endDate: WideString; const orderState: WideString; const page: WideString; const pageSize: WideString; const optionalFields: WideString): apiOrderQueryDetail; stdcall;rn end;rnrnfunction GetOrderSearchService(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): OrderSearchService;rnimplementationrnrn
一个Delphi调用C#开发的WebService的问题
最近在做一个数据接口,对方是用C#做的WebService接口,之前都一切正常,但最近对方接口升级之后,我处理一个对象<em>时</em>发生异常。rn故障现象:rn为一个TXSDecimal类型的对象后,在<em>调用</em>其交易函数<em>时</em>报<em>错</em>。rnSystem.FormatException: 该字符串未被识别为有效的 DateTime。rn 在 System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)rn 在 System.DateTime.Parse(String s)rn 在 WS.ServicePrsesent.WriteQD2(ValidateInfoClass Ol010, QDInfoClass[] O10OO0)rnrnrn我的代码如下:rnQDINFOS[i].happentime := TXSDateTime.Create;rnQDINFOS[i].happentime := DateTimeToXSDateTime(FieldByName('rq').AsDateTime);rnrn谁能知道,这是什么原因??
delphi客户端如何调用webservice中的数组
<em>delphi</em>客户端如何<em>调用</em><em>webservice</em>中的一个字符串数组rnrn哪位能给个例子?
用Delphi调用Magento的Webservice,总出
[code=PHP]rnlogin('apiuser', 'apiuser');rnrn rn$newProductData = array(rnrn 'name' => 'name of product',rnrn 'short_description' => 'short description',rnrn 'description' => 'description',rnrn 'price' => 12.05rnrn);rn rn $proxy->call($sessionId, 'product.create', array('simple', 38, 'sku_of_product', $newProductData));rn rn?>rn[/code]rn[color=#FF0000]翻译成Delphi,有什么不对??总是提示rn rnProject Project1.exe raised exception class EOleException with message '对于 '' 名称空间,发生名称空间冲突。'. Process stopped. Use Step or Run to continue.rn rnrnrn[/color]rn[code=Delphi(Pascal)]rnvarrn proxy:Mage_Api_Model_Server_HandlerPortType;rn sessionID:WideString;rn test :Variant;rnrnbeginrnrn proxy:= HTTPRIO1 as Mage_Api_Model_Server_HandlerPortType;rn tryrn tryrn sessionID:= proxy.login('apiuser','apiuser');rnrn test:=VarArrayCreate([0,3], varVariant);rn rn test[0] := 'simple';rn test[1] := 38;rn test[2] := 'sku_of_product';rn test[3] := VarArrayOf(['name of product','short description','description',12.05]);rn proxy.call(sessionID, 'product.create', test);rn exceptrn on E:Exception Dorn beginrn ShowMessage(E.Message);rn end;rn end;rn finallyrn proxy:=nil;rn end;rnend;rn[/code]
Delphi调用NetBeans6编写的WebService问题。
以下是WebService代码rn[code=Java]rnpackage myWeb;rnrnimport javax.jws.WebMethod;rnimport javax.jws.WebParam;rnimport javax.jws.WebService;rnrn/**rn *rn * @author Administratorrn */rn@WebService()rnpublic class NewWebService rnrn/**rn * 试验用Delphi从WebService中读出字符串。rn */rn @WebMethod(operationName = "GetUserName")rn public String GetUserName(@WebParam(name = "pStr") String pStr) rn //TODO 在此处编写实现代码:rn return "OK" + pStr;rn rnrn rnrn[/code]rn我在Delphi中初始化一个Ole 的 MsSoap3.0<em>调用</em>WebService下面是代码。rn[code=Delphi(Pascal)]rnvarrn lUrl: String;rnbeginrn lUrl := 'http://localhost:8080/WebApplication1/NewWebServiceService?WSDL';rn mSystemWS := CreateOleObject('MSSOAP.SoapClient30');rn mSystemWS.ClientProperty('ConnectorProgID') := 'MSSOAP.WinInetConnector30';rn mSystemWS.MSSoapInit(lUrl, 'NewWebServiceService', 'NewWebServicePort', '');rn mSystemWS.ConnectorProperty('EndPointURL') := lUrl;rnShowMessage(mSystemWS.GetUserName('NO'));rn[/code]rn初始化过去了。到ShowMessage()<em>时</em>提示参数<em>错</em>误!rnrnClient:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057: 参数不正确。rnrn - Client:Unspecified client error. HRESULT=0x80070057: 参数不正确。.rn不知是何原因,我用此方法<em>调用</em>C#的WebService没有任何问题啊。rn请搞手们批点,非常感谢。
delphi调用WebService有问题,求救!
我用java做了个<em>webservice</em>。有一个方法中传入的对象中有一个list属性,rn这是用wsdl importer导入后生成的我的对象:rn[code=Delphi(Pascal)]rnStudent = class(TRemotable)rn privatern //省略rn publishedrn property id: WideString Index (IS_OPTN or IS_UNQL) read Getid write Setid stored id_Specified;rn property name: WideString Index (IS_OPTN or IS_UNQL) read Getname write Setname stored name_Specified;rn //这个属性在java中是list,<em>delphi</em>把它用动态数组处理rn property parentsList: Array_Of_Parent Index (IS_OPTN or IS_UNBD or IS_NLBL or IS_UNQL) read GetparentList write SetparentList stored parentList_Specified;rn end;rn[/code]rn执行<em>调用</em><em>时</em>,id、name能传过去,而parentsList传不过去。我用工具看了一下传过去的xml,其中一段内容是这样的:rn idrn Temprerern rn 1rn extend1rn rn rn 1rn extend1rn rn可以看出来,这两个item 本应该为parentList,不知道<em>delphi</em>怎么把它弄成了item,请高手指教怎么改?谢谢!rn
关于delphi调用C#编写的webservice的问题。
<em>webservice</em>的方法是这样的rn[WebMethod]rnpublic string SP_NoQuery(string SpName, string ParaValues, ref string RetVals)rnrn<em>delphi</em>生成的接口是这样的rnfunction SP_NoQuery(const SpName: WideString; const ParaValues: WideString; var RetVals: WideString): WideString; stdcall;rnrn<em>调用</em>的<em>时</em>候出现以下<em>错</em>误:rnSOAP Response Packet: result element expected, received "1CK-20130809-00009"rnrn没有ref参数的Webservice方法<em>调用</em>都没有问题的,就是使用了ref参数的方法出<em>错</em>。
高分求解!delphi调用.net webservice
<em>delphi</em>做一个查询 返回一个dataset,将dataset 传给.net <em>webservice</em> 中的一个方法(.net方法参数为.net dataset)rn现在就是不知道怎么将<em>delphi</em> 的dataset 传给<em>webservice</em>中的dataset 我知道需要转化xml 具体怎么做请各位指教rn500分 ,要一个能运行的例子!<em>delphi</em>查询数据库的代码最好全部手写(本人<em>delphi</em>新手)!并有中文注释!rn正确运行立即结分!rngeruger@163.com rnqq:18858290 请注名:<em>delphi</em>帮助rnrn谢谢各位了
delphi调用webservice方法一直出,求助!
<em>webservice</em>参数转递为数组类型的!rn// ************************************************************************ //rn// The types declared in this file were generated from data read from thern// WSDL File described below:rn// WSDL : D:\example\<em>delphi</em><em>调用</em>webserver\SynMESService.wsdlrn// Encoding : utf-8rn// Version : 1.0rn// (2010-8-12 9:18:57 - 1.33.2.5)rn// ************************************************************************ //rnrnunit SynMESService;rnrninterfacernrnuses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;rnrntypernrn // ************************************************************************ //rn // The following types, referred to in the WSDL document are not being representedrn // in this file. They are either aliases[@] of other types represented or were referredrn // to but never[!] declared in the document. The types from the latter categoryrn // typically map to predefined/known XML or Borland types; however, they could also rn // indicate incorrect WSDL documents that failed to declare or import a schema type.rn // ************************************************************************ //rn // !:string - "http://www.w3.org/2001/XMLSchema"rnrn GISN = class; "http://tempuri.org/" rn GISNReturnInfor = class; "http://tempuri.org/" rnrnrnrn // ************************************************************************ //rn // Namespace : http://tempuri.org/rn // ************************************************************************ //rn GISN = class(TRemotable)rn privatern FSerialNumber: WideString;rn FMaterialNumber: WideString;rn FSpecialStockIndicator: WideString;rn FCustomerAccountNumber: WideString;rn FSalesOrderNumber: WideString;rn FSalesOrderItem: WideString;rn FProductionOrderNumber: WideString;rn FPurchaseOrder: WideString;rn FPurchaseOrderItem: WideString;rn FStatus: WideString;rn FInventoryStatus: WideString;rn FSNCreateBy: WideString;rn FLastUpdateBy: WideString;rn FBuffer1: WideString;rn FBuffer2: WideString;rn FBuffer3: WideString;rn FBuffer4: WideString;rn FBuffer5: WideString;rn FRemark: WideString;rn FCreateDate: WideString;rn FCreatedBy: WideString;rn FLastUpdateDate: WideString;rn FLastUpdatedBy: WideString;rn publishedrn property SerialNumber: WideString read FSerialNumber write FSerialNumber;rn property MaterialNumber: WideString read FMaterialNumber write FMaterialNumber;rn property SpecialStockIndicator: WideString read FSpecialStockIndicator write FSpecialStockIndicator;rn property CustomerAccountNumber: WideString read FCustomerAccountNumber write FCustomerAccountNumber;rn property SalesOrderNumber: WideString read FSalesOrderNumber write FSalesOrderNumber;rn property SalesOrderItem: WideString read FSalesOrderItem write FSalesOrderItem;rn property ProductionOrderNumber: WideString read FProductionOrderNumber write FProductionOrderNumber;rn property PurchaseOrder: WideString read FPurchaseOrder write FPurchaseOrder;rn property PurchaseOrderItem: WideString read FPurchaseOrderItem write FPurchaseOrderItem;rn property Status: WideString read FStatus write FStatus;rn property InventoryStatus: WideString read FInventoryStatus write FInventoryStatus;rn property SNCreateBy: WideString read FSNCreateBy write FSNCreateBy;rn property LastUpdateBy: WideString read FLastUpdateBy write FLastUpdateBy;rn property Buffer1: WideString read FBuffer1 write FBuffer1;rn property Buffer2: WideString read FBuffer2 write FBuffer2;rn property Buffer3: WideString read FBuffer3 write FBuffer3;rn property Buffer4: WideString read FBuffer4 write FBuffer4;rn property Buffer5: WideString read FBuffer5 write FBuffer5;rn property Remark: WideString read FRemark write FRemark;rn property CreateDate: WideString read FCreateDate write FCreateDate;rn property CreatedBy: WideString read FCreatedBy write FCreatedBy;rn property LastUpdateDate: WideString read FLastUpdateDate write FLastUpdateDate;rn property LastUpdatedBy: WideString read FLastUpdatedBy write FLastUpdatedBy;rn end;rnrn ArrayOfGISN = array of GISN; "http://tempuri.org/" rnrnrn // ************************************************************************ //rn // Namespace : http://tempuri.org/rn // ************************************************************************ //rn GISNReturnInfor = class(TRemotable)rn privatern FSuccessFlag: WideString;rn FErrorInfor: WideString;rn FSNCreateBy: WideString;rn FLastUpdateBy: WideString;rn FBuffer1: WideString;rn FBuffer2: WideString;rn FBuffer3: WideString;rn FBuffer4: WideString;rn FBuffer5: WideString;rn FRemark: WideString;rn publishedrn property SuccessFlag: WideString read FSuccessFlag write FSuccessFlag;rn property ErrorInfor: WideString read FErrorInfor write FErrorInfor;rn property SNCreateBy: WideString read FSNCreateBy write FSNCreateBy;rn property LastUpdateBy: WideString read FLastUpdateBy write FLastUpdateBy;rn property Buffer1: WideString read FBuffer1 write FBuffer1;rn property Buffer2: WideString read FBuffer2 write FBuffer2;rn property Buffer3: WideString read FBuffer3 write FBuffer3;rn property Buffer4: WideString read FBuffer4 write FBuffer4;rn property Buffer5: WideString read FBuffer5 write FBuffer5;rn property Remark: WideString read FRemark write FRemark;rn end;rnrnrn // ************************************************************************ //rn // Namespace : http://tempuri.org/rn // soapAction: http://tempuri.org/%operationName%rn // transport : http://schemas.xmlsoap.org/soap/httprn // binding : SynMESServiceSoaprn // service : SynMESServicern // port : SynMESServiceSoaprn // URL : http://10.138.250.170:81/MESService/SynMESService.asmxrn // ************************************************************************ //rn SynMESServiceSoap = interface(IInvokable)rn ['DF77DFFE-73C4-6478-A0BD-6D6E32AF9CA9']rn function SendSNInfo(const snList: ArrayOfGISN): GISNReturnInfor; stdcall;rn function UpdateProdOrderStatus(const snList: ArrayOfGISN): GISNReturnInfor; stdcall;rn end;rnrnfunction GetSynMESServiceSoap(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): SynMESServiceSoap;rnrnrnimplementationrnrnfunction GetSynMESServiceSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): SynMESServiceSoap;rnconstrn //defWSDL = 'D:\example\<em>delphi</em><em>调用</em>webserver\SynMESService.wsdl';rn defWSDL = 'http://10.138.250.170:81/MESService/SynMESService.asmx?wsdl';rn defURL = 'http://10.138.250.170:81/MESService/SynMESService.asmx';rn defSvc = 'SynMESService';rn defPrt = 'SynMESServiceSoap';rnvarrn RIO: THTTPRIO;rnbeginrn Result := nil;rn if (Addr = '') thenrn beginrn if UseWSDL thenrn Addr := defWSDLrn elsern Addr := defURL;rn end;rn if HTTPRIO = nil thenrn RIO := THTTPRIO.Create(nil)rn elsern RIO := HTTPRIO;rn tryrn RIO.HTTPWebNode.UseUTF8InHeader:=True; //在此添加一句,修改编码方案。rn Result := (RIO as SynMESServiceSoap);rn if UseWSDL thenrn beginrn RIO.WSDLLocation := Addr;rn RIO.Service := defSvc;rn RIO.Port := defPrt;rn end elsern RIO.URL := Addr;rn finallyrn if (Result = nil) and (HTTPRIO = nil) thenrn RIO.Free;rn end;rnend;rnrnrninitializationrn InvRegistry.RegisterInterface(TypeInfo(SynMESServiceSoap), 'http://tempuri.org/', 'utf-8');rn InvRegistry.RegisterDefaultSOAPAction(TypeInfo(SynMESServiceSoap), 'http://tempuri.org/%operationName%');rn RemClassRegistry.RegisterXSClass(GISN, 'http://tempuri.org/', 'GISN');rn RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfGISN), 'http://tempuri.org/', 'ArrayOfGISN');rn RemClassRegistry.RegisterXSClass(GISNReturnInfor, 'http://tempuri.org/', 'GISNReturnInfor');rnrnend.rnrn@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥rn<em>调用</em>上面<em>webservice</em>:rnfunction TForm1.SendSNInfo():Boolean;rnVarrn SNList:ArrayOfGISN;rnrn resultClass:GISNReturnInfor;rn i:integer;rnbeginrn//发送SNrnrn SetLength(SNList,1);rn for i:=0 to 0 dorn beginrn GISN(SNList[i]):=AllocMem(GISN.InstanceSize);rn end;rn SNList[0].SerialNumber := '8732';rn SNList[0].MaterialNumber:='dsfe';rn SNList[0].SpecialStockIndicator:='1231';rn SNList[0].CustomerAccountNumber:='12311';rn SNList[0].SalesOrderNumber:='12311';rn SNList[0].SalesOrderItem:='12311';rn SNList[0].ProductionOrderNumber:='12311';rn SNList[0].PurchaseOrder:='12311';rn SNList[0].PurchaseOrderItem:='12311';rn SNList[0].Status:='12311';rn SNList[0].InventoryStatus:='12311';rn SNList[0].SNCreateBy:='12311';rn SNList[0].LastUpdateBy:='12311';rn SNList[0].Buffer1:='12311';rn SNList[0].Buffer2:='12311';rn SNList[0].Buffer3:='12311';rn SNList[0].Buffer4:='12311';rnrn SNList[0].Buffer5:='12311';rn SNList[0].Remark:='12311';rn SNList[0].CreateDate:='2010-08-12';rn SNList[0].CreatedBy:='12311';rn SNList[0].LastUpdateDate:='2010-08-12';rn SNList[0].LastUpdatedBy:='12311';rn GISNReturnInfor(resultClass):=AllocMem(GISNReturnInfor.InstanceSize);rn //MESWService.URL := 'http://10.138.250.170:81/MESService/SynMESService.asmx';rn //resultClass :=rn tryrn [color=#FF0000]S_WebService.SendSNInfo(SNList);[/color] //这里出<em>错</em>rn exceptrn end;rnrn for i:=0 downto 0 dorn beginrn SNList[i].Free;rn end;rn FreeMem(SNList) ;rn result:=false;rnend ;rnrnrn其他:rnS_WebService: SynMESServiceSoap;rnrn//<em>webservice</em>的URLrn MESWService.URL := 'http://10.138.250.170:81/MESService/SynMESService.asmx' ;rn //中文 输入输出rn MESWService.HTTPWebNode.UseUTF8InHeader := True;rn S_WebService := MESWService as SynMESServiceSoap;rnrn
关于delphi开发的webservice调用问题
用<em>webservice</em>写的自动升级程序,<em>调用</em>后会产生一个数据包,每一个数据包不同。现在发现多个客户端不能同<em>时</em><em>调用</em>,请问有什么办法解决
java里面调用delphi写的webservice
<em>delphi</em>做的<em>webservice</em>:wsdl地址:http://localhost:8088/hello/hello.dll/wsdl/IIHellorn rn- rn- rn- rn- rn- rn rn rn rn rn rn rn- rn- rn- rn rn rn rn rn rn- rn- rn rn rn rn rn rn rn rn- rn rn rn- rn rn rn- rn rn rn- rn rn rn- rn rn rn- rn rn rn- rn rn rn- rn rn rn- rn rn rn- rn rn rn- rn- rn rn rn rn- rn rn rn rn- rn rn rn rn- rn rn rn rn- rn rn rn rn rn- rn rn- rn rn- rn rn rn- rn rn rn rn- rn rn- rn rn rn- rn rn rn rn- rn rn- rn rn rn- rn rn rn rn- rn rn- rn rn rn- rn rn rn rn- rn rn- rn rn rn- rn rn rn rn rn- rn- rn rn rn rn rnrn用java<em>调用</em>以上<em>webservice</em>代码:rnimport java.rmi.RemoteException;rnimport org.apache.axis.client.Call;rnimport org.apache.axis.client.Service;rnimport org.apache.axis.encoding.XMLType;rnimport javax.xml.rpc.*;rnpublic class WSDEMO rnrn /**rn * @param argsrn */rn public static void main(String[] args) rn // TODO Auto-generated method stubrn Service service = new Service();rn try rn Call call = (Call)service.createCall();rn call.setTargetEndpointAddress("http://localhost:8088/hello/hello.dll/soap/IIHello");rn call.setOperationName(new javax.xml.namespace.QName( "sayHello")); rn call.addParameter("name",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);rn call.setReturnType(XMLType.XSD_STRING);rn String name = "xxx";rn try rn String dd = (String)call.invoke(new Object[]"xxx");rn System.out.println(dd);rn catch (RemoteException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn catch (ServiceException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rnrnrn<em>错</em>误:rnException in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPExceptionrn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172)rn at org.apache.axis.AxisEngine.(AxisEngine.java:156)rn at org.apache.axis.client.AxisClient.(AxisClient.java:52)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Service.(Service.java:113)rn at WSDEMO.main(WSDEMO.java:16)rn
怎么用delphi调用php写的webservice?
怎么用<em>delphi</em><em>调用</em>php写的<em>webservice</em> ,我<em>调用</em><em>时</em>总是提示内在<em>错</em>误,有哪位大侠知道是什么原因??
js 日期选择炫表 十分好用下载
js 日期选择炫表 有更多的选择和内容可供下载 是非常好的 相关下载链接:[url=//download.csdn.net/download/lance_men/2508891?utm_source=bbsseo]//download.csdn.net/download/lance_men/2508891?utm_source=bbsseo[/url]
大学java自动取款机模拟程序下载
二、 课程设计名称及内容 名称:自动取款机模拟程序 内容:在PC机上设计一个自动取款机的模拟程序,实现现实中取款机的大部分功能。 三、 任务和要求 1. 程序分为两部分:管理端和客户端。 2. 管理端负责管理所有的银行卡,管理员(省略身份验证)可以增加和删除银行卡。 (1) 每张银行卡由卡号唯一标识,卡号由12位阿拉伯数字组成; (2) 新增的银行卡密码均为“123456”,卡内金额均为0元; (3) 只有管理员增加的银行卡才能登陆客户端; (4) 删除后的银行卡将不能再登陆客户端。 3. 客户端负责常见的取款机操作。 (1) 客户端需要登陆,用户输入正确的银行卡号和密码,系统核对无误后才能进 相关下载链接:[url=//download.csdn.net/download/chenzht3892/2996085?utm_source=bbsseo]//download.csdn.net/download/chenzht3892/2996085?utm_source=bbsseo[/url]
zigbee的pdf文件下载
此文件为zigbee的pdf文件,其中讲述了zigbee的芯片型号等。还有zigbee的使用相关指南。对于大家学习zigbee有相当大的帮助 相关下载链接:[url=//download.csdn.net/download/u013072924/7091175?utm_source=bbsseo]//download.csdn.net/download/u013072924/7091175?utm_source=bbsseo[/url]
相关热词 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天 c#func链接匿名方法 c#怎么创建文件夹 c#从键盘接收空格 c#da/ad c#部门请假管理系统 c#服务器socket c# 默认的访问修饰符
我们是很有底线的