oracle调用web service 所遇到的一些异常 5C

ORA-29532: Java 调用被未捕获的 Java 异常错误终止: java.lang.IllegalAccessException: java.lang.ExceptionInInitializerError

ORA-29532: Java 调用被未捕获的 Java 异常错误终止: java.lang.SecurityException: policy table update SYS:java.lang.IllegalAccessException, getClassLoader
ORA-06512: 在 "SYS.DBMS_JAVA", line 793
ORA-06512: 在 line 3

查看错误堆栈的程序源?

3个回答

自己想顶一个,求大神帮助一下。。

自己想顶一个,求大神帮助一下。

xcgh
xcgh https://blog.csdn.net/saijie1983/article/details/7341607
大约一年之前 回复
qq_42495839
qq_42495839 自己想顶一个,求大神帮助一下。
大约一年之前 回复
qq_30925889
妮娜风 听说是权限问题,然后我又开始赋予权限了,可是到了赋予这个权限的时候:dbms_java.grant_permission( 'ADMIN','SYS:java.lang.IllegalAccessException','getClassLoader', '' ); 又报错了
大约一年之前 回复
qq_30925889
妮娜风 utl_dbws.create_service('http://192.168.21.859080/xgxt/services/wfWebService?wsdl'), v_service_qname) SQL运行到这个函数的时候报出来的错误
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
调用web service 抛异常
SOA.Service__1 exportSOA = new SOA.Service__1("URL");rnrnNetworkCredential myCred = new NetworkCredential(soaLoginUser, soaPassword);rnCredentialCache myCache = new CredentialCache();rnmyCache.Add(new Uri("URL"), "Basic", myCred);rnrnexportSOA.UseDefaultCredentials = true; rnexportSOA.Credentials = myCred;rnrndtp_SAPReturn sapReturn = exportSOA.JobCreation(paramters);rnrn上面是我的代码,Service__1是根据别人提供的WSDL生成的类。rn我发布到服务器A的时候抛rnthe request was aborted;the request was canceledrn出错的位置在dtp_SAPReturn sapReturn = exportSOA.JobCreation(paramters);rnrn调试很长时间没发现问题。rnrn然后我发布到服务器B的时候竟然成功了。(但是一定要在服务器A上面成功才行)rnrn各位,有什么建议或者思路去解决啊?
oracle 调用web service 的问题。
在Oracle里调用自己写的Web Service ,确认服务端Web Service 没问题,可就是用测试的时候出现如下错误:rnORA-29532: Java 调用被未捕获的 Java 异常错误终止: java.lang.IllegalAccessException: error.build.wsdl.model: oracle.j2ee.ws.common.tools.api.WsdlValidationException: WSDLException: faultCode=PARSER_ERROR: Error reading file at: http://localhost:7001/SayHello.jws?wsdl: Connection refusedrnrn网上搜了下有看到这个:rn一方面是数据库驱动没有放到%TOMCAT_HOME%\webapps\axis2\WEB-INF\lib下面, 另一方面有服务调用超时问题,延长设置了响应时间rnrn不理解第二个怎么设置 ,哪位大神知道的 告诉下吧。急用。
调用web service服务的时候报异常。。
javax.servlet.ServletException: com.biaoqi.ibs.exception.SystemException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message.rn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn com.biaoqi.ibs.base.IBSActionServlet.process(IBSActionServlet.java:27)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)rn com.biaoqi.ibs.filter.EncodingFilter.doFilter(EncodingFilter.java:28)rnrnrn完全不能理解者到底是哪里有问题 蛋疼死了 rn[code=java] public void doFilter(ServletRequest srequest, ServletResponse sresponse,rn FilterChain chain) throws IOException, ServletException rn HttpServletRequest request = (HttpServletRequest) srequest;rn request.setCharacterEncoding(targetEncoding);rn config.toString();rn chain.doFilter(srequest, sresponse);rn [/code]rn上面说的EncodingFilter.doFilter报的错 但是这里什么也没做 就掉了一个封装好了的方法。
请教:客户端调用web service服务异常!
使用web services explorer的WSDL页面直接调用web service服务,rn或者使用axis2自动生成客户端stub类代理和JUnit测试类调用web service服务时:rn1、客户端报错空指针异常:rn[ERROR] Exception occurred while trying to invoke service method getTermInfoByIdrnjava.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)rn at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:98)rn at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)rn at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)rn at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)rn at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)rn at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)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:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.NullPointerExceptionrn at dataAccess.TermInfo.getTermInfoById(TermInfo.java:450)rn ... 25 morernrnrnrnrn2、debug跟踪后得知,是调用getStatement()未成功,返回空指针导常rn但在服务器端用main()方法测试数据库连接成功,可以正确查询数据库rn而客户端调用web service,调用到getStatement()时,报错连接超时,rn请大虾们指点啊!rn[INFO] Unable to sendViaPost to url[http://localhost:8080/axis2/services/TermInfo]rnjava.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method)rn at java.net.SocketInputStream.read(Unknown Source)rn at java.io.BufferedInputStream.fill(Unknown Source)rn at java.io.BufferedInputStream.read(Unknown Source)rn at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)rn at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)rn at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)rn at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)rn at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)rn at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)rn at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)rn at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)rn at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)rn at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)rn at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)rn at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)rn at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:364)rn at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)rn at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)rn at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)rn at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)rn at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)rn at dataaccess.TermInfoStub.ifTheTermIsExistByLabelCh(TermInfoStub.java:5900)rn at dataaccess.TermInfoTest.testifTheTermIsExistByLabelCh(TermInfoTest.java:791)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at junit.framework.TestCase.runTest(TestCase.java:164)rn at junit.framework.TestCase.runBare(TestCase.java:130)rn at junit.framework.TestResult$1.protect(TestResult.java:106)rn at junit.framework.TestResult.runProtected(TestResult.java:124)rn at junit.framework.TestResult.run(TestResult.java:109)rn at junit.framework.TestCase.run(TestCase.java:120)rn at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)rn
web service 与定制异常。
自己写了个异常类,在service端throw,rnrn// serverrnpublic class MyException : Exception rnrn// clientrntry rncatch( MyException rnrn编译器报错,说是MyException没有定义。请问怎样才能将MyException的定义输出到客户端。rn
Web Service的404异常
错误是这样的rn在UI层处理数据然后调用Web Service更新数据 更新的接口参数类型为DATASETrn现在如果处理两千多条的数据 更新不会有问题rn如果处理一万条的数据去做更新 就会出现404错误 rn求解释 求解决方案
Web service 一些整理
NULL 博文链接:https://inspire-xg.iteye.com/blog/1485963
最近遇到的一些异常
1.java.lang.IncompatibleClassChangeError: class org.hibernate.cfg.ExtendedMappings has interface org.hibernate.cfg.Mappings as super class (hibernate3.5中的hibernate3.0包,已经包涵了hibernate-annotations,hi...
web service所需要的jar包
soap.jar activation.jar axis.jar mail.jar xercesImpl.jar
C#调用web service
很好的Word C#调用web service
web service 创建,调用?
小弟刚接触web service,对web service 创建,调用不太清楚,想请教下web service服务端怎样创建及ASP怎么通过XML调用web service
web service调用绝对路径
通过 web service 调用服务端 服务端通过IO的绝对路径读取配置文件里的内容rn如果是本地调用 可以显示正常结果,如果是web service调用 会显示到发布的路径下,之后变更了读取的方向 读取发布的路径 得到的结果是 NULLrn不知道 有没有朋友遇到这样的问题
WEB SERVICE 的IAPPSERVER调用
在WEB SERVICE的服务端(数据模块)的函数申明定义,后在客户端的IAPPSERVER如何申明调用问题?
web service 的调用
关于web service接口的调用rnhttp://****/login?wsdl,这样一个web service接口的调用是不是就那么固定的几种方法呢?rn还有我看到的一种是web接口,http://****/=teslogin.do?userNamet&passWord=test这样的接口调用方式和wsdl的调用方式是否一样,请高手给个例子参考!!!
asp调用 web service
请问一下各位高手,用asp调用 web service 怎么调,调了二天都没调出来,老报错.晕了,哪位能帮忙解决一下,急啊,谢谢了或者有什么其它好办法rnrnrn<%rnOption ExplicitrnrnDim reqXmlrnDim resXmlrnDim xmlDOCrnDim HTTPrnSet HTTP = CreateObject("MSXML2.XMLHTTP")rnrn'MsgBox "aaa"rn'wscript.echo "init ok."rnrnreqXml = "rnrnrnrn11100200001200000nokian7301381152405521rn1rnrnrnrn"rnrnwscript.echo "reqXml"rnrnHTTP.Open "POST", "http://218.205.238.187/drmWebService/services/musicService", FalsernHTTP.setRequestHeader "Content-Type", "text/xml" rnHTTP.Send reqXml rnrn'wscript.echo "HTTP.responseTEXT"rnrn'resXml = HTTP.responseXMLrn'wscript.echo HTTP.responseXMLrnrnSet xmlDOC =CreateObject("MSXML.DOMDocument")rnxmlDOC.Async=FalsernxmlDOC.load(HTTP.responseXML)rn%>
web service 调用
请教如何在asp.net(c#) 中调用公网上的web service,最好能提供例子代码。谢谢
Web service调用错误
在循环打开web service地址时候,经常出现如下错误提示:rnServer:XML Parser failed at linenumber 1115, lineposition 65, reason is: Illegal xml character.rn HRESULT=0x80004005: 未指定的错误rn - Client:Loading the request into SoapReader failed. HRESULT=0x80070057: 参数错误。rn - Client:Unspecified client error. HRESULT=0x80070057: 参数错误。rn但这种错误并不是每次都有,而是循环几次(次数不定)出现一次,请问是怎么回事,该怎么解决。rnrn如下代码(在定时器中)rnPrivate Sub Timer1_Timer()rnOn Error GoTo errrnDim Mwd As New SoapClient30rnrnMwd.MSSoapInit "http://192.168.201.32/RecvMsg/RecvMsg.asmx?WSDL" '打开WebService地址rnrnExit Subrnerr:rnDebug.Print err.DescriptionrnEnd Sub
怎样调用web service
最近在看一本.net的书籍,根据书上的内容写了一个简单的web service,web service文件是test.asmx,调用文件是test.aspx,虽然我按照书本上的代码写了下来,但还是出现了错误:rn rn分析器错误信息: “Import”指令不支持“Namepace”属性。rnrn源错误: rnrnrn行 1: <%@ Import Namepace="MathService"%>rn行 2: rnrnrn rnOperand1: rnOperand2: rn rn rn rn rnrnrnrn
调用web Service 出现异常
AxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Server.userExceptionrn faultSubcode: rn faultString: java.lang.reflect.InvocationTargetExceptionrn faultActor: rn faultNode: rn faultDetail: rn http://xml.apache.org/axis/hostname:serverrnrnjava.lang.reflect.InvocationTargetExceptionrn at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)rn at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)rn at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)rn at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)rn at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)rn at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)rn at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2765)rn at org.apache.axis.client.Call.invoke(Call.java:2748)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 TEST.webGetxml(TEST.java:1995)rn at TEST.main(TEST.java:2264)rn
Web Service调用
Web Service是能够基于网络,尤其是基于万维网(World Wide Web)直接调用的能够处理离散任务或连续任务的软件模型。目前较为流行的应用是,由一家公司对其专有数据进行封装,提供Web Service,然后其它公司就可以通过Internet来动态使用这些在线服务。这为未来全球的电子商务发展提供了新的标准和架构。
Web Service怎样处理异常
Web Service怎样发出异常,客户端(WinForm)怎样捕捉异常。
Web Service客户端报异常
Web Service的服务端已经有了,架构在服务器上了,通过服务端,我是直接用MyEclipse的新建Web Service Client来生成客户端,Framework是选择的JAX-WS,执行里面的方法时,有时候能执行成功,返回数据,有时候会报异常:rnrnException in thread "main" javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException.rnrn求大神们指教,这是不是用JAX-WS的问题、还是服务端不稳定的问题?rn另请教,JAX-WS、XFire以及axis2的差异。哪一个更好?
WEB service方法调用异常不稳定()
各位大哥:rn 我写了一个WEB service,但发现异常不稳定,第一次调用有正确结果返回,rn但第二次执行时为空!调试分析有受影响记录,但就是返回“”,直接执行SQL返回是字符串,没有任何异常,弄了一天了.(昨天给分了,以为自己搞定了!)rnrn请各位帮手分析什原因,谢谢!rnrnrn以下为方法:rn(注:custno 为char(8))rn[WebMethod]rnpublic string Get_Max_No()rnrn string ls_rtn="NIL";rn string ls_sql="select max(custno) as maxno from dba.custom_contact";rn try rn rn oleDbConnection1.Open();rn dbcommand=new OleDbCommand(ls_sql,oleDbConnection1);rn dbreader=dbcommand.ExecuteReader();rn if (dbreader.Read())rn rn ls_rtn=dbreader.GetStringI(0);rn rn dbreader.Close();rn oleConnection1.Close();rn rn catch (System.Exception ep)rn rn ls_rtn=ep.Messagern rn return ls_rtn;rnrn
WEB service方法异常不稳定
各位大哥:rn 我写了一个WEB service,但发现异常不稳定,第一次调用有正确结果返回,rn但第二次执行时为空!调试分析有受影响记录,但就是返回“”,直接执行SQL返回是字符串,没有任何异常,弄了一天了.(昨天给分了,以为自己搞定了!)rnrn请各位帮手分析什原因,谢谢!rnrnrn以下为方法:rn(注:custno 为char(8))rn[WebMethod]rnpublic string Get_Max_No()rnrn string ls_rtn="NIL";rn string ls_sql="select max(custno) as maxno from dba.custom_contact";rn oleDbConnection1.Open();rn dbcommand=new OleDbCommand(ls_sql,oleDbConnection1);rn dbreader=dbcommand.ExecuteReader();rn if (dbreader.Read())rn rn ls_rtn=dbreader.GetStringI(0);rn rn dbreader.Close();rn oleConnection1.Close();rn return ls_rtn;rnrn
web service 异常谁见过?
请问大家在调用web service时谁见过如下错误:"system.exception:不允许使用多于一个使用者名称的相同使用者有多个连线到一个服务器或共用资源....."rnweb service不是我们写的看不到代码,不知那位高手遇到过这种错误!
javascript 调用Web service
本示例是用微软提供的webservice.htc来完成的,当然用ASP.NET AJAX也能实现,但该示例全部是JAVASCRIPT来做的,简单明了.
reporting service的WEB调用
reporting service的WEB调用
Web Service创建及调用
本资源是本人中间件课程的大作业,内容包括了:什么是Web Service?Web Service的应用场所;如何创建一个简单的Web Service?如何调用Web 服务? 该文档对如何创建及如何调用Web Service步骤都有详尽的记录,包括文字、图片、代码。相信对Web Service入门是非常有帮助的。
web service 调用问题.
建了一个web service 服务端,可以打开 (使用axis 2 jdk1.4)rn再建一个客户端访问(axis 1.3 jdk 1.4):rn tryrn rn Service service = new Service();rn Call call = null;rn call = (Call) service.createCall();rn call.setTargetEndpointAddress(new java.net.URL(WsdlUrl));rn call.setOperationName(new QName(NameSpace, FuncName));rn String ret = (String)call.invoke(new Object[]"2","2","2");rn return ret;rn rn catch(Exception e)rn rn return e.getMessage();rn rn 提示:; nested exception is: rn java.lang.NullPointerExceptionrnrn不知是什么原因,请帮忙看看
安卓手机调用web service
自己发布了一个简单的web service,在安卓模拟器中可以调用,但是在真机中就没有任何反应了,(服务器和真机用的是同一局域网),请问是什么原因呢
C++ 调用Web service
localhost.Service test = new localhost.Service();rnlocalhost.AuthenHeader authenHeader = new localhost.AuthenHeader();rnauthenHeader.Authen = "sindyware";rntest.authenHeader = authenHeader;rnTextBox1.Text = test.Conversion("df","sdafa","dsfa","asdfa","adfs","asdfa");rn以上是C#调用WEB SERVICE的代码,rn在C++中我发现编译出来的头文件中AuthenHeader这个结构体是空的,因此,不知道如何填充,由于对WEB SERVICE 以及相关的验证rn不太清楚,因此,对这个问题感到比较困惑.rn希望有此经验的高手帮帮忙,给我讲讲,多谢!!!
客户端调用web service
import java.net.MalformedURLException;rnimport java.rmi.RemoteException;rnimport javax.xml.namespace.QName;rnimport javax.xml.rpc.ServiceException;rnrnimport org.apache.axis.client.Call;rnimport org.apache.axis.client.Service;rnrnrnpublic class Client rn public static void main(String[] args) throws RemoteException,rn MalformedURLException rn String method = "hw";rn Service service = new Service();rn Call call=null;rn try rn call = (Call)service.createCall();rn catch (ServiceException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn call.setTargetEndpointAddress(new java.net.URL("http://localhost:8888/axis2/services/Hello"));rn call.setOperationName(new QName("http://com/", method));rn call.setUseSOAPAction(true);rn call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);rn call.setSOAPActionURI("http://com/GetServerList");rn String k = (String)call.invoke(new Object[]); //因为返回值是String类型,所以这里调用的返回值也是String类型rn System.out.println(">>> "+k); //返回值输出rn rnrnrnrn这是我的客户端调用程序.运行的时候报rnrnrnException in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingletonrn at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)rn at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33)rn at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Service.(Service.java:113)rn at com.Client.main(Client.java:33)rnrnrn不懂web service ,各位高手看看..谢谢了!!rnrnrn
怎样调用web service ?
怎样调用web service 啊?有几种方式哦?哪个有完整点的文档,发来看看啊,谢谢。rn我qq:570342986
Web Service 的调用问题
我用JB9按照其帮助的Tutorials:Web Services(Axis)的步骤,将一个javaBean作成rnWeb Service 。那么客户端调用Web Service 就是象xxxTestCase.java的调用方法一样吗?如果用其他语言如Delphi又该如何调用Web Service 呢?rn
Web Service多线程调用!!
请问各位大侠,Delphi写的Web Service可以使用多线程调用吗?rn如果可以的话,要怎么实现呢?rn如果不可以的话,为什么呢?
怎样调用Web Service
最近在看一本.net的书籍,根据书上的内容写了一个简单的web service,web service文件是test.asmx,调用文件是test.aspx,虽然我按照书本上的代码写了下来,但还是出现了错误:rn rn分析器错误信息: “Import”指令不支持“Namepace”属性。rnrn源错误: rnrnrn行 1: <%@ Import Namepace="MathService"%>rn行 2: rnrnrn rnOperand1: rnOperand2: rn rn rn rn rnrnrnrn
限止Web Service的调用
我想了两个办法,请大家帮我看看rnrn1.限止最终客户IPrn2.限止某个域名调用Web Service
调用web Service 接口
package com.enfo.lf.service; import java.rmi.RemoteException; import javax.xml.namespace.QName; import javax.xml.rpc.ParameterMode; import javax.xml.rpc.ServiceException; import org.apache.axis.c
dreamweaver 调用web service
dreamweaver 怎么调用 web servicern用ASP.NET的语言!
调用web service出错
我用asp.net写了个web service,然后在一个项目里面调用它rn但是引用的时候,显示下面的信息:rn文档未被识别为已知的文档类型。rn来自各已知类型的错误信息可能有助于修复该问题:rn- 来自“DISCO 文档”的报告是“XML 文档(5, 14)中有错误。”。rn - 有多个根元素。 行 5,位置 14。rn- 来自“WSDL 文档”的报告是“无法识别此文档格式(内容类型为“text/html; charset=utf-8”)。”。rnrn我放到其它服务器,有些可以正常引用,不出错,有些就是上面的错误,不知道是什么问题。rn我的web service里面的代码是这样的:rnpublic string GetContact(XmlDocument xmldoc)rn rn tryrn rn xmldoc.Save(Server.MapPath("xml/contacts.xml"));rn return "传输完成";rn rn catch( Exception e)rn rn return e.Message;rn rn rn效果是用来接收一个xml,并保存起来。
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法