webservice 客户端调用时慢时快 [问题点数:20分,结帖人sljsuper]

Bbs1
本版专家分:0
结帖率 85.71%
Bbs1
本版专家分:52
xfire 生成webservice客户端,调用时的问题
在myeclipse中使用xfire生成<em>webservice</em><em>客户端</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哪位兄弟知道怎么解决这个问题的?谢谢!
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 接口那边说没有问题的
webservice用时怎么传参数
nnnnnn-nnn-nnn-nnnnnnnnn-nnnnnnn-nnnnnnn-nnn-nnnnnnnnnnn-nnnnn-nnnnn-nnnnnnn-nnnnnnnnnnn-nnn-nnnnnnnnnnn下面是我的调用代码: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可以成功调用,返回结果是:欢迎你! nullnn说明参数没有传进去,请问这里我应该怎么写呢?nn
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数组的时候就会出现这个错误
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 =...
cxf 客户端用时异常
java.lang.NoSuchMethodError: org.apache.neethi.Policy.normalize(Z)Lorg/apache/neethi/PolicyComponent;rnrnrnException in thread "main" java.lang.NoSuchMethodError: org.apache.neethi.Policy.normalize(Z)Lorg/apache/neethi/PolicyComponent;rn at org.apache.cxf.ws.policy.EffectivePolicyImpl.initialisePolicy(EffectivePolicyImpl.java:134)rn at org.apache.cxf.ws.policy.EffectivePolicyImpl.initialise(EffectivePolicyImpl.java:86)rn at org.apache.cxf.ws.policy.PolicyEngineImpl.getEffectiveClientRequestPolicy(PolicyEngineImpl.java:155)rn at org.apache.cxf.ws.policy.PolicyOutInterceptor.handle(PolicyOutInterceptor.java:110)rn at org.apache.cxf.ws.policy.AbstractPolicyInterceptor.handleMessage(AbstractPolicyInterceptor.java:45)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)rn at $Proxy50.sayHi(Unknown Source)rn at cxf.demo.WebServiceClient.main(WebServiceClient.java:22)rn
客户端用时header错误
搜索了一下: rn有说法是服务端 <em>客户端</em>时间不对 但是我都是本机 应该不存在这个问题rn还有说法是jar冲突 因为我工程用的jar包比较多 也不清楚是哪个jar包导致的?rnrn错误代码如下:rn[code=Java]rn2011-11-21 16:45:07 org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor handleMessagern警告: Request does not contain required Security header, but it's a fault.rnException in thread "main" javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the headerrn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)rn at $Proxy33.proxyMethod(Unknown Source)rn at client.SpringClient.main(SpringClient.java:32)rnCaused by: org.apache.cxf.binding.soap.SoapFault: An error was discovered processing the headerrn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)rn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)rn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)rn at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:99)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:255)rn at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:755)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2335)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2193)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2037)rn at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)rn at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:697)rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)rn ... 2 morern[/code]
xfire客户端用时异常
<em>客户端</em>main方法测试,rn调试时可以调用服务端,但是当遇到rnnew Hibernate的DAO 是就出现异常~rn(DAO层都是存在继承关系的~) rn异常如下:rnException in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Error invoking 'com.service.IehomeService.sendProposalObj(com.ui.form.ProposalForm)'. Nested exception is java.lang.reflect.InvocationTargetException: nullrnorg.codehaus.xfire.fault.XFireFault: Error invoking 'com.service.IehomeService.sendProposalObj(com.ui.form.ProposalForm)'. Nested exception is java.lang.reflect.InvocationTargetException: nullrn at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)rn at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)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.sendProposalObj(Unknown Source)rn at com.client.ehomeServiceClient.main(ehomeServiceClient.java:106)rnrn昨天调数据源也不行说数据源未注册:rn*** DBDataSource testDataSource has not registed!rnjava.lang.IllegalArgumentException: **** DBDataSource testDataSource has not registed!rn 汗汗~!各位大侠帮帮忙呀~!!!
resin服务器,客户端调WebService时报错
一、问题描述       项目是使用resin作为服务器,但是在调WebService时报错,而且本地调试时没有问题,因此证明代码没有问题,最后得出结论是环境的差异导致调不通。 二、问题原因      resin下的lib文件夹没有加载到axis.jar包 三、解决方法       在lib文件夹中添加axis.jar包,问题解决。
CXF 客户端用时出错
<em>客户端</em>调用代码: URL wsdlURL = DataDownloaderService.WSDL_LOCATION; DataDownloaderService ss = new DataDownloaderService(wsdlURL, SERVICE_NAME); DataUpdateService port = ss.getDataD...
webservice 在PHP客户端用时如何加上用户名和密码?
<em>webservice</em> 在PHP<em>客户端</em>调<em>用时</em>如何加上用户名和密码?在服务器端要验证的rnrn
网速时慢时快???
我们2个拉了1M的ADSL,开始的时间没出现问题rn但是最近,有时我的很慢,有时他的很慢,有时我们都很慢,有时还会连接不上.rn当只有一个人慢的时候,另一个人的一点问题也没有rn这是为什么?
查询数据 时快 时慢
rn许多个<em>客户端</em>查询(sql 2005)数据库中的数据,如今查询有时后很快,有时候导致电脑卡死(以前都是很快的),rnrn不知是不是并发的问题(由于许多个客户同时使用该查询导致的),rnrn不知道该怎么解决这个问题,还望个位坛友给点办法,纠结死了。
关于WebService调用时随机出错的问题
服务器及开发环境:Win2008+IIS7+VS2008rnrn近期在做一个Winform+WebService的项目。Winfrom和WebService及数据库访问主要用了实体DataSet,rn从而导致Web服务器内存不停上涨,导致占用大量内存。现在已经想办法将DataSet进行了Dispose,rn似乎比以前要好了点。可是还存在一个很诡异的问题,已经把我块折磨的不行了,跪求各位大虾帮忙。rnrnWeb服务器2G内存,w3wp.exe进程占用到800M内存左右的时候,WebService就工作不正常了,而且是rn说不准是哪一个,随机的会出现错误。导致<em>客户端</em>访问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调用时一个很棘手的问题
需求:webService中实现会话的管理和状态保存?rnrn具体问题描述:rnrnWebService调用接口及其方法都写好了,但是<em>客户端</em>调<em>用时</em>的对象只是单个的方法,而我这里是一个完整的应用程序。当用户登rnrn陆时首先从<em>客户端</em>调用WebService服务端的方法,然后将登陆状态返回给<em>客户端</em>。登陆操作完毕后,我需要使用该帐号进行其它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)
webservice用时参数变为null
总述:web方法参数中有一个对象,ref类型的,调用前不为null,调用后就为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调用:rnpublic ManageWs.UserInfomation iUserInfo = new ManageWs.UserInfomation();rn在这里之前 iUserInfo还不等于nullrnint result1 = ws.GetMsgCountByType(strDate, ref dt1,ref iUserInfo);rn这句中iUserInfo就为null,请问为什么?rnrn
webservice客户端接口怎么调?
rn我们的目的是要在一台服务器上远程调用另一台服务器上的方法, rn 其他都做好了,就是不知道怎么调接口,<em>客户端</em>是直接调服务器方法,还是要写代码通过soap来实现呢??rnrn请留下你的联系方式把。。。rnrnrn 但是我们还有一种更简单的方法:SOAP rn SOAP通过XML传送调用方法的名称和参数(以及参数的类型), rn 也通过XML返回结果。 rn 在<em>客户端</em>和服务器端都需要有相应的XML Parser,生成XML数据 rn <em>客户端</em>生成调用格式,服务器端生成返回结果。 rn SOAP规定了调用格式、数据类型的定义方法。 rn
关于ejb3在客户端用时的异常
环境:JDK1.6、weblogic10.3、MyEclipse6.5rn创建了一个无状态的sessionbean,部署正常。但是在<em>客户端</em>调用远端接口的时候报错:rnrnException in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: rn java.io.EOFException]rn at weblogic.jrmp.Context.lookup(Context.java:189)rn at weblogic.jrmp.Context.lookup(Context.java:195)rn at javax.naming.InitialContext.lookup(InitialContext.java:351)rn at secondEjb3Client.main(secondEjb3Client.java:21)rnCaused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: rn java.io.EOFExceptionrn at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)rn at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)rn at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)rn at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)rn at weblogic.jrmp.Context.lookup(Context.java:185)rn ... 3 morernCaused by: java.io.EOFExceptionrn at java.io.DataInputStream.readByte(DataInputStream.java:243)rn at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)rn ... 7 morernrn===================================sessionbean代码:rnpackage tmd;rnrnimport javax.ejb.Stateless;rnrn@Stateless(mappedName="tnnd")rnpublic class tmdtest implements tmdtestLocal, tmdtestRemote rnrn public String tmdhello(String name) rn rn return name+"hello!";rn rnrnrn====================================<em>客户端</em>调用代码:rnimport java.util.*;rnrnimport javax.naming.*;rnrnrnpublic class secondEjb3Client rnrn /**rn * @param argsrn */rn public static void main(String[] args) rn throws Exceptionrn rn //手工初始化的过程rn Properties properties= new Properties(); rn properties.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");rn // 配置 URL rn properties.put(Context.PROVIDER_URL, "t3://localhost:7001");rn InitialContext ctx = new javax.naming.InitialContext(properties);rn // 初始化相当于打开浏览器rn tmd.tmdtestRemote remote= (tmd.tmdtestRemote)ctx.lookup("tnnd#tmd.tmdtestRemote");rn System.out.println(remote.tmdhello("Friends,Welcome "));rn ctx.close();rnrn rnrnrnrn=============================================远端接口代码:rnpackage tmd;rnrnimport javax.ejb.Remote;rnrn@Remoternpublic interface tmdtestRemote rnpublic String tmdhello(String name);rnrnrnrn
关于xfire客户端用时异常
[img=https://img-bbs.csdn.net/upload/201311/14/1384416078_538033.jpg][/img]提示未找到类,但后面类路径却是null,这个怎么破?
在Dcom中客户端用时权限不够
我的客户和服务都是win2000,在调<em>用时</em>总是提示权限不够,在本地用的话都是正确的
solr客户端用时的URL分析
http://localhost:8888/solr/ -solr的地址 candata_core/ -solr的其中一个core select? -调用方法 -------------------------- -接下来主要分析查询的
xfire客户端用时千万注意!!!!!(原创)
前几天有个项目要用xfire<em>客户端</em>调用<em>webservice</em>,我就用myeclipse5.0自动生成的方法生成了很多类,然后单独写一个方法来调用相应的<em>webservice</em>服务,但问题出现了: 在一个测试类的main方法中调用写好的那个方法没有问题,而且能得到<em>webservice</em>的返回结果 但在jsp中调用那个方法总是报错,错误如下:   java 代码 message       ...
CXF 客户端用时header错误
2011-4-18 14:05:38 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL 信息: Creating Service {http://update.server.synch_data.boling.com/}DataDownloaderService from WSDL: ...
网页为什么时慢时快
我的网站刚开始进去很快,进入几个页面后就开始变慢了,而且不是全部变慢,状况是这样的,当某页面的进度条很慢时,再重新点该页面就一下就打开该页面,我想问问是服务器的原因还是别的,各位同行有什么好的建议和答案,谢谢rnapache是1.3.14rnrn
webservice里调Process.StandardOutput.ReadToEnd(),再写个客户端调这个webservice时超时。
在<em>webservice</em>里调Process.StandardOutput.ReadToEnd(),再写个<em>客户端</em>调这个<em>webservice</em>时超时,rn因为写log了,所以知道<em>客户端</em>调ws时到Process.StandardOutput.ReadToEnd()这个方法就停住了直到超时,rn但是我把Process.StandardOutput.ReadToEnd()写在一个正常的cs程序里就没有问题,不知道是什么原因,有高手可以解答下?谢谢。
客户端反应时尔快时尔慢是怎么回事儿
数据库:SQL 2005 rn<em>客户端</em>:VB6.0 rn近期客户反应时不时的就<em>客户端</em>偶尔就慢了。怎么检查问题呢
快就是慢,慢就是快
做一件事,问是快点做好,还是慢点做好?那答案很多就是“快” 但是经历的越多,你就越会发现很多事并不是越快越好   (1)有时候快就是慢 一个项目,着着急急开始做,前期流程没有分析好,着急做完后发现做的流程中和前期分析中留下的问题一大堆,然后一群人急急忙忙的又去改bug,一番忙活,发现所用的时间多了一大截,这叫快就是慢 项目多,时间赶,大家都很累,这时候最重要的是稳定人心,大家按照既定计划...
webservice
http://www.nnzbzh.cn:6000/ZBXZXService?wsdlrn这是地址,rnrn[code=delphi]// ************************************************************************ //rn// The types declared in this file were generated from data read from thern// WSDL File described below:rn// WSDL : http://www.nnzbzh.cn:6000/ZBXZXService?wsdlrn// Encoding : utf-8rn// Version : 1.0rn// (2013-8-1 10:24:52 - 1.33.2.5)rn// ************************************************************************ //rnrnunit uZBXZXService;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 // !:GetMes - "http://tempuri.org/"rn // !:GetMesResponse - "http://tempuri.org/"rn // !:GetMesLeng - "http://tempuri.org/"rn // !:GetMesLengResponse - "http://tempuri.org/"rn // !:inqTranFlow - "http://tempuri.org/"rn // !:inqTranFlowResponse - "http://tempuri.org/"rn // !:GetHBMD - "http://tempuri.org/"rn // !:GetHBMDResponse - "http://tempuri.org/"rn // !:GetAllMes - "http://tempuri.org/"rn // !:GetAllMesResponse - "http://tempuri.org/"rn // !:GetXZXMES - "http://tempuri.org/"rn // !:GetXZXMESResponse - "http://tempuri.org/"rn // !:GetHBMDSNUM - "http://tempuri.org/"rn // !:GetHBMDSNUMResponse - "http://tempuri.org/"rn//以下是我自己加的+++rn GetHBMD = Class;rn GetHBMDResponse = Class;rn GetHBMDSNUM = Class;rn GetHBMDSNUMResponse = Class;rnrn GetHBMD = class(TSOAPHeader)rn privatern Fid: WideString;rn Fcount: WideString;rn FYZM: WideString;rn publicrn publishedrn property id: WideString read Fid write Fid;rn property count: WideString read Fcount write Fcount;rn property YZM: WideString read FYZM write FYZM;rn end;rnrn GetHBMDResponse = class(TSOAPHeader)rn privatern Freturn: WideString;rn publicrn publishedrn property return: WideString read Freturn write Freturn;rn end;rnrn GetHBMDSNUM = class(TSOAPHeader)rn privatern publicrn publishedrn end;rnrn GetHBMDSNUMResponse = class(TSOAPHeader)rn privatern Freturn: WideString;rn publicrn publishedrn property return: WideString read Freturn write Freturn;rn end;rn//以上是我自己加的———rn // ************************************************************************ //rn // Namespace : http://tempuri.org/rn // soapAction: http://tempuri.org/IService/%operationName%rn // transport : http://schemas.xmlsoap.org/soap/httprn // binding : BasicHttpBinding_IServicern // service : Servicern // port : BasicHttpBinding_IServicern // URL : http://www.nnzbzh.cn:6000/ZBXZXServicern // ************************************************************************ //rn IService = interface(IInvokable)rn ['98ED6C0B-93D7-7F02-40EA-9A0E061E5A66']rn //function GetMes(const parameters: GetMes): GetMesResponse; stdcall;rn //function GetMesLeng(const parameters: GetMesLeng): GetMesLengResponse; stdcall;rn //function inqTranFlow(const parameters: inqTranFlow): inqTranFlowResponse; stdcall;rn function GetHBMD(const parameters: GetHBMD): GetHBMDResponse; stdcall;rn //function GetAllMes(const parameters: GetAllMes): GetAllMesResponse; stdcall;rn //function GetXZXMES(const parameters: GetXZXMES): GetXZXMESResponse; stdcall;rn function GetHBMDSNUM(const parameters: GetHBMDSNUM): GetHBMDSNUMResponse; stdcall;rn end;rnrnfunction GetIService(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): IService;rnrnrnimplementationrnrnfunction GetIService(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): IService;rnconstrn defWSDL = 'http://www.nnzbzh.cn:6000/ZBXZXService?wsdl';rn defURL = 'http://www.nnzbzh.cn:6000/ZBXZXService';rn defSvc = 'Service';rn defPrt = 'BasicHttpBinding_IService';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 IService);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(IService), 'http://tempuri.org/', 'utf-8');rn InvRegistry.RegisterDefaultSOAPAction(TypeInfo(IService), 'http://tempuri.org/IService/%operationName%');rn InvRegistry.RegisterInvokeOptions(TypeInfo(IService), ioLiteral);rnend.rn[/code]rnrn我想调用GetHBMD和GetHBMDSUN函数,并且能在程序里改wsdl的地址,谁帮我写一个调用的代码,谢谢。
www.linvserp.com中在客户端webservice错误。为什么?
在本机上试好的。但是在服务器上老是出错。为什么呢?我是在<em>客户端</em>调用<em>webservice</em>.
WMB问题,使用WebService客户端
我用程序调<em>用时</em>,使用的是一个Webservice的<em>客户端</em>,Webservice的<em>客户端</em>发送的是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
JavaBean调用时不执行
//bbsreg.javarnpackage twm;rnimport java.sql.*;rnrnpublic class bbsreg rn String sDBDriver;rn String sConncStr;rn Connection conn;rn ResultSet rs;rnpublic bbsreg()rn String url="jdbc:mysql://localhost:3306/bbs";rn sDBDriver="com.mysql.jdbc.Driver";rn conn=null;rn rs=null;rn String user="root"; rn String password="6949453";rn tryrn Class.forName(sDBDriver);//加载数据库rn conn=DriverManager.getConnection(url,user,password);//连接数据库rn [color=#0000FF]System.out.println("数据库连接成功!");[/color]可以打印输出 catch(ClassNotFoundException e)rn System.out.println(e.getMessage());rn catch(SQLException e) rn System.out.println("cannot connect the sql"); rnrnpublic ResultSet executeQuery(String sql) //创建查询结果集rn rs=null;rn tryrn Statement statement=conn.createStatement();rn rs=statement.executeQuery(sql);rn [color=#0000FF]System.out.println("正在查询!");[/color]不执行!! catch(SQLException e)rn System.out.println(e.getMessage()); rn rn return rs;rn rnpublic void executeUpdate(String sql)rn tryrn Statement statement=conn.createStatement();rn statement.executeUpdate(sql);rn catch(SQLException e)rn System.out.println(e.getMessage()); rn rnrnrn--------------------------------------------------------------------------------------------------------rn注册页面跳转到此页面。rnrnrnrnrnrnrnrnrn rn rn rn My JSP 'chklogin.jsp' starting pagern rn rn rn rn rn rn rnrn rn rn rn rn rn 若无法跳转,请点击这里rn rn rnrn
EJB调用时的问题
EJB发布到服务器后我用简单的java测试通过,就是Jbuuilder自动生成的那个,填上相关的数据测试的。 对方用jsp测试,数据发送过来也可以正确的写入到这边的数据库里面。rn可是问题是当对方用他的系统真的发送数据的时候出现如下错误:rnjava.sql.SQLException: java.sql.SQLException: javax.naming.NameNotFoundException: Unable to resolve 'NFJF_TEST' Resolved [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'NFJF_TEST' Resolved ]; remaining name 'NFJF_TEST'rnat weblogic.jdbc.jts.Driver.createRemoteConnection(Driver.java:403)rnat weblogic.jdbc.jts.Driver.connect(Driver.java:161)rnat weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:344)rnat com.dreamtel.db.conn.dbConnect.getConnection_ex(dbConnect.java:65)rnat com.dreamtel.db.conn.dbConnect.transBegin_ex(dbConnect.java:110)rnat com.dreamtel.interfaces.InterfacesBean.insert(InterfacesBean.java:78)rnat com.dreamtel.interfaces.Interfaces_kuhd1g_EOImpl.insert(Interfaces_kuhd1g_EOImpl.java:149)rnat com.dreamtel.interfaces.Interfaces_kuhd1g_EOImpl_WLSkel.invoke(Unknown Source)rnat weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)rnat weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)rnat weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)rnat weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)rnat weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)rnat weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)rnat weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)rnat weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)rnNFJF_TEST数据源在服务器是存在而且可用的阿rn还望大家多多帮忙rn谢谢rnat weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)rn
XFire+hibernate+Spring 调用时报错!!
这是错误信息:rnJava code[DEBUG] [org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:115)] erPipeline - Invoking phase servicern[DEBUG] [org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:129)] erPipeline - Invoking handler org.codehaus.xfire.client.ClientReceiveHandler in phase servicernException in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Faultrnorg.codehaus.xfire.fault.XFireFault: Faultrn at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)rn at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)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 $Proxy0.GetJLSet(Unknown Source)rn at jia.tf.Test.testSHXFire(Test.java:67)rn at jia.tf.Test.main(Test.java:51)rnrnrn调用:rnJava codeService service = new ObjectServiceFactory().create(ICheckLogin.class);rn XFireProxyFactory proxyFactory = new XFireProxyFactory(XFireFactory.newInstance().getXFire());rn String url = "http://localhost:8080/computation/services.ws";rn ICheckLogin login = (ICheckLogin) proxyFactory.create(service, url);rn// System.out.println(login.test("123"));rn List listf = login.GetJLSet();rn for(FlSysSet fss : listf)rn rn System.out.println(fss.getCmemo());rn rnrnrn配置文件:rnXML codern rn rn rn rnrn
水晶报表调用时出错???
指定的参数已超出有效值的范围。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.ArgumentOutOfRangeException: 指定的参数已超出有效值的范围。rnrn源错误: rnrnrn行 55: rn行 56: ParameterFields paramFields = CrystalReportViewer1.ParameterFieldInfo;rn行 57: ParameterField paramField0 = paramFields["test"];rnrn 为什么??rn
在用调用时的问题..
我在用外部swf调用名为pop.swf时.不知怎的.调用后就不正常了.而单独放pop.swf又很正常.,,唉.我为这事头都大了.好像以前有人说过是_root路径的问题.还有_level之类的问题.我试了.可不知怎.还是没解决,,请高手给我治治. 明天就要放假了.急救.rnrnwww.flash8.net/bbs/viewFile....id=10&ID=133370
参数调用时的问题
在方法调<em>用时</em>,如果用的是传值调用的话,方法只是将定义在方法外的变量作复制,然后进行运算,变量本身不发生改变。可以下代码的BufferReplace()方法执行后,变量textBufferString的值发生了改变,请问为什么?rnpublic class T6 rn public static void StringReplace(String text)rn text=text.replace('j', 'i');rn System.out.println(text);rn rn public static void BufferReplace(StringBuffer text)rn text=text.append("C");rn rn rn public static void main(String[] args)rn String textString=new String("java");rn StringBuffer textBufferString=new StringBuffer("java");rn rn StringReplace(textString);rn BufferReplace(textBufferString);rn rn System.out.println(textString+textBufferString);rn rn
CFilediglog 调用时错误
CFileDialog    dlgFile(TRUE, NULL, NULL, OFN_HIDEREADONLY, _T("Describe Files (*.cfg)|*.cfg|All Files (*.*)|*.*||"), NULL);(这源自网络,我是按VS2010定义写的)rn我最近改用VS2010,单步到这里就错误,走进去貌似走到getcurrentinstance吧(我手机写的),然再进去到了个API然后就挂了。可是忽略了又可以正常工作。rn出问题的位置是在一个连接Ado数据库的全局类的私有函数,附近有try catchrn我用高一一年业余写了这软件,现在暑假得赶快把它做好,高二没时间了rn求大神救济!做我的指导老师也好,现在没时间自学咯
response.sendRedirect调用时出错
/*rn * Created on 2005-7-11rn */rnpackage com.tatchun.util;rnimport javax.servlet.http.HttpSession;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport java.io.IOException;rnimport org.apache.log4j.Logger;rnrn/**rn * @author johnsonrn */rnpublic class SessionUtil rn Logger logger = Logger.getLogger(SessionUtil.class.getName());rn HttpSession session = null;rn HttpServletResponse response = null;rn HttpServletRequest request = null;rn rn public SessionUtil(HttpSession session, HttpServletRequest request, HttpServletResponse response)rn this.session = session;rn this.request = request;rn this.response = response;rn rn rn public boolean validSession()rn if(session == null)rn dispErrorPage();rn return false;rn rn return true; rn rn public void dispErrorPage()rn tryrn response.sendRedirect("/tatchun/index.jsp");rn catch(IOException e)rn logger.debug("Exception in SessionUtil.disErrorPage()"+e.getMessage());rn e.printStackTrace();rn rn rn rn public Object getAttribute(String str)rn if(session.getAttribute(str) == null)rn session.invalidate();rn dispErrorPage();rn return null;rn elsern return session.getAttribute(str);rn rn rn rn public void setAttribute(String str, Object obj)rn session.setAttribute(str, obj);rn rnrn当运行到我调用SessionUtil程序判断是否有效session,如果无效就运行dispErrorPage(),但是调用dispErrorPage()的时候抛出以下错误,请问是怎么一回事?rntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn at java.lang.Thread.run(Thread.java:534)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn at org.apache.jsp.kqrbIndex_jsp._jspService(kqrbIndex_jsp.java:70)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn at java.lang.Thread.run(Thread.java:534)rn
用时编译器的优化问题
构造拷贝构造的N种调用情况的编译器优化1、传参合传返回值时构造的优化处理include using namespace std;class Date { public: Date()//构造 { cout << "Date()" << endl; } Date(const Date& d)//拷贝 { cou
存储过程调用时出错
我要在存储过程中返回一个结果集rn分别统计六张表中的记录数rn我用了一个临时表,统计出结果然后放进去,最后rnSELECT * FROM #TEPTABLErn在查询分析器中执行这个存储过程,得到正确结果rn在外面调<em>用时</em>,说在对象关闭时,不能执行操作.rn
curses.wrapper调用时报错
新手玩家上路,在碰到一个curses.wrapper调<em>用时</em>报错,请大家帮忙,谢谢!rnrn环境:rnrnPython3.6rnrn在使用函数时,好像可以使用rnrndef creats(stdscr):rn print('输入q退出')rn stdscr = curses.initscr()rn while True:rn c = stdscr.getch()rn if c == ord('p'):rn PrintDocument()rn elif c == ord('q'):rn break # Exit the while()rn elif c == curses.KEY_HOME:rn x = y = 0rnrnrncurses.wrapper(creats)rnrn但是,当我想转成类的时候,会报错rnrnclass tests():rn rn def __main__(self): rn rn passrn rn rnstdscr = curses.initscr()rncurses.wrapper(tests)rnrnTraceback (most recent call last):rn File "标准.py", line 29, in rn curses.wrapper(tests)rn File "E:\python36\lib\curses\__init__.py", line 94, in wrapperrn return func(stdscr, *args, **kwds)rnTypeError: object() takes no parametersrnrn请大神们指导下,谢谢
在animateWithDuration调用时旋转
用下面的代码动画UIView,运行正常,就是不能实现在调<em>用时</em>实现旋转和缩放,我想同时实现这些,需要缩放至0,并且旋转。rnrn [UIView animateWithDuration:0.4 delay:0.0 options:UIViewAnimationOptionCurveEaseInOutrn animations:^(void) rn recognizer.view.transform = CGAffineTransformMakeRotation(DegreesToRadians(540));rn recognizer.view.backgroundColor = [[UIColor alloc] initWithRed:220.0/255.0 green:220.0/255.0 blue:220.0/255.0 alpha:1.0]; rn ];
header()调用时出错。
header()调<em>用时</em>出错。rndo_register.php页面执行到 header("Location:msg.php?m=register_success");rn时出错。rnWarning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\accountSys\register.php:9) in C:\wamp\www\accountSys\do_register.php on line 29rnrnrnregister.php代码:rn[code=PHP]rnrnrn rn rn rn 用户名:rn * rn rn 你的全名或你更喜欢的名字。允许中英文,空格和数字。rn rn rn 密码:*rn rn 请输入您的密码。rn rn 请再次输入您的密码。rn rn rn rn rnrnrn rn rn[/code]rnrnrndo_register.php代码:[code=PHP][/code]
函数指针在调用时的问题
void Function1(void (*pFunc)())rnrn pFunc();rnrnrnvoid Func2() ;rnrnint main()rnrn Function1(Func2);rn//和rn Function1(&Func2);rn//有什么不同? 结果好像都一样rn
请问我的水晶报表调用时为什么页面显示那么慢?
我的代码如下:rnstring sqlStr = "SELECT user_no,buy_num,money,price,b_date,oper_no, type FROM M_BUYDETAIL";rnSqlDataAdapter da = new SqlDataAdapter(sqlStr, sg_mainForm.m_connStr);rnds ds1 = new ds();rnda.Fill(ds1,"buydetail");rncrReportDocument = new cr_date();rncrReportDocument.SetDataSource(ds1);rncrv.ReportSource = crReportDocument;rn但是当我在一个窗体调用这个水晶报表显示时为什么要过5-6秒钟之后才显示出来这个报表窗体呢?是不是我的调用有问题?谢谢!!
webservice 生成客户端时报错
用的是axis1.4 jdk1.6,tomcat5.5rn用下面这句话生成代理时报错:rnPROVServiceAgentLocator provService = new PROVServiceAgentLocator();rnrnrn[code=Java]Exception in thread "Thread-33" java.lang.IncompatibleClassChangeError: Implementing classrn 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 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:169)rn at org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.class$(JAFDataHandlerDeserializerFactory.java:35)rn at org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.getDeserializerClass(JAFDataHandlerDeserializerFactory.java:53)rn at org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.(JAFDataHandlerDeserializerFactory.java:38)rn at org.apache.axis.encoding.DefaultTypeMappingImpl.initMappings(DefaultTypeMappingImpl.java:120)rn at org.apache.axis.encoding.DefaultTypeMappingImpl.(DefaultTypeMappingImpl.java:91)rn at org.apache.axis.encoding.DefaultTypeMappingImpl.getSingletonDelegate(DefaultTypeMappingImpl.java:85)rn at org.apache.axis.encoding.TypeMappingRegistryImpl.(TypeMappingRegistryImpl.java:155)rn at org.apache.axis.encoding.TypeMappingRegistryImpl.(TypeMappingRegistryImpl.java:149)rn at org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:449)rn at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)rn at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:65)rn 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 com.asiainfo.aires.valuecard.client.bossVCNGClient.serviceEngine.PROVServiceEngine._1_0_0.PROVServiceAgentLocator.(PROVServiceAgentLocator.java:12)rn at com.asiainfo.aires.valuecard.client.CallBossVCClientCardServiceImpl.callBossVCClientCardActive(CallBossVCClientCardServiceImpl.java:56)rn at com.asiainfo.aires.valuecard.client.ThreadToCardSingleActiveOrRemoveActive$1.run(ThreadToCardSingleActiveOrRemoveActive.java:36)rn at java.lang.Thread.run(Thread.java:619)[/code]rnrn在网上找了下都是说是JAR包的问题。但找了半天也没找到。
客户端调用webservice时报错
错误提示:DocumentElement http://schemas.xmlsoap.org/soap/envelope/:Envelope expected, :html foundrn请问这是什么问题,哪里出了问题么?因为不是每次都出这个错误。但出现的概率挺大。
客户端使用webservice时的重大问题
各位,我碰到一个问题,在<em>客户端</em>使用<em>webservice</em>时,在本机上测试不会有任何问题,但是,用其他的机器来浏览调用该webserice的页面时,为什么会出现这样的问题:浏览器提示:“该页正在访问其控制范围之外的信息,这有危险,是否继续?”的提示信息,我选择了是,但是还是得不到正确的返回结果。
大家快来看啊,我的javaBean在调用时,总是出现问题
package db;rnimport java.sql.*;rnpublic class connectrnrnprivate Connection conn=null;rnprivate ResultSet rs=null;rnpublic connect()rnrnrnpublic Connection setConnection(String db)rnrnString dbs="jdbc:odbc:"+db;rntryrnrnClass.forName("sun.jdbc.odbc.JdbcOdbcDriver");rnConnection conn=DriverManager.getConnection(dbs);rnrncatch(Exception e)rnreturn conn;rnrnpublic ResultSet getResultset(String sql)rnrntryrnrnStatement stm=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);rnrs=stm.executeQuery(sql);rnrncatch(Exception e)rnreturn rs;rnrn rn这是我写的javaBean
运行速度进快时慢,着急ING
PB9.0.1,SYBASE 11.9.2 WIN2000SRVrn用户在运行程序时速度特别慢日志如下,请高手指点:rn00:00000:00032:2004/03/24 11:01:56.28 kernel Cannot send, host process disconnected: 3840 spid: 32rn00:00000:00032:2004/03/24 11:01:56.28 server Error: 1608, Severity: 18, State: 4rn00:00000:00032:2004/03/24 11:01:56.28 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.rn00:00000:00025:2004/03/24 11:01:56.28 kernel Cannot send, host process disconnected: 7792 spid: 25rn00:00000:00017:2004/03/24 11:01:59.51 kernel Cannot send, host process disconnected: 2108 spid: 17rn00:00000:00017:2004/03/24 11:01:59.51 server Error: 1608, Severity: 18, State: 4rn00:00000:00017:2004/03/24 11:01:59.51 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.rn00:00000:00011:2004/03/24 11:01:59.53 kernel Cannot send, host process disconnected: 1956 spid: 11rn00:00000:00026:2004/03/24 11:01:59.53 kernel Cannot send, host process disconnected: 2324 spid: 26rn
求助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()可以调用,但是我自己写的没法子调用了,rnrn出现的是:rnrnrnrn就这些代码,看不懂啊。rnrn之前成功的是数据库的内容。。rnrn怎么回事啊?请教大神。。。已经卡了一周了,完全不知道怎么回事。。。rnrn
webservice 被winForm应用程序调用时 的 安全处理问题
如题:rn本人做了一个 <em>webservice</em> 但是 在 winForm 中 调<em>用时</em> 不知道 怎么控制他们的访问!rn在 webConfig 中怎么配置? 请高手指点! 谢谢!
求助: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>客户端</em>访问<em>webservice</em>中无参数的方法,可以返回正确信息,但访问一个带参数的方法时,无法调用方法。各位有没有碰到这个问题,请多指教。
WebService调用时参数传递问题。谢谢各位指教^_^
我有个WebMothod:rnpublic byte[] ReceiveByte2(string strQueueName,ref string strMsgLable)rnrn ......rnrnrn我在<em>客户端</em>调<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
webservice发布没问题 调用时axisfault:java.net.ConnectException: Connection refused: conn
这个问题几天了,麻烦高手们帮我看下,非常感谢!rn问题描述:rn我的<em>webservice</em>用的是Axis 1.0,架设的时候,就是把Axis文件夹放到相应的tomcat安装目录的webapps目录下。rn1.修改了tomcat的server.xml文件,将<em>webservice</em>服务器端项目路径部署到了tomcat里面,部分代码如下:rn[code=XML] rn rn [/code]rnrn2.<em>webservice</em>里面的server-config.wsdd文件是我自己加上的,不是它自动生成的,因为每次按照网上的方法生成都不成功,部分代码如下:rn[code=XML]rnrnrn[/code]rnrn3.启动tomcat,访问我发布的<em>webservice</em>:rnhttp://192.168.1.136:8080/Axis/services/TongdaoWsrn可以成功。(不能上图,我把访问出来的页面发在下面,但是有个小问题,问题1:为什么这样访问,不能显示我发布在TongdaoWs的里面的方法,而要在访问的url后面加上?wsdl才能看到里面的方法,还是本来就是这样的?)rnrnTongdaoWsrnHi there, this is an AXIS service!rnrnPerhaps there will be a form for invoking the service here... rnrn4.<em>客户端</em>调用我发布的<em>webservice</em>,部分代码如下(调<em>用时</em>,需要传递一个mianid参数进去,测试过,这个mainid在程序中是可以获取的):rn[code=Java]public void invokeTd(String mainid)rn try rn String url = "http://192.168.1.136:8080/Axis/services/TongdaoWs";rn Service serv = new Service();rn Call call = (Call) serv.createCall();rn call.setTargetEndpointAddress(url);rn System.out.println("1");rn call.setOperationName(new QName(url, "invokeWg"));rn System.out.println("2");rn call.invoke(new Object[] mainid );rn System.out.println("3");rn //call.setOperationName(new QName(url, "Test"));rn //System.out.println("4");rn System.out.println("通道成功!!");rn rn catch (ServiceException e) rn e.printStackTrace();rn rn catch (RemoteException e) rn e.printStackTrace();rn rn catch (Exception e) rn e.printStackTrace();rn rn rn[/code]rnrn如上:rn运行出来的结果是:rn1rn2rnrn3和“通道成功!!”都没有打印出来,说明那个传mainid的地方根本就没有执行,但是也不报错,但是mainid打印出来过,是有值的。所以我怀疑是传递参数的问题,于是做了另外一个实验,还是上面的代码,在<em>webservice</em>服务器端又写了一个不传参数的最简单的Test方法,就是上面被注释掉的。Test方法会打印一句话"通道是好的!!!!只是不能传参数"。rn现在假定把上面代码的rnSystem.out.println("1");rncall.setOperationName(new QName(url, "invokeWg"));rnSystem.out.println("2");rncall.invoke(new Object[] mainid );rn这4句话(也就是调用invokeWg(String mainid))的这个方法注释掉了,<em>客户端</em>只调用无参的,可以打印语句的Test()方法,输出结果是:rn3rn4rn通道成功!!rnrn这个结果很让人纠结,因为它可以打印出rn4rn通道成功!!rn就说明它执行到了调用Test()方法后面,上面如果调用那个传参的invokeWg方法,这个后面的语句都是不会执行的。但是这里既然执行了,为什么打印不出Test里面要打印的语句呢?rnrn现在就是调用的问题了,在同事的电脑上调用我的<em>webservice</em>,报错如下:rnAxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Server.userExceptionrn faultSubcode: rn faultString: java.net.ConnectException: Connection refused: connectrn faultActor: rn faultNode: rn faultDetail: rn http://xml.apache.org/axis/stackTrace:java.net.ConnectException: Connection refused: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)rn at java.net.Socket.connect(Socket.java:516)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)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.sendServer.TongdaoWs.invokeWg(TongdaoWs.java:114)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)rn at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)rn at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)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.handlers.soap.SOAPService.invoke(SOAPService.java:454)rn at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)rn at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)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 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:595)rnrn http://xml.apache.org/axis/hostname:LEJER0FQOX6AT6Hrnrn
关于,java-webservice接口,根据服务端,自动生成客户端用时,响应时间慢
我这边遇到的问题,是在和对方进行<em>webservice</em>接口交互的时候,用工具,调用对方的<em>webservice</em>接口,对方响应很快。但是用java生成的<em>客户端</em>调用就会很慢才得到响应。大概有5分钟左右。 这里我百度了下,百度上说的是因为http1.0和http1.1的差别,[https://blog.csdn.net/u012470138/article/details/53034327] j 加上这...
读《思考,快与慢》
讲人的思考模式的书,二种模式:快的,慢的。通过引用示例来分析这些模式并进行对比。
判断网络的快和慢
运行cmd,终端输入ipconfig/all,ping 输入默认网关IP地址和DNS服务器地址,查看字节后面的时间,时间越小网速越快(代表等待时间)
思考,快与慢
Thinking, Fast and Slow,丹尼尔·卡尼曼,获得2002年诺贝尔经济学奖 1. 人脑的两个思维系统 (1)系统 I自动起作用,能迅速对事物给出一个很难被改变的第一印象; (2)系统 II费力而缓慢,需要我们集中注意力进行复杂的计算,甚至在系统 II 工作时,瞳孔都会放大。
快速排序(快)和选择排序(慢)
//快速排序 (Devc++下的C语言) #include&amp;lt;iostream&amp;gt; #include&amp;lt;stdio.h&amp;gt; #include&amp;lt;stdlib.h&amp;gt; #include&amp;lt;time.h&amp;gt; using namespace std; clock_t t1,t2; double t; int r[100]; int Partition(int r[],...
webservice和spring集成后(返回的是List集合)客户端用时出的问题
at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392)rn at org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:298)rn at org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)rnorg.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in start tagrn at [row,col unknown-source]: [1,39952]rnorg.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in start tagrn at [row,col unknown-source]: [1,39952]rnrn这个是什么错呀 我确实搞的很纠结呀 各位大侠看看
delphi中使用webservice,在客户端用时显示“文档的顶层无效”?
delphi中使用<em>webservice</em>,在<em>客户端</em>调<em>用时</em>显示rn 文档的顶层无效。rnline:2rn
快衰落 与 慢衰落
快衰落 与 慢衰落
C#写的WebService端如何得到客户端用时传来的XML数据?
StreamReader srd = new StreamReader(HttpContext.Current.Request.InputStream);rn string strReq = srd.ReadToEnd();rnrn 尝试了这样子拿不到的样子?哪位大侠分享一下?
请问用eclipse建立的webService客户端,调用时为何显示有异常
rn用eclipse建立的webService<em>客户端</em>,在使用上完成正常,能正确发送请求并取得结果,但我将LOG4J配置成DEBUG后,看到每调用一次者抛出两次错误(如下,载取自出错日志),请问是何原因?rnrn...rn16:47:01,828 DEBUG [main] org.apache.axis.MessageContext : MessageContext: setTargetService(PortalEngineDX)rn16:47:01,828 DEBUG [main] org.apache.axis.i18n.ProjectResourceBundle : org.apache.axis.i18n.resource::handleGetObject(noService10)rn16:47:01,828 DEBUG [main] org.apache.axis.ConfigurationException : Exception: rnorg.apache.axis.ConfigurationException: No service named PortalEngineDX is availablernorg.apache.axis.ConfigurationException: No service named PortalEngineDX is availablern at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)rn at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)rn at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)rn at org.apache.axis.client.Call.invoke(Call.java:2671)rn at org.apache.axis.client.Call.invoke(Call.java:2424)rn at org.apache.axis.client.Call.invoke(Call.java:2347)rn at org.apache.axis.client.Call.invoke(Call.java:1804)rn at com.ct.schema.portal.enginedx.PortalEngineDXSoapBindingStub.createUser(PortalEngineDXSoapBindingStub.java:844)rn at com.ct.schema.portal.enginedx.PortalEngineDXProxy.createUser(PortalEngineDXProxy.java:81)rn at com.k99k.portal.TestSoap1.main(TestSoap1.java:44)rnrn at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)rn at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)rn at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)rn at org.apache.axis.client.Call.invoke(Call.java:2671)rn at org.apache.axis.client.Call.invoke(Call.java:2424)rn at org.apache.axis.client.Call.invoke(Call.java:2347)rn at org.apache.axis.client.Call.invoke(Call.java:1804)rn at com.ct.schema.portal.enginedx.PortalEngineDXSoapBindingStub.createUser(PortalEngineDXSoapBindingStub.java:844)rn at com.ct.schema.portal.enginedx.PortalEngineDXProxy.createUser(PortalEngineDXProxy.java:81)rn at com.k99k.portal.TestSoap1.main(TestSoap1.java:44)rn16:47:01,828 DEBUG [main] org.apache.axis.MessageContext : MessageContext: setServiceHandler(null)rn16:47:01,828 DEBUG [main] org.apache.axis.i18n.ProjectResourceBundle : org.apache.axis.i18n.resource::handleGetObject(targetService)rn16:47:01,828 DEBUG [main] org.apache.axis.client.Call : Target service: PortalEngineDXrn16:47:01,828 DEBUG [main] org.apache.axis.MessageContext : MessageContext: setTargetService()rn16:47:01,828 DEBUG [main] org.apache.axis.i18n.ProjectResourceBundle : org.apache.axis.i18n.resource::handleGetObject(noService10)rn16:47:01,828 DEBUG [main] org.apache.axis.ConfigurationException : Exception: rnorg.apache.axis.ConfigurationException: No service named is availablernorg.apache.axis.ConfigurationException: No service named is availablern at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)rn at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)rn at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)rn at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(HTTPTransport.java:89)rn at org.apache.axis.client.Transport.setupMessageContext(Transport.java:46)rn at org.apache.axis.client.Call.invoke(Call.java:2719)rn at org.apache.axis.client.Call.invoke(Call.java:2424)rn at org.apache.axis.client.Call.invoke(Call.java:2347)rn at org.apache.axis.client.Call.invoke(Call.java:1804)rn at com.ct.schema.portal.enginedx.PortalEngineDXSoapBindingStub.createUser(PortalEngineDXSoapBindingStub.java:844)rn at com.ct.schema.portal.enginedx.PortalEngineDXProxy.createUser(PortalEngineDXProxy.java:81)rn at com.k99k.portal.TestSoap1.main(TestSoap1.java:44)rnrn at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)rn at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)rn at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)rn at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(HTTPTransport.java:89)rn at org.apache.axis.client.Transport.setupMessageContext(Transport.java:46)rn at org.apache.axis.client.Call.invoke(Call.java:2719)rn at org.apache.axis.client.Call.invoke(Call.java:2424)rn at org.apache.axis.client.Call.invoke(Call.java:2347)rn at org.apache.axis.client.Call.invoke(Call.java:1804)rn at com.ct.schema.portal.enginedx.PortalEngineDXSoapBindingStub.createUser(PortalEngineDXSoapBindingStub.java:844)rn at com.ct.schema.portal.enginedx.PortalEngineDXProxy.createUser(PortalEngineDXProxy.java:81)rn at com.k99k.portal.TestSoap1.main(TestSoap1.java:44)rn16:47:01,828 DEBUG [main] org.apache.axis.MessageContext : MessageContext: setServiceHandler(null)rn16:47:01,843 DEBUG [main] org.apache.axis.SOAPPart : Enter: SOAPPart::getAsSOAPEnvelope()rn...rn
快和慢的辩证法
当去做一件事情,而且这件事情唾手可得的时候,我们就会形成一种迫不及待的思维习惯。 反之,当我们要去做一件事情需要经过一些必要的环节的时候,我们就形成了耐心的习惯。 前者高效后者是对待新事物的心态。 比如吃饭,可以随便吃点,玩游戏,瞬间就成功了,但是学习不是立即马上得到结果的,所以既要追求速度,也要能够主动做一些慢节奏的事情,快节奏是目的,慢节奏是调节生活不致没有速成而半途而废最终造成懒惰的本
《思考,快与慢》 读书笔记
大脑有两套系统,即系统1和系统2 系统1的运行是无意识且快速的,不怎么费脑力,没有感觉,完全处于自主控制状态。 系统2将注意力转移到需要费脑力的大脑活动上来,例如复杂的运算,系统2的运行通常与行为、选择和专注等主观体验相关联。   瞳孔是人类思维活动的灵敏指示器   创新是发生在能让人联想无限的环境中   喜欢(讨厌)某个人就会喜欢(讨厌)这个人的全部——包括你还没有观察到的方面...
慢即是快
慢即是快 在想要得到一个东西时候,越是急于抓到手,越是得不到,反而自己也越来越急躁,乱了阵脚。慢慢来,每一步都走踏实了,就像一座摩天大楼,根基很重要,盲目的想要快点建成,大楼终将在某一天倒塌!所以慢即是快 和自己好好谈谈 当你感觉每天都很疲惫的时候,你就需要冷静的面对自己,自己和自己好好谈谈!想想自己这么努力的追赶为什么还是没有达到目标?到底是哪里出了问题?当你的身体与思想跟不上的时候,真的应该
快重传+慢开始
n=22; sst=16; tim=13; cwnd=zeros(n,1); fwnd=zeros(n,1); rwnd=zeros(n,1); frwnd=zeros(n,1); x=zeros(n,1); mw=10; cwnd(1)=2; fwnd(1)=2; n=22; tsst=sst; for i=1:n     x(i)=i; end for i=2:n     if i==ti...
客户端使用时,查询和提交数据非常慢怎么办?
服务器 IMB x3620 8G的内存,两台(双击热备份)rnrnoracle 10G 32bit 的rnrnSGA 1Grnpga 300Mrnrnrn不知道怎么排查故障,查找性能瓶颈,菜鸟一只,求指导!!!
测试Webservice方法GetFile(string fileName)正常,客户端用时出错 !!!
[WebMethod]rn public WebFile GetFile(string fileName)rn rn WebFile webFile=new WebFile();rn string filePath="c:\\Inetpub\\"+fileName;rn //rn webFile.Name=fileName;rn //rn Stream s=File.Open(filePath,FileMode.OpenOrCreate);rn webFile.Contents=new byte[s.Length];rnrn=============<em>客户端</em>rnpublic class WebFileUtilrn rn static int Main(string [] args)rn rn if(args.Length3)rn rn DisplayUsage();rn return 1;rn rn //rn String source=args[1];rn String destination=source;rnrn if(args.Length==3)rn destination=args[2];rn rn switch(args[0].ToUpper())rn rn case"DIR":rn ListFiles();rn break;rn case"GET":rn GetFile(source,destination);rn break;rn default:rn DisplayUsage();rn break;rn rn return 0;rn rn private static void ListFiles()rn rn Service1 webDir=new Service1();rn string[] files;rn files=webDir.ListFiles();rn foreach(string file in files)rn rn Console.WriteLine(file);rn rn Console.WriteLine("\n0 file(s) in directory.",files.Length);rn rn private static void GetFile(string source,string destination)rn rn Service1 webDir=new Service1();rn WebFile webFile=new WebFile();rn //rn webFile=webDir.GetFile(source);rn //rn FileStream fs=File.OpenWrite(destination);rnrnrnrn×××××××××报异常rnUnhandled Exception: System.Web.Services.Protocols.SoapException: System.Web.Serrnvices.Protocols.SoapException: Server did not recognize the value of HTTP Headerrn SOAPAction: http://tempuri.org/GetFile.rn at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()rn at System.Web.Services.Protocols.SoapServerProtocol.Initialize()rn at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttprnContext context, HttpRequest request, HttpResponse response, Boolean& abortProcernssing)rn at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapCliernntMessage message, WebResponse response, Stream responseStream, Boolean asyncCalrnl)rn at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodNrname, Object[] parameters)rn at ConsoleApplication2.localhost.Service1.GetFile(String fileName)rn at WebFileUtil.GetFile(String source, String destination)rn at WebFileUtil.Main(String[] args)rn
为什么webservice中调用正常,而在客户端用时无法调用?
我在<em>webservice</em>中写了个函数,运行,调用都正常,但是在web窗体内调用就不能正常调用。
函数模板隐式调用时的优先级
#include #include using namespace std; //当函数模板隐式调<em>用时</em>,若同时存在模板函数和非模板函数,优先匹配非模板函数 template inline void foo(T a) { cout << "in template\t" << a << endl; } inline void foo(int a) { cout << "in speci
WebServices调用时RSA问题
我做了一个WebServices并且发布好了。让后在一个Winfrom应该程序引用了这个WebServices。当引用发布的地址时如:http://aa.aaa.com,执行时出现 WebServices中的RSA加密算法获取密钥 的异常。当引用本地的http://localhost:3493/ReqService.asmx时可以正确执行
关于动态连接库调用时的错误
在用Visual Studio .NET 中制作了一个DLL,库中包含一个函数:rnCUBICSPLINE_API int Test(vector x, vector y);rn制作过程没有问题,但是把Test.h,Test.lib和Test.dll放入另一个解决方案之后,编译时出错,显示如下:rnd:\MySolution\MySolution\Test.h(22) : error C2065: “vector” : 未声明的标识符rn但是我的stdafx.h头文件中已经包含了#include。rnrn请高手指点。本人不是学计算机的,麻烦解释得详细一些。非常感谢!
ejb调用时提示“NoSuchMethodError”
程序如下:仿照petstore来的rnrnpublic synchronized EventResponse handleEvent(Event ev, HttpSession session)rn throws EventException rnrn DefaultComponentManager cm=new DefaultComponentManager();rn EJBControllerLocal controllerEJB =cm.getEJBController(session);rn //以上成功rn return controllerEJB.processEvent(ev);rn rnrn在浏览器执行时出错,提示NoSuchMethodError,但是在jbuilder中编译时是可以的。rnrn由于这是web层的程序,它要import EJBControllerLocal ,后者是ejb层的,在另一个目录,所有我把那个文件拷了一个到web层,在没有修改接口名称的情况下,是否要求同步更新呢?rnrn到底是怎么回事啊?rnrn另外这和本地调用有关系吗?
DLL调用时参数匹配问题
..., int *numOfRecord, int *numOfRetRecord) 这是函数原型的写法 Crn我调用的时候声明如下: ..., numOfRecord, numOfRetRecord:^integer) : boolean;...rn编译却总不能通过 : [Error] Unit1.pas(36): Identifier expected but '^' foundrn觉得我写的写法没错啊 可是。。。
fushioncharts循环调用时内存问题
使用定时器无限次调用fushioncharts渲染图标时浏览器内存占用持续上涨问题解决方案!
EntityFramework连接串的调用时传入
EntityFramework自动将数据库映射到Model,同时会生成相应的连接字符串,如下图。 生成之后,我们看到自动生成的DBDemoEntities的类,只有一个默认的无参的构造函数,如下图 这在一般情况下是OK的,因为只我们在App.config或者Web.config配置了这个连接串即可。如下图。 但是当我们希望自己传入连接字符串时,就无能为力了。那我们怎么
htmlhelp()调用时的奇怪问题
我已完成.chm文件的制作。rn且在菜单中有相应的调用.chm的菜单。rn问题是:rn每次打开程序,只有先调用该菜单命令,那么一切都正常。但如果先调用了“打开文件对话框”则.chm文件无法打开。rnhtmlhelp.hrnhtmlhelp.librn已添加,且在相应目录下。使用rnHtmlHelp(NULL, "ASPDOC.CHM::/ASPDOC.htm", HH_DISPLAY_TOPIC, 0);rn请大家看看,究竟可能是什么问题?
[求助]自定义组件调用时出错
目的是做自定义按钮组控件,所有按钮执行onclick事件,并根据事件参数动态添加删除和保存按钮rnrn红色部分该如何写。后台动态添加按钮到HeadToolButtonItem出错(索引超出数组界限)rnrn调用代码:rnprotected void tt(object sender, EventArgs e)rn rn string args = ((Button)sender).CommandArgument;rn txt_Name.Text = args+sender.ToString();rn if (args == "Edit")rn rn ... //添加删除和保存按钮rn rn rnrn控件代码:rn /// rn /// 构造函数rn /// rn public HeadTooBarControls()rn rn _ButtonList = new List();rn rnrn #region "Private Variables"rn private List _ButtonList = new List();rnrn /// rn /// 按钮集合rn /// rn [rn Category("Behavior"),rn Description("按钮集合"),rn Editor(typeof(CollectionEditor), typeof(UITypeEditor)),rn PersistenceMode(PersistenceMode.InnerDefaultProperty)rn ]rn [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] rn public List ButtonListrn rn getrn rn object m = ViewState["ButtonList"];rn return m == null ? _ButtonList : (List)m;rn rn setrn rn ViewState["ButtonList"] = value;rn rn rnrn #region private proppertiesrn //定义button对象rn private Button[] _button;rn private Button _currbutton;rn //定义Click事件委托对象rn private static readonly object EventClick = new object();rn #endregionrnrn #region Overriden propertiesrn /// rn /// 子控件集合rn /// rn public override ControlCollection Controlsrn rn getrn rn //判断是否已生成控件集合,如果未生成,则调用CreateChildControls()rn EnsureChildControls();rn return base.Controls;rn rn rn #endregion Overriden propertiesrnrn #region Eventsrn /// rn /// 事件委托rn /// rn [rn Category("Action"),rn Description("Raised when the user clicks the button")rn ]rn public event EventHandler Clickrn rn addrn rn Events.AddHandler(EventClick, value);rn rn removern rn Events.RemoveHandler(EventClick, value);rn rn rnrn /// rn /// 事件rn /// rn /// rn protected virtual void OnClick(EventArgs e)rn rn EventHandler logonHandler =rn (EventHandler)Events[EventClick];rn if (logonHandler != null)rn rn logonHandler(this._currbutton, e);rn rn rn #endregionrnrn #region Event bubblingrn // The use of event bubbling in this scenario is somewhat contrived;rn // We have implemented it mainly for demonstration purposes.rn // In this case you could insteadrn // Raise the Logon event from an event handler wired to thern // Click event or to the Command event of the Button control.rnrn /// rn /// 控件内包含的控件向外层控件作事件冒泡rn /// rn /// rn /// rn /// rn protected override bool OnBubbleEvent(object source, EventArgs e)rn rn bool handled = false;rnrn if (e is CommandEventArgs)rn rn CommandEventArgs ce = (CommandEventArgs)e;rn _currbutton = (Button)source; //无法获取当前点击的Buttonrn if (ce.CommandName == "Click")rn rn OnClick(EventArgs.Empty);rn handled = true;rn rn rn return handled;rn rn #endregion Event bubblingrnrn #region Overriden methodsrn //Createchildcontrols在页生命周期的各个阶段都有可能被执行rn //CreateChildControls方法来对子控件进行实例化、初始化、并把这些子控件添加到控件树中。rnrn /// rn /// CreateChildControls方法rn /// rn protected override void CreateChildControls()rn rn Controls.Clear();rn _button = new Button[ButtonList.Count];rnrn if (ButtonList != null && ButtonList.Count > 0)rn rn int DispButtonNum = 0;rn for (int i = 0; i < ButtonList.Count; i++)rn rn if (ButtonList[i].ButtonVisible && FrameWorkPermission.CheckButtonPermission(ButtonList[i].ButtonPopedom))rn rn _button[DispButtonNum] = new Button();rn _button[DispButtonNum].ID = "button"+DispButtonNum.ToString();rn _button[DispButtonNum].Text = ButtonList[i].ButtonPopedom.ToString();rn _button[DispButtonNum].CssClass = "button";rn _button[DispButtonNum].CommandName = "Click";rn _button[DispButtonNum].CommandArgument = ButtonList[i].ButtonPopedom.ToString();rnrn this.Controls.Add(_button[DispButtonNum]);rnrn DispButtonNum++;rn rn rn rn rnrn /// rn /// 将此控件呈现给指定的输出参数。 rn /// rn /// 要写出到的 HTML 编写器rn protected override void Render(HtmlTextWriter writer)rn rn writer.Write(" ");rnrn [color=#FF0000]for (int i = 0; i < ButtonList.Count; i++)rn rn _button[i].RenderControl(writer);rn [/color]rnrn writer.Write(" ");rn rn #endregion Overriden methods
子类继承父类在调用时的问题
A类为父类;B类为A类的子类;rnB a=new B()时,B类会调用A类的构造函数,但调<em>用时</em>是否建立A类句柄?已经给A类成员变量初始化了,用什么句柄调用A类的成员变量啊? rn
JNI调用时,报错:EXCEPTION_ACCESS_VIOLATION__.?
JNI调<em>用时</em>,当我多次调用DLL中方法返回一个类时,报出这样的错误:EXCEPTION_ACCESS_VIOLATION__.查了查资料说是内存溢出,不知是不是这种原因,究竟该怎么解决?
请教bean调用时出错!??
useBean:rnpackage jbean;rnimport javax.servlet.http.HttpSession;rnimport javax.servlet.http.HttpServletRequest;rnpublic class usessionrn public String getSe()rn HttpServletRequest req=null;rn HttpSession session=req.getSession(true);rn return (String)session.getAttribute("useranme");rn rnrnrnjsp:rnrn
ActiveX控件调用时的权限问题
同一个ActiveX控件,使用一般的CS模式调<em>用时</em>可以设置系统时间,但是使用BS模式(用IE来加载控件)调<em>用时</em>,rnrn却无法设置系统时间(SetSystemTime),错误码是 1314,没有对应的权限,请问如何解决呢?
dll显式调用时的疑问...
dll显式调用的话,都是通过GetProcAddress来获得函数地址...rn那如果dll里面有导出类呐?类貌似没有地址吧?rnrn那是否又会是rnclass _declspec(dllexport) CArnrn void A();rn void B();rnrnrn-rnrnvoid _declspec(dllexport) A();rnvoid _declspec(dllexport) B();rnrn这样的话,我们是可以依然去获得地址哦...rn但是如果这个导出类中有成员变量呢?应该是可以有的,虽然好像不推荐,但是应该可以有吧?rnrnrnrn小菜鸟的一点疑问哈,希望大家解释一下
声明多维数组调用时出错
S_Cell 是一个类rnrnS_Cell[,] cell = new S_Cell[9, 9];rnrnrn然后 cell[0,0].x=1;rn出错,显示:rnrn未将对象引用设置到对象的实例。rnrn然后设置断点,看到 cell的所有成员的数据都是 NULL。。。rnrn这是什么情况?
webservers 调用时报错401
// 创建WebService<em>客户端</em>代理工厂 JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); // 判断是否抛出异常 factory.getOutInterceptors().add(new LoggingInInterceptor()); // 注册we...
dll调用时参数传递的问题
我设计了一个应用程序用来动态的加载dll,现在我知道dll中一个函数的名字(也知道他的参数表)在程序中加载了dll后调用这个函数时却无法传递参数(因为在程序中没有定义这个函数,所以默认这个函数不带参数),请问有什么办法可以解决?rn目的就是为了要兼容所有的dll。谢谢……
结构体调用时警告问题
我用的是VC2008.NET,初学C++,用strcpy函数报了警告rnrn#include "stdafx.h"rn#include "iostream"rnusing namespace std;rnrnstruct Person rn char name[20];rn unsigned long id;rn double salary;rn char address[200];rn;rnrnvoid setName(Person *p, char name[]);rnrnint main() rnrn Person zhang = "Yan", 100102, 2.321, "Shandong";rn char name[] = "Shun";rn setName(&zhang, name);rn cout << zhang.name << endl;rn rnrn return 0;rnrnrnvoid setName(Person *p, char name[]) rn strcpy(p->name, name);rnrnrn抽出点时间,研究了一下C++,没太多时间了解细节,请高手回答。rn
JS对象调用时找不到对象
昨天还不报错,今天就报错。我什么都没改。rn报错信息:rnlogonOper未定义rnrn十分不解,请高手解答,谢谢!rnrnlogon.jsp部分代码rn[code=XML]rn.......rn rn[/code]rnrnrnlogon.js部分代码:rn[code=JScript]var logonOper = new LogonOPer();rnfunction LogonOPer()rnrn /* 提交 */rn this.submit = function()rn alert('ffff');rnrn[/code]
shell调用时如何传递参数?
shell调<em>用时</em>如何传递参数?
cxf 调用时出现的错误
java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLReader.readWSDL(Ljavax/wsdl/xml/ WSDLLocator;Lorg/w3c/dom/Element;)Ljavax/wsdl/Definition;问题 - jar包冲突 wsdl4j-1.5.1.jar , wsdl4j-1.6.3.jar解决 - 删除wsdl4j-1...
客户端使用XFire调用时出错 NoClassDefFoundError: XFireRunTimeException
我在test程序的main()方法中调<em>用时</em>能够取得到数据,而在serviceImpl层调<em>用时</em>就出现下列问题了.rnrnNoClassDefFoundError: org/codehaus/xfire/XFireRunTimeExceptionrnrn这是什么个情况.
怎样设置Web Service 客户端用时的超时时间?
我做了一个Web service <em>客户端</em>,在互联网上调<em>用时</em>老是超时,rn怎样把超时时间设长一点?
JDICplus API下载
JDICplus API JDICplus API JDICplus API 相关下载链接:[url=//download.csdn.net/download/CZteam/2358159?utm_source=bbsseo]//download.csdn.net/download/CZteam/2358159?utm_source=bbsseo[/url]
Symantec_SAV_10常见问题和解决方法下载
Symantec_SAV_10常见问题和解决方法 相关下载链接:[url=//download.csdn.net/download/yijianpiaoxue1980/3416091?utm_source=bbsseo]//download.csdn.net/download/yijianpiaoxue1980/3416091?utm_source=bbsseo[/url]
vs2012的vc助手下载
vs2012上可用的vc助手,本人亲测可用 相关下载链接:[url=//download.csdn.net/download/zdsb007/6374443?utm_source=bbsseo]//download.csdn.net/download/zdsb007/6374443?utm_source=bbsseo[/url]
相关热词 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法 c# gmail 发邮件 c# 多层文件
我们是很有底线的