调webservice [问题点数:100分,结帖人ljfwyh]

Bbs3
本版专家分:863
结帖率 99.55%
Bbs3
本版专家分:863
Bbs4
本版专家分:1593
Bbs5
本版专家分:3809
Bbs3
本版专家分:863
Bbs5
本版专家分:3809
Bbs3
本版专家分:863
Bbs6
本版专家分:5310
Bbs3
本版专家分:863
Bbs3
本版专家分:863
Bbs3
本版专家分:863
jax_wswebservice问题
用wsimport<em>调</em>用wsdl文件出现以下错误:rnrnwarning: src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type defirnnition' component.rn line 0 of file:/E:/EMC4DG/%E8%A1%8C%E6%94%BF__<em>webservice</em>/GetHeTongByRYReport.xrnml#types?schema1rnerror: undefined simple or complex type 'soapenc:Array'rn line 0 of file:/E:/EMC4DG/%E8%A1%8C%E6%94%BF__<em>webservice</em>/GetHeTongByRYReport.xrnml#types?schema1rnerror: undefined attribute 'soapenc:arrayType'rn line 0 of file:/E:/EMC4DG/%E8%A1%8C%E6%94%BF__<em>webservice</em>/GetHeTongByRYReport.xrnml#types?schema1rnerror: org.xml.sax.SAXParseException: undefined attribute 'soapenc:arrayType'rnrn服务方只提供了一个wsdl文件。rnrnrn原wsdl文件内容如下:[code=XML]rnrn 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[/code]
WEBSERVICE超时设置
在ASP.NET程序中<em>调</em>ODI提供的WebService时返回超时提示 提示信息: The request channel timed out while waiting for a reply after 00:00:59.7839876. Increase the timeout value passed to the call to Request or increase the Sen
java .net webservice
最近开发要做一人用java <em>调</em>.net <em>webservice</em>的,以上是我用axis1.4写的一个小例子,希望可以借鉴
axis1.xwebservice程序
NULL 博文链接:https://javaxiaoyetan.iteye.com/blog/2390974
这个webservice怎么
电子券校验接口rn<em>调</em>用类型:<em>调</em>用第三方rn接口描述:电子券有效性校验rn接口类型:实时接口rn接口协议:<em>webservice</em>标准协议,json格式rn接口名称:useTicketrn操作编码:useTicketrnWebservice地址:http://130.71.237.109:7021/ticket/services/TicketWebServicernrn请求参数:rn序号 字段名 描述 字段类型 约束 备注rn1 ticketCode 电子券定义编码 String 1 电子券定义编码,必填rn2 operCode 请求参数 String 1 rn3 userid 消费商户 String 1 消費商家rn4 tradeid 消費流水 String 流水rnrn返回报文rn序号 字段名 描述 字段类型 父节点 约束 备注rn1 rspCode 校验结果 String 1 0:成功,-1:失败rn2 rspDesc 失败内容 String 1 提供校验失败原因rn3 value 电子劵金额 String 1 电子券金额rnrn说明:请求参数中增加operCode,电子券平台<em>webservice</em>接口<em>调</em>用操作方法名(唯一标识),用于标识请求方法,在接口定义时确定rn
webservice soapui通 服务器不通?
请教一下大神们,我的程序对接的时候soapui上可以<em>调</em>试通过 可是在linux服务器上就不行了 internal servererror[img=https://img-bbs.csdn.net/upload/201806/09/1528510457_190023.png][/img]
c# webService用报内存溢出
请高手解答,rn小弟最近用c#开发了一个利用WebService作单点认证的程序,但是出现了内存溢出的问题,在用户数少的时候是没有问题的,但是一旦达到了上千个用户的时候就报一个错,如下:rnrn发生类型为 System.OutOfMemoryException 的异常。rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rn异常详细信息: System.OutOfMemoryException: 发生类型为 System.OutOfMemoryException 的异常。 rn源错误: rn执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rn堆栈跟踪:rn [OutOfMemoryException: 发生类型为 System.OutOfMemoryException 的异常。]rnrnSystem.OutOfMemoryException: 发生类型为 System.OutOfMemoryException 的异常。 --- 内部异常堆栈跟踪的结尾 --- at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Security.Portal.UserAppPurview.GetUserPassportFromToken(String strToken) at Security.UserInfo.GetUserInfoFromToken(String token) at XJEIS.Privilage.CheckPrivilage(String token) at XJEIS.index.Page_Load(Object sender, EventArgs e)c:\inetpub\wwwroot\NewBusiness rnrnrn感觉十分奇怪,还请各位高手赐教,小弟我在线等待。rnrn
怎么socket不到webservice了?
提前介绍:rnrn 我将socket监听打成jar包,放到了测试服务器上(linux+ websphere7.0.0.7),并将jar包加到了linux启动序列里面,重启服务器,监听开始。rn 此socket监听里面可以<em>调</em>用我的工程的<em>webservice</em>。rn rnrn 现在问题来了:rn 当我启动linux 启动数据库 启动websphere 启动apache后 socket成功监听,并能<em>调</em>用到我的<em>webservice</em>,但是当我重新启动websphere后,socket<em>调</em>用不到我的<em>webservice</em>了,还得重新启动linux 启动数据库 启动websphere 启动apache后 socket才能正常<em>调</em>用到我的websevicernrn 这是为什么呢?大侠指点迷津……
webservice用时怎么传参数
nnnnnn-nnn-nnn-nnnnnnnnn-nnnnnnn-nnnnnnn-nnn-nnnnnnnnnnn-nnnnn-nnnnn-nnnnnnn-nnnnnnnnnnn-nnn-nnnnnnnnnnn下面是我的<em>调</em>用代码:nn```n Service service = new Service();n Call call = (Call) service.createCall();n String url = "http://192.1.1.64:8082/Service/ServiceHello?wsdl";n call.setTargetEndpointAddress(url);n call.setOperationName(new QName("http://<em>webservice</em>_302/", "getValue"));n call.addParameter(new QName("http://<em>webservice</em>_302/", "name"), org.apache.axis.encoding.XMLType.XSD_STRING,n javax.xml.rpc.ParameterMode.IN);n call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);n String result = (String) call.invoke(new String[] "11" );n System.out.println(result);n```n下面是接口的方法点:nn```n public String getValue(String name)n return "欢迎你! "+name;n n```nn可以成功<em>调</em>用,返回结果是:欢迎你! nullnn说明参数没有传进去,请问这里我应该怎么写呢?nn
关于WEBSERVICE参数的问题
我加入了WEB的引用。<em>调</em>函数时不知怎样传参数rn原型是这样的rn[System.CodeDom.Compiler.GeneratedCodeAttribute("WebServiceStudio", "0.0.0.0")]rn[System.SerializableAttribute()]rn[System.Diagnostics.DebuggerStepThroughAttribute()]rn[System.ComponentModel.DesignerCategoryAttribute("code")]rn[System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:cnaf:wsDiasp")]rnpublic partial class GetCustomer_ttTableRow rn rn /// rn [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]rn public string addr;rn rn /// rn [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]rn public string cmNAME;rn rn /// rn [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]rn public string cmSORT;rnrnrnrn rn [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="urn:cnaf:wsDiasp", ResponseNamespace="urn:cnaf:wsDiasp", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]rn [return: System.Xml.Serialization.XmlElementAttribute("result", IsNullable=true)]rn public string GetCust([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string domain, [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)] [System.Xml.Serialization.XmlArrayItemAttribute("ttTableRow", IsNullable=false)] out GetCust_ttTableRow[] ttTable) rn object[] results = this.Invoke("GetCust", new object[] rn domain);rn ttTable = ((GetCust_ttTableRow[])(results[1]));rn return ((string)(results[0]));rn rnrn在工程中实列化了对象后<em>调</em>这个函数rn对象.GetCust("domain",xxx)rn后面的参数我不知该怎样传rn请大侠帮忙,先谢谢了.分不够了
phpwebservice的中文乱码问题!!!!!!!!!!
我用的是nusoap,<em>webservice</em>返回的是UTF-8的xml报文,我$sq=$soapclient->call('getOrgArch');之后直接echo $sq出来,中文全是????,不知道给怎么解决,请解决过这个问题的兄弟们帮忙指点一,谢谢了
jswebservice,。。。。急求。。。。
rnfunction XXX()rnAddDrp() <em>调</em><em>webservice</em>,画出这个下拉菜单rnrnvar obj2=document.getElementById("drp_zzzxzzlb"+k).options;//取出刚才画的那个下拉菜单rnrnrn现在棘手问题是,AddDrp()还未画好下拉菜单,js已经往下走了,造成取不到对象名rn如果我在AddDrp()后加个alert(),让程序停一下,一切正常,请问有何解决办法
webservice服务器接口报错
axis的方式进行<em>webservice</em>访问 rn接口方法:rnpublic java.lang.String[] receiveOrder(java.lang.String ordercode, java.lang.String taskcode, java.lang.String typecode, java.lang.String kindcode, java.lang.String prodcode, java.lang.String prodname, java.lang.String actiontype, java.lang.String actiontypename, java.lang.String orderdata, java.lang.String taskdata, java.lang.String oldresinfo, java.lang.String newresinfo) throws java.rmi.RemoteException rn if (super.cachedEndpoint == null) rn throw new org.apache.axis.NoEndPointException();rn rn org.apache.axis.client.Call _call = createCall();rn _call.setOperation(_operations[3]);rn _call.setUseSOAPAction(true);rn _call.setSOAPActionURI("");rn _call.setEncodingStyle(null);rn _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);rn _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);rn _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);rn _call.setOperationName(new javax.xml.namespace.QName("http://imp.main.geosoft.com", "receiveOrder"));rnrn setRequestHeaders(_call);rn setAttachments(_call);rn try java.lang.Object _resp = _call.invoke(new java.lang.Object[] ordercode, taskcode, typecode, kindcode, prodcode, prodname, actiontype, actiontypename, orderdata, taskdata, oldresinfo, newresinfo);rnrn if (_resp instanceof java.rmi.RemoteException) rn throw (java.rmi.RemoteException)_resp;rn rn else rn extractAttachments(_call);rn try rn return (java.lang.String[]) _resp;rn catch (java.lang.Exception _exception) rn return (java.lang.String[]) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String[].class);rn rn rn catch (org.apache.axis.AxisFault axisFaultException) rn throw axisFaultException;rnrn rn报错信息:rnjava.net.ConnectException: 远程主机拒绝 connect 操作尝试。rn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:381)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:243)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:230)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)rn at java.net.Socket.connect(Socket.java:539)rn at sun.reflect.GeneratedMethodAccessor229.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)rn at java.lang.reflect.Method.invoke(Method.java:611)rn at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)rn at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)rn at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)rn at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)rn at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)rn at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)rn at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)rn at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)rn at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)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.zjoss.iom.inter.outlineConstruct.wsclient.AgentInterfaceServiceImpSoapBindingStub.receiveOrder(AgentInterfaceServiceImpSoapBindingStub.java:304)rn at com.asiainfo.zjoss.iom.inter.outlineConstruct.service.impl.ZJOutlineClientSVImpl.pushTaskToOutline(ZJOutlineClientSVImpl.java:231)rn at sun.reflect.GeneratedMethodAccessor222.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccess
webService从用到发布
1.java<em>调</em>用别人的webService服务。    1.1<em>调</em>用别人的webService服务,首先看wsdl文件,这个文件中定义了webService所提供的服务的<em>调</em>用规则(这个文件的地址:服务url?wsdl。这个url就是webService服务的url ,例如http://127.0.0.1:8081/hello?wsdl)。    1.2根据wsdl文件生成相应的客户端代码 jdk1....
Xfire webService用时报错
代码片段rnclient=new Client(new URL(url));rnObject[] obj =client.invoke("getResult", new Object[]userName,pwd,sourcecode,xmlParameter.toString().getBytes());rn代码执行到这个Invoke的时候报错:rnException in thread "main" org.codehaus.xfire.fault.XFireFault: [B cannot be cast to javax.activation.DataHandlerrn at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:83)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)rn at org.codehaus.xfire.client.Client.invoke(Client.java:336)rn at org.codehaus.xfire.client.Client.invoke(Client.java:368)rn at com.hirisun.webService.WebServiceUtil.getResult(WebServiceUtil.java:56)rn at com.hirisun.webService.Test2.main(Test2.java:45)rnCaused by: java.lang.ClassCastException: [B cannot be cast to javax.activation.DataHandlerrn at org.codehaus.xfire.aegis.type.mtom.DataHandlerType.createAttachment(DataHandlerType.java:18)rn at org.codehaus.xfire.aegis.type.mtom.AbstractXOPType.writeObject(AbstractXOPType.java:89)rn at org.codehaus.xfire.aegis.AegisBindingProvider.writeParameter(AegisBindingProvider.java:229)rn at org.codehaus.xfire.service.binding.AbstractBinding.writeParameter(AbstractBinding.java:273)rn at org.codehaus.xfire.service.binding.WrappedBinding.writeMessage(WrappedBinding.java:90)rn at org.codehaus.xfire.soap.SoapSerializer.writeMessage(SoapSerializer.java:80)rn at org.codehaus.xfire.transport.http.HttpChannel.writeWithoutAttachments(HttpChannel.java:56)rn at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.getByteArrayRequestEntity(CommonsHttpMessageSender.java:422)rn at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:360)rn at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)rn at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)rn at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)rn求高手帮忙看看是为什么,我传入BYTE数组的时候就会出现这个错误
怎么WSDL方式的webservice
怎么<em>调</em>WSDL方式的<em>webservice</em>?我在网上看了个wsdl2objc库,看着似乎能用,可惜没有文档,不好实现。rnrnAvailable Services:rnSecurityEngineDeal [wsdl]rnrnrnrnrnrn Generated by XFire ( http://xfire.codehaus.org )
phpWebService编码格式问题
司开发的PHP系统要<em>调</em>别人JAVA开发的一个WebService。rnjava将结果以xml的格式传过来格式是 utf8rn压缩,base64加密;rn但是得到的xml里面的中文是乱码rnrnrn555233???/?????¤256.02009-11-11
WebService用时标准代码
public class WebServiceClient { public static void main(String[] args) throws Exception { String targetEendPoint = &quot;url&quot;;//测试地址 String param = &quot;&amp;lt;...&amp;gt;&amp;lt;/...&amp;gt;&quot;;测试报文 Service service =...
jswebservice部分代码
[code=&quot;java&quot;] var ns = &quot;http://cn/javacoder/com/<em>webservice</em>s/database/agent&quot;; // build SOAP request var sr = &quot;&quot; + ...
asp java webservice问题
[code=vb]Set xmldoc = server.createObject("Msxml2.DOMDocument")rnxmldoc.async = falsernrnSet soapclient = server.CreateObject("MSSOAP.SoapClient30")rnsoapclient.ClientProperty("ServerHTTPRequest") = Truernsoapclient.mssoapinit "http://220.250.64.122/UIP/services/MgPUBTicketRetireService?wsdl","http://schemas.xmlsoap.org/soap/http","",""rnstr = soapclient.retireTicket(retireTicket)rnresponse.Write str[/code]rnrn提示错误:rnClient 错误 '80020009'rnrnClient:The requested service http://schemas.xmlsoap.org/soap/http could not be found in the 'default' namespace of the WSDL file HRESULT=0x80070057: 参数不正确。 - Client:One of the parameters supplied is invalid. HRESULT=0x80070057: 参数不正确。
jswebservice的问题!请进
我做好了一个页面A,里面用JS<em>调</em>用了本地的WEB服务,测试通过没问题。rn另一个网站(不同域名)的一个页面B通过frame嵌入了这个页面A,这样的话,A上的JS就<em>调</em>不了那个WEB服务了!请问怎么会这样子?好奇怪啊。
关于phpWebservice的问题
tryrn $client = new SoapClient("http://api.yousite.com/web/CoreService?wsdl");rn $param=array($xml);rn $ret = $client->__call('invoke',$param);rn $result = ob2ar($ret); rn print_r($ret);exit;rn catch(Exception $e)rn echo $e->getMessage();rn rnrn返回错误:SOAP-ERROR: Parsing WSDL: Couldn't load from '****************' : SYSTEM or PUBLIC, the URI is missingrn各位大哥,帮我看下,错在哪儿了,感激不尽!
webservice客户端接口怎么
rn我们的目的是要在一台服务器上远程<em>调</em>用另一台服务器上的方法, rn 其他都做好了,就是不知道怎么<em>调</em>接口,客户端是直接<em>调</em>服务器方法,还是要写代码通过soap来实现呢??rnrn请留下你的联系方式把。。。rnrnrn 但是我们还有一种更简单的方法:SOAP rn SOAP通过XML传送<em>调</em>用方法的名称和参数(以及参数的类型), rn 也通过XML返回结果。 rn 在客户端和服务器端都需要有相应的XML Parser,生成XML数据 rn 客户端生成<em>调</em>用格式,服务器端生成返回结果。 rn SOAP规定了<em>调</em>用格式、数据类型的定义方法。 rn
webservice服务器接口怎么
我用的是.net2005,<em>webservice</em>,dll,web引用,客户端,都做了,现在不知道怎样<em>调</em>webreference里面的接口。rnrnmsn:lihualiu81@hotmail.comrnqq:247633433
c++ builder webservice 的 异常错误
用c++ builder 写的客户端,<em>调</em>远程的<em>webservice</em>rn出现异常错误,rn提示:rnjava.io.UTFDataFormatException:Invalid byte 3 of 3-byte UTF-8 sequence rnrn请高手帮忙,啥原因
jswebservice简单问题
<em>webservice</em>.htc我直接放在项目根目录的.rnhttp://localhost:2708/MyService/WebService1.asmx是我运行<em>webservice</em>的地址..rnWebService1.asmx里面就是一个简单的返回字符串方法rn老是说我divservice不是对象或是空rn各位帮我看下哪有错..rnrn[code=HTML]rnrn js<em>调</em>用<em>webservice</em>rn rnrn rn rn s<em>调</em>用加法方法 rn 结果: rn rn rnrnrn[/code]rnrn
webService客户端用时错误
Exception in thread "main" AxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Server.generalExceptionrn faultSubcode: rn faultString: No operation name specified!rn faultActor: rn faultNode: rn faultDetail: rn http://xml.apache.org/axis/stackTrace:No operation name specified!rn at org.apache.axis.client.Call.invoke(Call.java:1809)rn at org.apache.ws.test.Test.main(Test.java:33)rnrn http://xml.apache.org/axis/hostname:solargiant-PCrnrnNo operation name specified!rn at org.apache.axis.client.Call.invoke(Call.java:1809)rn at org.apache.ws.test.Test.main(Test.java:33)
C++如何java WebService,以及怎么测试C++WebService的某个方法的最大并发数和平均访问时间
1.C++如何<em>调</em>java WebService?rn我需要在windows 和 linux环境在 用VC++6.0<em>调</em>用用java语言写的WebService,传入参数都为简单类型.rnrn2.怎么测试C++<em>调</em>WebService的某个方法的最大并发数和平均访问时间rnrn请各位大虾给出一个例子,非常感谢~!
webserviceProcess.StandardOutput.ReadToEnd(),再写个客户端这个webservice时超时。
在<em>webservice</em>里<em>调</em>Process.StandardOutput.ReadToEnd(),再写个客户端<em>调</em>这个<em>webservice</em>时超时,rn因为写log了,所以知道客户端<em>调</em>ws时到Process.StandardOutput.ReadToEnd()这个方法就停住了直到超时,rn但是我把Process.StandardOutput.ReadToEnd()写在一个正常的cs程序里就没有问题,不知道是什么原因,有高手可以解答下?谢谢。
resin服务器,客户端WebService时报错
一、问题描述       项目是使用resin作为服务器,但是在<em>调</em>WebService时报错,而且本地<em>调</em>试时没有问题,因此证明代码没有问题,最后得出结论是环境的差异导致<em>调</em>不通。 二、问题原因      resin下的lib文件夹没有加载到axis.jar包 三、解决方法       在lib文件夹中添加axis.jar包,问题解决。
如何得到程序用了哪些webservice
WebService是本机的,有源代码。另一个程序来<em>调</em>用它。有没有像SQL Service中trace那样的工具来监视<em>调</em>用了哪些WebService?
webservice 客户端用时慢时快
用xfire写的<em>webservice</em>服务端,客户端在<em>调</em>用的时候每次客户端显示第一<em>调</em>用很慢,后来就快了。但如果客户端隔一段时间再<em>调</em>用第一次又会很慢。用工具抓了一下底层tcp报文,发现服务器和客户端建立连接都很快,主要是在服务端收到客户端请求后触发<em>webservice</em>方法的时候慢,而<em>webservice</em>方法的内部处理逻辑也是很快了。看了网上的一些说明,说<em>webservice</em>在第一次<em>调</em>用的时候才编译虚拟机代码,缓存起来,所以才造成第一次<em>调</em>用很慢,但隔一端时间<em>调</em>用又慢是什么原因呢?难道时缓存失效造成的?如何解决,那位大侠碰到过类似的情况可否讨论一下?rnwebsevice本身就不是一个效率很高的东西,对于实时性要求特别的搞的需求就不应该用它,NND现在什么鸟规范都是<em>webservice</em>。
VB能不能用java开发的webservice?如何
我是这样<em>调</em>用的,总是报错rnOption ExplicitrnPrivate Const WSURL = "http://localhost:7001/DynaCall/DynaCall/DynaCall.wsdl"rnrnPrivate Sub Command1_Click()rn Dim soapClient3rn Set soapClient3 = CreateObject("MSSOAP.SoapClient30")rn On Error Resume Nextrn Call soapClient3.MSSoapInit(WSURL, "", "")rn If Err <> 0 Thenrn Text1.Text = Err.Descriptionrn End Ifrn Text1.Text = soapClient3.myCall()rn rnEnd SubrnrnSoapMapper:The schema definition with a targetnamespace of http://www.w3.org/1999/XMLSchema for SoapMapper string could not be found HRESULT=0x80004005: 未指定的错误rn - SoapMapper:The SoapMapper for element string could not be created HRESULT=0x80004005: 未指定的错误rn - WSDLOperation:Initialization of a SoapMapper for operation unifiedCall failed HRESULT=0x80004005: 未指定的错误rn - WSDLOperation:Initializing of the input message failed for operation unifiedCall HRESULT=0x80004005: 未指定的错误rn - WSDLPort:An operation for port DynaCallPort could not be initialized HRESULT=0x80004005: 未指定的错误rn - WSDLPort:Analyzing the binding information for port DynaCallPort failed HRESULT=0x80004005: 未指定的错误rn - WSDLService:Initialization of the port for service DynaCall failed HRESULT=0x80004005: 未指定的错误rn - WSDLReader:Analyzing the WSDL file failed HRESULT=0x80004005: 未指定的错误rn - Client:One of the parameters supplied is invalid. HRESULT=0x80070057: 参数错误。rnrnrn我的WSDL文件如下:rnrn 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 todo rn- rn rn rn rn rn
C++ webservice 出现 HTTP/1.1.500.Internal.Server.Error
代码如下。 困扰好几天了。 有经验的 帮看看吧rnrn[code=C/C++]rnrnISoapSerializerPtr Serializer; rn ISoapReaderPtr Reader; rn ISoapConnectorPtr Connector; rnrn CoInitialize( NULL );rn // Connect to the service. rn HRESULT hr = Connector.CreateInstance(__uuidof(HttpConnector)); rn if (hr == S_FALSE)rn rn return false;rn rn //Connector->Property["EndPointURL"] = "http://61.172.251.26/alldeposit/service?operation=newDepositCard"; rn Connector->Property["EndPointURL"] = "http://61.172.251.26:80/alldeposit/service"; rn Connector->Connect(); rnrn // Begin message rn //Connector->Property["SoapAction"] = "http://tempuri.org/";rn //Connector->Property["SoapAction"]= "urn:SOAPService";rnrn Connector->Property["SoapAction"] = "http://ga.trimps.org/sendAlert";rn Connector->BeginMessage(); rnrn // Create the SoapSerializer rn Serializer.CreateInstance(__uuidof(SoapSerializer)); rnrn // Connect the serializer to the input stream of the connector rn Serializer->Init(_variant_t((IUnknown*)Connector->InputStream)); rnrn // Build the SOAP Message rn Serializer->startEnvelope("soap","","UTF-16"); rn Serializer->startBody(""); rn //Serializer->startElement("sendAlert","http://ga.trimps.org/","",""); rnrnrn hr = Serializer->startElement("areaId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("cardNum","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"489915650000041")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("channelId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"60")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("createtime","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"2009-06-21 15:59:59")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("dealerprice","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("depDesType","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"2")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("depFrom","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"sanmenxia")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("depSiteType","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("depSrcId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"0")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("depSrcType","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"20")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("depTime","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"2009-06-21 15:59:59")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("depValue","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("groupId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("hostId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("icpId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("inRate","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("inRateCode","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"0")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("inReduceCredit","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"0")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("inReduceCreditCode","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"0")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("orderId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"00107902108856161324265293000202")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("periodFlag","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("present_info","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("ptId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"shixitest")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("reserveInt","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("retailPrice","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("sdId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"0")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("servId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("unlocktime","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"2009-06-21 15:59:59")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("userId","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"0")); rn hr = Serializer->endElement();rnrn hr = Serializer->startElement("userIdType","","","tns"); rn hr = Serializer->writeString(SysAllocString(L"1")); rn hr = Serializer->endElement();rnrn Serializer->endBody(); rn Serializer->endEnvelope(); rnrn // Send the message to the web service rn Connector->EndMessage(); rn // Let us read the response rn Reader.CreateInstance(__uuidof(SoapReader)); rn // Connect the reader to the output stream of the connector rn bool ret = Reader->Load(_variant_t((IUnknown*)Connector->OutputStream),""); rnrn // Display the result rn printf("Answer: %s\n", (const char*)Reader->RPCResult->text); rnrnrn[/code]
请问是否可以过代理服务器webservice?
请教大家一个问题。。我现在写了一个asp.net小程序,希望可以挂上google的<em>webservice</em>,出现了这样的问题,http://api.google.com/search/beta2 这个站点,如果我直接访问,访问不到,但是挂上代理服务器就可以访问,这样虽然可以引用到服务,但是实际应用的时候,IIS去访问http://api.google.com/search/beta2 这个站点没有走代理。。所以无法访问到。。造成<em>调</em>用这个<em>webservice</em>的失败。。rnrn请问大家,又没有办法再<em>调</em>用<em>webservice</em>的时候让IIS通过指定的代理服务器?或者其他的解决方法?rnrn谢谢大家。。rn
关于WebService用时随机出错的问题
服务器及开发环境:Win2008+IIS7+VS2008rnrn近期在做一个Winform+WebService的项目。Winfrom和WebService及数据库访问主要用了实体DataSet,rn从而导致Web服务器内存不停上涨,导致占用大量内存。现在已经想办法将DataSet进行了Dispose,rn似乎比以前要好了点。可是还存在一个很诡异的问题,已经把我块折磨的不行了,跪求各位大虾帮忙。rnrnWeb服务器2G内存,w3wp.exe进程占用到800M内存左右的时候,WebService就工作不正常了,而且是rn说不准是哪一个,随机的会出现错误。导致客户端访问WebService出错。rnWinForm这边会看到如下错误:rn响应消息的内容类型 text/html; charset=utf-8 与绑定(text/xml; charset=utf-8)的内容类型不匹配。如果使用自定义编码器,请确保正确实现 IsContentTypeSupported 方法。rnrn然后到IIS查看失败请求跟踪的日志,里面的错误是(好像是内部500错误):rnUrl http://10.167.18.219:80/asmx/M30/M3010/M301020.asmx rnApp Pool HSIT rnAuthentication anonymous rnUser from token NT AUTHORITY\IUSR rnActivity ID 00000000-0000-0000-0B02-0080010000FA rnSite 2 rnProcess 6096 rnFailure Reason STATUS_CODE rnTrigger Status 500 rnFinal Status 500 rnTime Taken 280 msec rnrn其他错误日志:rn94. r MODULE_SET_RESPONSE_ERROR_STATUSrnWarning ModuleName="ManagedPipelineHandler", Notification="MAP_REQUEST_HANDLER", HttpStatus="500", HttpReason="Internal Server Error", HttpSubStatus="0", ErrorCode="操作成功完成。rn (0x0)", ConfigExceptionInfo="" rnrn还有:rn="rn rn 运行时错误rn rn rnrn rnrn “/”应用程序中的服务器错误。 rnrn 运行时错误 rnrn rnrn 说明: 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。但可以通过在本地服务器计算机上运行的浏览器查看。rn rnrn 详细信息: 若要使他人能够在远程计算机上查看此特定错误消息的详细信息,请在位于当前 Web 应用程序根目录下的“web.config”配置文件中创建一个 标记。然后应将此 标记的“mode”属性设置为“Off”。 rnrn rn rn rn rnrnrnrnrn rn rn rnrnrn rn rn rnrn rnrn 注释: 通过修改应用程序的 配置标记的“defaultRedirect”属性,使之指向自定义错误页的 URL,可以用自定义错误页替换所看到的当前错误页。 rnrn rn rn rn rnrnrnrnrn rn rn rnrnrn rn rn rnrn rnrn rnrnrnrn可WebConfig中将customErrors mode改成OFF,还是remoteonly,错误仍然继续。rnrn比较诡异的是每次内存占用到800M左右,就会有这种问题出现,而且具体是哪一个WebService说不准,都是随机的。rn但是在IIS管理器里面进行手动回收,内存占用量下去以后,就又正常了。各位大虾有没有遇到类似情况,或者给rn小弟指点以下迷津,谢谢拉!!!rnrn注:用另外一台性能超好的服务器16G内存,w3wp.exe进程占用到1.8G都没有这种问题,而且到1.8G以后好像也不太怎么rn往上涨了。rn
请问WEBSERVICE简单用的问题
我从远程服务器上返回一个3万条记录的DATASET,在客户端显示,我问一下,他是一下子把3万记录返回到客户端吗,因为我在客户端分页显示的时候,点下一页提示正在加载。。。感觉是你点哪一页他再到服务器取数据的?而不是全部下载的客户端,而是点哪页下载哪页的数据????谢
Java以SOAP方式webservice实例
Java以soap<em>调</em><em>webservice</em>实现需要两点一 导入jdk二 导入commons-iocommons-io下载地址:废话不多说直接上代码import java.io.BufferedReader;  import java.io.File;  import java.io.FileReader;  import java.io.IOException;  import java.io.In...
java c# 参数传不过去,webservice
我写了一个 c# 的<em>webservice</em> 服务端,用 java 作为客户端来<em>调</em>用此 <em>webservice</em> 服务。rn现在有一个方法:rnpublic String GetString(String message) rnreturn "Hello " + message + "!";rnrnrn在 java 端<em>调</em>用: rn public static void main(String[] args) rn GetString();rn rnrn public static Call connect(String methodName) rn try rn String endPoint = "http://192.2.1.235/LOWER/WebService.asmx?wsdl";rn Service service = new Service();rn Call call = (Call) service.createCall();rn call.setTargetEndpointAddress(new URL(endPoint));rnrn QName qn = new QName("http://tempuri.org/", methodName);rn call.setOperationName(qn);rn call.setUseSOAPAction(true);rnrn String uri = "http://tempuri.org/" + methodName;rn call.setSOAPActionURI(uri);rnrn return call;rn catch (Exception ex) rn ex.printStackTrace();rn rn return null;rn rnrn public static void GetString() rn try rn Call call = connect("GetString");rn rn call.addParameter("message", org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);rnrn String result = (String)call.invoke(new Object[] "aaaa" );rn System.out.println("result = " + result);rn catch (Exception ex) rn ex.printStackTrace();rn rn rnrn结果参数传到 c# 端的时候,c# 端用日志没有打印出来。在 java 端的结果也是 Hello !rnrn请各位路过的大侠,帮帮忙
怎样使Webservice的用为动态
我是想使之变为动态<em>调</em>用后,改变web.config文件,可以改变<em>webservice</em>的地址
动态远程WEBSERVICE的问题,急!!!!!!!!!!!!!!!!!
可能有多个服务器点(有可能是不断增加的)如:A,B,C,D.....,但这些服务器上都有一个功能完全一样的WEBSERVICE程序,假如把它称为SERVERDOT,现在我要写一个WEBSERVICE程序(起一个中间桥的作用,假如称为MIDSERVER),来接受客户程序(ASP.NET)传过来的条件,这个条件有可能是同时要统计远程服务器A,B,C,D...上的某些数据,MIDSERVER这程序的功能就是根据传过来的条件来判断要连接到那台服务器上并且动态<em>调</em>动那台服务器上的SERVERDOT的相应功能(一般同时<em>调</em>动的功能都是一样的),最后返回结果给ASP.NET,我看了一些资料都是讲的已经知道要<em>调</em>用那台服务器上的WEBSERVICE,都没有对于这种不确定<em>调</em>用的说法,不知大家能否帮小弟一把,很急,谢谢了rnrn请注意,各个服务器上的WEBSERVICE都一样的功能,就是说只有一个WEBSERVICE,但是在不同的服务器上,这个服务器有可能是不断增加的,我们会用一个表来专门存放这些服务器的固定地址(假如表名WEBTABLE)rn
jQueryWebService遇到一个奇怪的问题
这是我JavaScript的代码rn[code=JScript]rn/// rn$(document).ready(function () rn var Referrer = document.referrer;rn $.ajax(rn type: "post",rn contentType: "application/json",rn dataType: "json",rn data: '"Referrer":"' + Referrer + '"',rn url: "ReferrerService.asmx/SendReferrer",rn success: function (result) rn alert(result.d);rn //alert(Referrer);rn rn )rn)rn[/code]rn下面是我WebService的代码rn[code=C#]rn[WebService(Namespace = "http://tempuri.org/")]rn[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]rn//若要允许使用 ASP.NET AJAX 从脚本中<em>调</em>用此 Web 服务,请取消对下行的注释。 rn[System.Web.Script.Services.ScriptService]rnpublic class ReferrerService : System.Web.Services.WebServicernrnrn public ReferrerService()rn rnrn //如果使用设计的组件,请取消注释以下行 rn //InitializeComponent(); rn rnrn [WebMethod(EnableSession = true)]rn public string SendReferrer(String Referrer)rn rn Uri uri = new Uri(Referrer);rn Session["Referrer"] = uri.Host;rn return Session["Referrer"].ToString();rn rnrn[/code]rn现在问题很奇怪 我按F5<em>调</em>试的时候alert(result.d)可以弹 就说明<em>调</em>用了 结果也正常rn我按右键在浏览器中查看 或者发布到IIS中的时候 就不弹 结果也是nullrn不知道为什么啊!!!!rn各位老师 小生求解啊rnPS:页面这个js文件和JQuery的都引用了
WebService用时一个很棘手的问题
需求:webService中实现会话的管理和状态保存?rnrn具体问题描述:rnrnWebService<em>调</em>用接口及其方法都写好了,但是客户端<em>调</em>用时的对象只是单个的方法,而我这里是一个完整的应用程序。当用户登rnrn陆时首先从客户端<em>调</em>用WebService服务端的方法,然后将登陆状态返回给客户端。登陆操作完毕后,我需要使用该帐号进行其它rnrn的操作,比如查看系统中的数据列表或者修改密码等。这些操作都需要检查用户是否有登陆状态即会话状态。rnrn而现在我却无法保存并获取到会话状态。各位路过时,请帮忙顶顶分析分析,在线等。首先谢谢各位了。
webservice用时遇到的奇葩问题
严重: Servlet.service() for servlet [springServlet] in context with path [/gateway] threw exception [Request processing failed; nested exception is javax.xml.ws.soap.SOAPFaultException: Server Error] with root causernorg.apache.cxf.binding.soap.SoapFault: Server Errorrn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:86)rn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:52)rn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:41)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)rn at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)rn at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)rn at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)rn at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:802)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1642)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1533)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1336)rn at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)rn at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:652)rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)rn at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)rn at com.sun.proxy.$Proxy88.iiCESDSalesOrderDisplaySYN(Unknown Source)rn at com.bizfocus.cswebsite.integrationCE.controller.DataSourceController.getOrderReport(DataSourceController.java:271)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:497)rn at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:817)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:731)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:870)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)rn at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)rn at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)rn at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)rn at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)rn at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)rn at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)
java.net webservice能否传实体
java<em>调</em>.net <em>webservice</em>能否传实体,能<em>调</em>的话,能粘个例子就最好了。
如何获得ejb3 webservice用着的IP?
谢谢
xfire 生成webservice客户端,用时的问题
在myeclipse中使用xfire生成<em>webservice</em>客户端,传入参数、返回的结果参数都是类对象,可是在执行的时候却报以下错误: rnrnInvoking handler org.codehaus.xfire.client.ClientReceiveHandler in phase service rnException in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not unmarshall type : com.xxx.xxx.xxx.xxxResponse is not known to this context rnorg.codehaus.xfire.fault.XFireFault: Could not unmarshall type : com.xxx.xxx.xxx.xxxResponse is not known to this context rn at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:219) rn at org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:169) rn at org.codehaus.xfire.service.binding.RPCBinding.readMessage(RPCBinding.java:91) rn at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42) rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) rn at org.codehaus.xfire.client.Client.onReceive(Client.java:406) rn at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139) rn at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) rn at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114) rn at org.codehaus.xfire.client.Client.invoke(Client.java:336) rn at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) rn at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) rn at $Proxy12.buyBatchProduct(Unknown Source) rn at com.xxx.xxx.xxx.impl.CBuyClubHandler.buyProduct(CBuyClubHandler.java:220) rn at com.xxx.xxx.xxx.impl.CBuyClubHandler.main(CBuyClubHandler.java:235) rnCaused by: javax.xml.bind.JAXBException: com.cnfol.<em>webservice</em>.product.BuyProductResponse is not known to this context rn at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:510) rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getBeanInfo(UnmarshallerImpl.java:502) rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:316) rn at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:201) rn ... 17 more rnrnrn哪位兄弟知道怎么解决这个问题的?谢谢!
为什么PHPwebservice 总是报错!!!!!!!!!!!!!!!!!!!
报的错是:Fatal error: Call to undefined method soapclient::checklogin() in /var//phpWS.php on line 12 <em>调</em>什么方法都报错rn代码如下:rnchecklogin($j_id);rnecho $sq;rn?>rn版本是PHP4,环境是LINUX
webservice用过分析程结论
今天下午测试了<em>webservice</em>的<em>调</em>用过程。之前一直有误解,以为把wsdl当做一个类来看的话,每次请求<em>调</em>用任何方法,都相当于对wsdl重新实例化了一次。其实是错的。 1.<em>webservice</em>在tomcat发布的时候,会<em>调</em>用<em>webservice</em>的构造函数。对wsdl进行实例化。 2.当<em>调</em>用其中方法的时候,也就是说对于全局变量的值会一直存在。直到<em>webservice</em>销毁或者tom
phpC#写的WebService参数问题
最近一个项目要用到WebService,A端是php写的, B端是C#写的,现在A端通过SOAP<em>调</em>B端的接口Hello(测试方法),B端那边的人说没有参数传进来, 但是A端确实是收到返回值了,折腾了很久,用wireshark抓包分析,和正常<em>调</em>用(php<em>调</em>自己的php接口)对比,发现了一些差异,贴图如下:rnrnrnphp<em>调</em>php(正常)抓包的数据: rn[img=https://img-bbs.csdn.net/upload/201806/29/1530270370_32466.png][/img]rnphp<em>调</em>php(正常)<em>调</em>用时的代码:rn[code=php]rn$client = new SoapClient(null, array(rn 'location' => "http://172.30.34.102:8080/WebService/Service.php",rn 'uri' => "http://172.30.34.102:8080/WebService/Service.php",rn 'trace' => 1 ));rn$client->Hello("jybgxt","admin","13340397452", "test");rn[/code]rn———————————————————分割线———————————————————————rnphp<em>调</em>C#(失败)时抓包的数据rn[img=https://img-bbs.csdn.net/upload/201806/29/1530270898_574306.png][/img]rnphp<em>调</em>C#(失败)时<em>调</em>用的代码rn[code=php]$this->soap_client = new SoapClient("http://172.30.35.108/dxptfb/WebService1.asmx?wsdl");rn$this->soap_client->Hello("jybgxt","admin","13340397452", "test"); [/code]rnrn经对比,B端是php时,参数是4个; 而B端换成c#时,抓包的参数是3个,见图。rn由此可知,肯定是某个地方出了问题,导致参数丢失。但是至今未找到原因,期待高人指出rnrn
axis2 webservice 客户端用时报错
代码部分如下:n RPCServiceClient serviceClient = new RPCServiceClient();n EndpointReference targetEPR = new EndpointReference(wsurl); n Options options = serviceClient.getOptions(); n options.setTo(targetEPR); n HttpTransportProperties.Authenticator basicauth = new HttpTransportProperties.Authenticator(); n basicauth.setUsername("ECInsurance"); //服务器访问用户名 n basicauth.setPassword("YGBXECInsurance"); //服务器访问密码n options.setProperty(HTTPConstants.AUTHENTICATE, basicauth);n options.setAction("idNoCheck");n QName qname = new QName("http://slis-uat.sinosig.com/services/IdNoCheck", "idNoCheck"); n // 指定IdNoCheck方法的参数值 n Object[] parameters = new Object[1]; n //PackReg方法是组装xml的,报文经过接口测试没问题n parameters[0]=PackReg(order);n System.out.println(parameters[0]); n // 指定IdNoCheck方法返回值的数据类型的Class对象 n Class[] returnTypes = new Class[] String.class;n System.out.println(serviceClient.invokeBlocking(qname,parameters, returnTypes)[0].toString());n catch (AxisFault e) n e.printStackTrace();n n错误信息如下:norg.apache.axis2.AxisFault: Server Errorn at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)n at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)n at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)n at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)n at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)n at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)n at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)n at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:101)n at com.sinosig.lifewebsite.util.idCheck.idCheckIdNo(idCheck.java:65)n at com.sinosig.lifewebsite.controller.jkseb.JksebController.idCheckNo(JksebController.java:90)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)n at java.lang.reflect.Method.invoke(Method.java:597)n at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)n at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439)n at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427)n at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)n at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)n at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)n at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)n at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)n at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)n at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)n at com.sinosig.ec.sso.filter.SSOClientFilter.doFilter(SSOClientFilter.java:86)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)n at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)n at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)n at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)n at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)n at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)n at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)n at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)n at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)n at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)n at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)n at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)n at java.lang.Thread.run(Thread.java:662)n n n 接口那边说没有问题的
www.linvserp.com中在客户端webservice错误。为什么?
在本机上试好的。但是在服务器上老是出错。为什么呢?我是在客户端<em>调</em>用<em>webservice</em>.
webservice用时参数变为null
总述:web方法参数中有一个对象,ref类型的,<em>调</em>用前不为null,<em>调</em>用后就为null,哪位有经验的帮我看看为什么。rn类定义:rn[code=C#]UserInfomation对象rn[Serializable]rn public class UserInfomationrn rn private int _UserId;rn private string _UserName;rn private int _CompanyId;rn private string _CompanyType;rn private string _CompanyShortName;rn private string _Password;rn private int _result_code;rn private string _result_remark;rnrn public int UserIdrn rn get return _UserId; rn set _UserId = value; rn rn public string UserNamern rn get return _UserName; rn set _UserName = value; rn rn public string CompanyTypern rn get return _CompanyType; rn set _CompanyType = value; rn rn public int CompanyIdrn rn get return _CompanyId; rn set _CompanyId = value; rn rn public string CompanyShortNamern rn get return _CompanyShortName; rn set _CompanyShortName = value; rn rn public string Passwordrn rn get return _Password; rn set _Password = value; rn rnrnrnrn public int Result_Codern rn get return _result_code; rn set _result_code = value; rn rnrnrnrn public string Result_Remarkrn rn get return _result_remark; rn set _result_remark = value; rn rnrn public UserInfomation()rn rnrn rn[/code]rnrnweb方法定义:rn[WebMethod]rn [XmlInclude(typeof(UserInfomation))]rn public int GetMsgCountByType(string strdate, ref DataTable dt, ref UserInfomation usrinfo)rnrn<em>调</em>用:rnpublic ManageWs.UserInfomation iUserInfo = new ManageWs.UserInfomation();rn在这里之前 iUserInfo还不等于nullrnint result1 = ws.GetMsgCountByType(strDate, ref dt1,ref iUserInfo);rn这句中iUserInfo就为null,请问为什么?rnrn
WMB问题,使用WebService客户端
我用程序<em>调</em>用时,使用的是一个Webservice的客户端,Webservice的客户端发送的是soap报文。rnrn未加Soap Extract 节点之前内容为:rnXMLNSCrn XmlDeclarationrn Version:CHARACTER:1.0rn Encoding:CHARACTER:UTF-8rn Envelopern soapenv:CHARACTER:http://schemas.xmlsoap.org/soap/envelope/rn xsd:CHARACTER:http://www.w3.org/2001/XMLSchemarn xsi:CHARACTER:http://www.w3.org/2001/XMLSchema-instancern Bodyrn exchangern ns1:CHARACTER:http://www.chinatelecom.edc.comrn encodingStyle:CHARACTER:http://schemas.xmlsoap.org/soap/encoding/rn arg0:CHARACTER:rn rn在Route之前加一个Soap Extract 节点, soap 的envelope和header 都去掉了,rn内容为:rnXMLNSCrn XmlDeclarationrn Version:CHARACTER:1.0rn Encoding:CHARACTER:UTF-8rn exchangern ns1:CHARACTER:http://www.chinatelecom.edc.comrn encodingStyle:CHARACTER:http://schemas.xmlsoap.org/soap/encoding/rn arg0:CHARACTER:rn rn我现在的问题是:rnXmlDeclaration如何去掉呢?还有exchange如何去掉?这些大概就是我WebService客户端<em>调</em>不成功的原因吧。rn
手机端webservice并保存webservice,但是webservice端拿不到session
rn是这样的 rnrnandriod 的手机端<em>调</em>我发布到服务器上的<em>webservice</em> ,我在手机端登陆的时候保存了登陆信息到session 里面,rn但是,在<em>webservice</em>中另外个API中需要使用保存到session中的值,这个时候 就拿不到了,rn我是用.net写的<em>webservice</em>rnrn [WebMethod(EnableSession = true)]rnrn也写了rnrn但是还是拿不到保存到session中的值rnrn手机端是用java 写的rnrnrn求方法,就能<em>调</em>用到session的解决方案····rnrn分不多了,我全部贡献出来··求··解决···
Webservice Webservice
Webservice! 值得下载看看!资源免费,大家分享!!
哪位大哥用java 用过.net webservice?
我用.net做的Web service,由java 客户端来<em>调</em>用。rn现在如果我发布的方法没有参数,然后返回string,客户端<em>调</em>用没有任何问题,如果我发布的方法,带参数,结果Web service端不能正确地得到这个参数值,好像看起来,java 在soap封装上有些问题?至少WEB端不能够正确地解析。不知道,哪位先生做过相同的事情,提个醒,谢谢了。我的.net framework 是用的1.1 Version.rnrn
ASP,NET Ajax WebService问题,急急急!!!!高手快来
我在Main.aspx页中使用了AutoCompleteExtender<em>调</em>一个WebMethord:Methord1rn但是我在这个页load的时候还想为DropDowDownList赋值,也是通过这个WebService完成:Methord。rn于是我在Page_Load中写了rn if (!this.IsPostBack)rn rn InputOnlineWebService.InputOnlineWebService inputService = new InputOnlineWebService.InputOnlineWebService();rn DataSet ds = new DataSet();rn ds = inputService.getVisibleInputType();rn this.ddlInputType.DataSource = ds;rn this.ddlInputType.DataValueField = ds.Tables[0].Columns[0].ColumnName;rn this.ddlInputType.DataTextField = ds.Tables[0].Columns[1].ColumnName;rn this.ddlInputType.DataBind();rn rnrn编译的时候报错:rn错误 1 The namespace 'InputOnlineWebService' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\inputonline\1d3ad7c9\eda8fc3c\App_WebReferences.gj4t1zjd.dll' conflicts with the type 'InputOnlineWebService' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\inputonline\1d3ad7c9\eda8fc3c\App_Code.e1id2mwl.dll' F:\My Documents\Visual Studio 2005\WebSites\InputOnline\Main.aspx.cs 17 13 F:\...\InputOnline\rn这个错误是在是看不明白,难道是因为使用了JS<em>调</em>WebService的原因导致正常<em>调</em>用rnWebService出错,请高手指点解决方法。rnrn
大家帮忙改个用用webservice时bug
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Servicern at java.lang.ClassLoader.findBootstrapClass(Native Method)rn at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:892)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:302)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:300)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn at java.net.URLClassLoader.access$000(URLClassLoader.java:56)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:195)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at cn.com.WebXml.TrainTimeWebServiceSoapProxy._initTrainTimeWebServiceSoapProxy(TrainTimeWebServiceSoapProxy.java:18)rn at cn.com.WebXml.TrainTimeWebServiceSoapProxy.(TrainTimeWebServiceSoapProxy.java:8)rn at cn.com.WebXml.Sts.main(Sts.java:100)rn[img=http://imgsrc.baidu.com/forum/pic/item/cdbf6c81800a19d84c3d0dbf33fa828ba61e464a.jpg][/img]
高分诚恳请教关于Delphijava做的Webservice 的问题!!!
最近的做的项目需要用到对方提供的WebService,是用java做的,带证书的(即必须使用https访问的),现在怎么也掉不成功。刚开始报一个[b]“XML 文件必须有一个顶层元素”[/b]的错误,现在是什么都没改,<em>调</em>了以后很长时间没反应,最后报一个[b]“要操作的句柄的状态错误[/b]”,后面是个URL。各位网友有遇到这样的问题的吗?如果有,请提供个方法,定不胜感激!rn另外,如果能通过什么方法可以[b]检测到我发出去的请求信息及对方返回的信息[/b]吗?最好是能在Delphi里看到明文的。因为用wireshark,tcptrace之类的检测工具看到的是加密后的,不能用。
谁在java中用过sharepoint中的webservice啊?
看微软的文档,<em>调</em>用<em>webservice</em>时用到了好多微软自定义的一些类库,比如他的网络身份凭证:credentials,真不知道在java中怎么使用。有过这方面经验的人吗,指导一下,谢谢。rn
求助111C# webservice 部署到IIS上 用时问题
这个是webservce 代码, 一个是默认的 一个是我写的rn [WebMethod]rn public string HelloWorld()rn rn return "Hello World";rn rn rn [WebMethod]rn public DataSet reader()rn rn string ConStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=H:\\MyPro\\data.accdb";rn String SqlStr = "select * from login";rn tryrn rn OleDbConnection con = new OleDbConnection(ConStr);rnrn DataSet ds = new DataSet();rnrn OleDbDataAdapter da = new OleDbDataAdapter(SqlStr, con);rnrn da.Fill(ds);rnrn return ds;rnrn rn catch (Exception ex)rn rn return null;rn rn在VS上按F5测试时,没有问题 ,将浏览器地址复制,在WF中添加引用服务,也还是可以的,能够读取数据库的信息。。rnrn但是 !!!将WebService部署到IIS上,用地址访问时,出现了“/无法引用服务XXX”的错误,网上查了下,在web.config里添加了如下代码:rnrnrn然后,吾此噢,默认的WebService里的HelleWorld()可以<em>调</em>用,但是我自己写的没法子<em>调</em>用了,rnrn出现的是:rnrnrnrn就这些代码,看不懂啊。rnrn之前成功的是数据库的内容。。rnrn怎么回事啊?请教大神。。。已经卡了一周了,完全不知道怎么回事。。。rnrn
各位高手帮帮忙,怎么java的webservice?急!急!急!
java的接口返回一个java标准的结果集,我怎么一条条的读取出来存到我的数据库里, 各位高手说的详细点,最好有例子,多谢了!
如何用用C#写的一个WEBSERVICE?.本人在线等.
现在在公网上面有一个WEBSERVICErn接口如下.rn/// rn /// 服务器验证rn /// rn /// 序列号rn /// CPUIDrn /// 网卡的MAC地址rn /// IP地址rn /// 加密用KEYrn /// 加密后的字符串rn [WebMethod]rn public string ServerVerify(string uid, string skey, string cpuid, string mac, string sip, string ver, string key)rn rn using (SqlConnection conn = new SqlConnection(Global.__APPConnString))rn rn SqlCommand comm = new SqlCommand("ws_serververify",conn);rn comm.CommandType = CommandType.StoredProcedure;rn comm.Parameters.Add("@uid",SqlDbType.VarChar,10).Value = uid;rn comm.Parameters.Add("@skey",SqlDbType.VarChar,50).Value = skey;rn comm.Parameters.Add("@cpuid",SqlDbType.VarChar,50).Value = cpuid;rn comm.Parameters.Add("@mac",SqlDbType.VarChar,50).Value = mac;rn comm.Parameters.Add("@sip",SqlDbType.VarChar,15).Value = sip;rn comm.Parameters.Add("@ver",SqlDbType.VarChar,20).Value = ver;rn comm.Parameters.Add("@reval",SqlDbType.TinyInt).Direction = ParameterDirection.Output;rn comm.Parameters.Add("@tsnum",SqlDbType.TinyInt).Direction = ParameterDirection.Output;rn conn.Open();rn comm.ExecuteNonQuery();rn return comm.Parameters["@reval"].Value.ToString().Trim()+","+comm.Parameters["@tsnum"].Value.ToString().Trim();rn rn rn我在DELPHI里面如何提交数据到这个WEBSERVICE上且得到他的返回值呢?..最好有类似的例子.如果分数不够的话可以再添.
webservice,3秒不通就直接返回
<em>调</em>用<em>webservice</em>,3秒<em>调</em>不通就直接返回
如何用以XmlTextWriter类作参数的WebService?
现在有这样一个需求:rn实现一个WebService,这个WebService有一个WebMethod用XmlTextWriter类作参数,获取信息,rn做成XML文件。rn求教两个问题:rn1.在远程有一批结构化的数据,现在要传给上面WebService的方法处理,请问远程的代码应该rn 如何写?rn2.WebService如何取得XmlTextWriter参数传来的数据?rnrn实现这个需求背后的流程和概念还没弄明白,感觉XmlTextWriter类是一个动作类,它怎么能rn把数据信息传给WebService的方法呢?rn或者还应该加上其他负载数据信息的途径?rn
webservice 被winForm应用程序用时 的 安全处理问题
如题:rn本人做了一个 <em>webservice</em> 但是 在 winForm 中 <em>调</em>用时 不知道 怎么控制他们的访问!rn在 webConfig 中怎么配置? 请高手指点! 谢谢!
VBwebservice,初始化成功,但无法用它的方法!
<em>webservice</em>是用JAVA实现的,已成功发布,使用JAVA客户端已经成功<em>调</em>用.rn本机已安装ms SDK3.0. 在VB6中使用SOAP3.0控件<em>调</em>用时初始化成功,但<em>调</em>用<em>webservice</em>的方法时出错.提示"Client:Incorrect number of parameters supplied for SOAP request,参数不正确"rnVB程序代码如下:rnDim soap As New MSSOAPLib30.SoapClient30rnrnPrivate Sub Form_Load()rn rn On Error Resume Nextrn rn soap.ClientProperty("ServerHTTPRequest") = Truern Call soap.mssoapinit("http://127.0.0.1:8080/CXF_Spring_Survey/SurveyWebService?wsdl")rn If Err <> 0 Thenrn MsgBox "初始化SOAP失败 " + Err.Descriptionrn End Ifrn rnEnd Subrnrn'----------- 初始化是成功的 ------------'rnrnPrivate Sub Command1_Click()rnrn Dim returnValue As Stringrn Dim username As String, point As Integerrn username = "jack"rn point = 10rn [color=#FF0000] returnValue = soap.vote("Jack", 10)[/color] '执行到这里失败,提示"Incorrect number of parameters supplied for SOAP request"rn rn MsgBox returnValuern rn If Err <> 0 Thenrn MsgBox "Web Service<em>调</em>用失败 " + Err.Descriptionrn End IfrnrnEnd Subrnrn请大家指教,弄了两天了.太笨了:(rn
请教,WEBSERVICE返回自定义类无法用到自定义类中的方法
例如自定义一个类class car 里面有个方法 public string getName(),然后我<em>webservice</em>有个webmethod public car getCar()rn然后我控制台程序引用这个WEBSERVICE,当<em>调</em>用getCar()函数时,返回我car自定义类,但是当我执行car.getName()时,获取不到这个方法?rn这是什么原因,怎么解决?
webservice 在PHP客户端用时如何加上用户名和密码?
<em>webservice</em> 在PHP客户端<em>调</em>用时如何加上用户名和密码?在服务器端要验证的rnrn
求助:AXIS生成完WebService用时的错误
AXIS errorrnSorry, something seems to have gone wrong... here are the details:rnrnFault - Failed to determine deployed service names.; nested exception is: rn org.apache.axis.ConfigurationException: Could not find class for the service named: com.founder.<em>webservice</em>.transsender.TransSenderrnHint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is: rn java.lang.ClassNotFoundException: com.founder.<em>webservice</em>.transsender.TransSenderrnAxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Server.generalExceptionrn faultSubcode: rn faultString: Could not find class for the service named: com.founder.<em>webservice</em>.transsender.TransSenderrnHint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is: rn java.lang.ClassNotFoundException: com.founder.<em>webservice</em>.transsender.TransSenderrn faultActor: rn faultNode: rn faultDetail: rn http://xml.apache.org/axis/hostname:bugtemprnrnrn在地址栏敲这个出现错误,请各位帮帮忙
求救,WSAD开发的webservice,其他语言用时出现问题
我用asp客户端访问<em>webservice</em>中无参数的方法,可以返回正确信息,但访问一个带参数的方法时,无法<em>调</em>用方法。各位有没有碰到这个问题,请多指教。
WebService客户端用不写javabean直接用String的方法
1、Axis1.4 传输用SOAPBodyElement解析用Vector 参考url:http://www.blogjava.net/robin/archive/2006/01/02/26385.html [code=&quot;java&quot;]Service service = new Service(); Call call = new Call(service); String end...
用nusoap.phpwebservice 但.参数传不了
require('lib/nusoap.php'); rn$billno = "1005";rn$userid= "hello";rn$client = new soapclient('$url','wsdl');rn$params = array('billno'=>$billno,'custId'=>$userid);rn$reversed = $client->call('payInfo',$params);rnecho "".$client->request."";rnrn结果是:rn----------------------------------rnPOST /payFor.ws HTTP/1.0rnHost: 134.64.24.2:6001rnUser-Agent: NuSOAP/0.7.2 (1.94)rnContent-Type: text/xml; charset=ISO-8859-1rnSOAPAction: ""rnContent-Length: 429rnrnrnrn没有~~~billno和custId两个参数,为啥~~~~
怎样再用了WebService以后对Session进行赋值?
诸如一个身份验证的问题,我的想法是<em>调</em>用一个WebService进行处理,但是在WebService中怎样对Page的Session进行赋值呢?
关于WebService在用过程序中断线SqlTransaction的回滚问题
有个疑问想大侠们解答一下,我在一个<em>webservice</em>中接收一个DataSet,并将数据插用到数据库,全过程用SqlTransaction,插入完成后,才Commit,并return 一个标志给<em>调</em>用的客户端,提示更新成功,但有个疑问是,如果我在Commit后,retrun标志给客户端时,客户端断线,或相方连接异常,客户端接无法接收返回的标志,那服务的插入语句会自动回滚吗?.
知道一个webservice的地址如何用JavaScript来用它?
请问大家,如果知道一个<em>webservice</em>的地址,如:http://localhost:8080/webService/services/MyWebService?wsdlrn如何采用JavaScript来<em>调</em>用?rnrn 在网上搜了些资料,里面说service()什么的,我不是很明白希望了解这方面知识的大侠留下参考代码,谢谢了。
文件上传异常,请高手帮帮忙,用了webservice的。
错误的堆栈信息rnSystem.Net.WebException was unhandledrn Message="The underlying connection was closed: An unexpected error occurred on a receive."rnrnSource="System.Web.Services"rn StackTrace:rn at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)rn at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)rn at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)rn rn if (userResponse == DialogResult.OK)rn rn FileStream fs = new FileStream(openFileDialog.FileName, FileMode.Open, FileAccess.Read);rn BinaryReader r = new BinaryReader(fs);rn byte[] postArray = r.ReadBytes((int)fs.Length);rn rn bool isSuccessful = documentService.UpLoadFile(openFileDialog.FileName, postArray, send, targetedUser.Name, senderID, receiveID);rnrn r.Close();rn fs.Close();rn rn传其他文件没问题,就是不能传MP3,不知道何解,请各位高手帮帮忙,出错是这句: rnbool isSuccessful = documentService.UpLoadFile(openFileDialog.FileName, postArray, send, targetedUser.Name, senderID, receiveID);
Intellij IDEA开发WebService气预报
Intellij IDEA开发WebService<em>调</em>用<em>调</em>气预报并生成Weather.xml 1.新建WebService项目 2.在example包下新建一个WeatherWebService.wsdl文件,并将http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl 中的内容复制过去 3.将其中的&amp;lt;a href…等中文...
WebService都被用了两回,有人碰见过吗?
TextBox1和TextBox2 ,的OnBlur事件中<em>调</em>用WebServicernTextBox1的光标之后是TextBox2rnrnDebug发现,TextBox1光标移开后,TextBox1的OnBlur被触发-----这是正常的rn但是马上 TextBox2的OnBlur也被触发了rnrn我实在不明白,所以问问。rn
问一个用axis用用.net实现的webservice的问题,
C#实现的SOAP封套是这样的:rnPOST /sapp/<em>webservice</em>/resultquery.asmx HTTP/1.1rnHost: 10.45.4.7rnContent-Type: text/xml; charset=utf-8rnContent-Length: lengthrnSOAPAction: "http://192.168.0.254/SAPP/GetResult"rnrnrnrn rn rn stringrn rn rnrn======================================================================rn我用AXIS写的Client端代码是这样的:rnService service = new Service();rn Call call = (Call)service.createCall();rn call.setTargetEndpointAddress(new URL("http://10.45.4.7/sapp/<em>webservice</em>/resultquery.asmx"));rn call.setOperationName("GetResult");rn call.setProperty(Call.SOAPACTION_URI_PROPERTY,"http://192.168.0.254/SAPP/GetResult");rn call.addParameter("no",XMLType.XSD_STRING,ParameterMode.IN);rn call.setReturnType((XMLType.XSD_STRING));rn Object[] obj = new Object[]rn cardno;rn String returnVal = (String)call.invoke(obj);rn System.out.println("search result:"+returnVal);rn return returnVal;rn但是对方收不到我传给他的字符串参数,请问哪里没做好,请高手指点一下。谢谢
WebService用时参数传递问题。谢谢各位指教^_^
我有个WebMothod:rnpublic byte[] ReceiveByte2(string strQueueName,ref string strMsgLable)rnrn ......rnrnrn我在客户端<em>调</em>用时不知道参数怎么传?注意:strMsgLabel 是ref类型的rnstring str = "queuetest"rnSystem.Reflection.MethodInfo MI = type.GetMethod(StrValidMethod);rnbyte[] bytRecv = (byte[])MI.Invoke(obj,new object[]str,msgLabel); <---How TO DO?rnrn
ASPWEBSERVICE出现以下问题,是何原因?
是JAVA写的一个WEBSERVICE,应用服务器装的是WEBLOGIC。。。\rn改用其它.net写的WEBSERVICE就没有什么问题rnrnrnmsxml3.dll 错误 '80070005' rnrn拒绝访问。 rnrn/col5/task/asp_tst.asp,行33 rnrnrnrnDim SoapRequest rn Dim xmlDOC,xmlHTTPrn SoapRequest=""&_rn ""&_rn ""&_rn ""&_rn "00000000000000"&_rn "RP00000"&_rn "aa"&_rn ""&_rn ""&_rn ""rn 'On Error Resume Nextrn Set xmlDOC=Server.CreateObject("MSXML.DOMDocument")rn Set xmlHTTP=Server.CreateObject("Msxml2.XMLHTTP")rn rn xmlHTTP.Open "POST","http://10.1.16.72:7001/hollycrm/services/ServiceCallBack",Falsern rn xmlHTTP.setRequestHeader "Content-Type","text/xml; charset=utf-8"rn xmlHTTP.setRequestHeader "Content-Length",Len(SoapRequest)rn xmlHTTP.setRequestHeader "SOAPAction","http://tempuri.org/OperationCallBack"rn rn xmlDOC.loadXML(SoapRequest)rnrn xmlHTTP.Send(SoapRequest)rn rn Set xmlDOC=Nothingrn Set xmlHTTP=Nothing
用delphi 怎么用用C#写的webservice
用delphi 怎么<em>调</em>用用C#写的<em>webservice</em>?
【基础问题】javascript 用 WebService 不到啊
html:rn[code=HTML]rnrnrnrnrnrnrn 无标题页rn rnrnrn rn rn rn rn rnrnrn[/code]rnrn<em>webservice</em>:rn[code=C#]rnusing System;rnusing System.Linq;rnusing System.Web;rnusing System.Web.Services;rnusing System.Web.Services.Protocols;rnusing System.Xml.Linq;rnusing System.Web.Script.Services;rnrn[WebService(Namespace = "http://tempuri.org/")]rn[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]rn// 若要允许使用 ASP.NET AJAX 从脚本中<em>调</em>用此 Web 服务,请取消对下行的注释。rn// [System.Web.Script.Services.ScriptService]rnrn [ScriptService]rnpublic class Service : System.Web.Services.WebServicernrn public Service () rn rnrn //如果使用设计的组件,请取消注释以下行 rn //InitializeComponent(); rn rnrn [WebMethod]rn public string HelloWorld() rn rn return "Hello World";rn rnrn [WebMethod]rn public string GetServerTime()rn rn return DateTime.Now.ToString();rn rnrnrn[/code]
求救:windows窗体怎么部署,用了webservice
都需要包含什么呢?最好详细一步一步的...rn各位大侠快帮帮忙...
右键有自己爱的图片下载
让右键菜单拥有图片预览音乐试听功能 预览非常快很爽! 相关下载链接:[url=//download.csdn.net/download/osy2012/5005088?utm_source=bbsseo]//download.csdn.net/download/osy2012/5005088?utm_source=bbsseo[/url]
多功能防盗报警钱包(电子设计)下载
用来做《微机原理》的课程设计,非常好!希望对你们有用啊~ 相关下载链接:[url=//download.csdn.net/download/zhangjieangela/5229166?utm_source=bbsseo]//download.csdn.net/download/zhangjieangela/5229166?utm_source=bbsseo[/url]
Beginning Python下载
本书系统全面地介绍了Python语言,非常适于初学者且具有一定的英语阅读能力。 相关下载链接:[url=//download.csdn.net/download/u014250583/7074681?utm_source=bbsseo]//download.csdn.net/download/u014250583/7074681?utm_source=bbsseo[/url]
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview
我们是很有底线的