急!程序调用WebService出现NullReferenceException异常 [问题点数:23分,结帖人unbachone]

Bbs1
本版专家分:0
结帖率 95.24%
Bbs9
本版专家分:55422
版主
Blank
GitHub 绑定GitHub第三方账户获取
Blank
进士 2006年 总版技术专家分年内排行榜第四
Blank
金牌 2006年4月 总版技术专家分月排行榜第一
Blank
铜牌 2006年3月 总版技术专家分月排行榜第三
Bbs1
本版专家分:0
Bbs10
本版专家分:129266
Blank
微软MVP 2013年7月 荣获微软MVP称号
2012年7月 荣获微软MVP称号
2011年7月 荣获微软MVP称号
Blank
黄花 2011年4月 .NET技术大版内专家分月排行榜第二
Blank
蓝花 2011年3月 .NET技术大版内专家分月排行榜第三
Bbs1
本版专家分:0
Bbs10
本版专家分:129266
Blank
微软MVP 2013年7月 荣获微软MVP称号
2012年7月 荣获微软MVP称号
2011年7月 荣获微软MVP称号
Blank
黄花 2011年4月 .NET技术大版内专家分月排行榜第二
Blank
蓝花 2011年3月 .NET技术大版内专家分月排行榜第三
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
oracle调用webservice出现找不到服务的异常
oracle<em>调用</em>webservice<em>出现</em>找不到服务的<em>异常</em>,代码如下:rncreate or replacernFunction Test(rnXmlstring Varchar2rn)rn RETURN VARCHAR2rn ASrn l_service utl_dbws.SERVICE;rn l_call utl_dbws.call;rn l_result ANYDATA;rn l_wsdl_url VARCHAR2(1024);rn l_service_name VARCHAR2(200);rn L_Operation_Name Varchar2(200);rn l_namespace_name varchar2(200);rn L_Input_Params Utl_Dbws.Anydata_List;rn Beginrn L_Wsdl_Url := 'http://www.usoftchina.com/ws95/services/vendor?wsdl';rn L_Service_Name := 'vendorService';rn L_Operation_Name := 'vendorinfo';rn L_Service := Utl_Dbws.Create_Service(Wsdl_Document_Location=>Urifactory.Geturi(L_Wsdl_Url),Service_Name=>L_Service_Name); rn L_Call := Utl_Dbws.Create_Call(Service_Handle=>L_Service,Port_Name=>'vendor',Operation_Name=>L_Operation_Name); rn L_Input_Params(0) := Anydata.Convertvarchar2(Xmlstring);rn L_Result := Utl_Dbws.Invoke(Call_Handle=>L_Call,Input_Params=>L_Input_Params); rn UTL_DBWS.release_call (call_handle=>l_call);rn Utl_Dbws.Release_Service (Service_Handle=>L_Service);rn RETURN ANYDATA.AccessVarchar2(l_result);rn EXCEPTIONrn When Others Thenrn RETURN SUBSTR(sqlerrm,0,2000000000);rn END test;rnrnrn-----------抛出的<em>异常</em>是rnrnORA-29532: Java <em>调用</em>被未捕获的 Java <em>异常</em>错误终止: java.lang.IllegalAccessException: javax.xml.rpc.ServiceException: Error processing WSDL document: rnjavax.xml.rpc.ServiceException: Error processing WSDL document: rnjavax.xml.rpc.ServiceException: Cannot find service: vendorServicernrn请问高手们,怎么解决?
NullReferenceException这是什么异常
[public bool CheckExist(string Title)rn rn bool isExist = false;rn [color=#FF0000] foreach (var passItem in PassCollections)rn问题:这里<em>出现</em><em>异常</em>“<em>NullReferenceException</em>”,<em>异常</em>的名字叫做“<em>NullReferenceException</em> was handle。”请问这是什么<em>异常</em>,一般是在那种情况下触发???rn[/color] rn if (passItem.Title == Title)rn rn isExist = true;rn break;rn rn rnrn return isExist;rn rnrn该页全部代码:rnusing System.Collections.ObjectModel;rnusing System.IO.IsolatedStorage;rnrnnamespace WPPA.Collectionsrnrn public class Passrn rn private Pass()rn rn PassCollections = new ObservableCollection();rn if (IsolatedStorageSettings.ApplicationSettings.Contains("Pass"))rn PassCollections = IsolatedStorageSettings.ApplicationSettings["Pass"] as ObservableCollection; rn rnrn private static Pass _instance;rn public static Pass GetInstance()rn rn if (_instance == null)rn _instance = new Pass();rn return _instance;rn rnrnrn private ObservableCollection _passcollections;rn public ObservableCollection PassCollectionsrn rn get return _passcollections; rn set _passcollections = value; rn rnrn [color=#FF0000] public bool CheckExist(string Title)rn rn bool isExist = false;rn foreach (var passItem in PassCollections)rn rn if (passItem.Title == Title)rn rn isExist = true;rn break;rn rn rnrn return isExist;rn [/color] public void Add(CollectionItem.PassItem passItem)rn rn PassCollections.Add(passItem);rn rnrn public void Save()rn rn IsolatedStorageSettings.ApplicationSettings["Pass"] = PassCollections;rn IsolatedStorageSettings.ApplicationSettings.Save();rn rn rnrnrnrn
webservice出现异常
20:30:37,082 ERROR [SOAPFaultHelperJAXWS] SOAP request exceptionrnjavax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target. class cn.khzb.tyjk.bean.facade.ReciveGbzhServiceImpl for public cn.khzb.tyjk.bean.user.ResponseMessage cn.khzb.tyjk.bean.facade.ReciveGbzhServiceImpl.setData(cn.khzb.tyjk.bean.user.RequestMessage)rn at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)rn at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)rn at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)rn at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)rn at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)rn at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)rn at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)rn at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)rn at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)rn at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103)rn at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:221)rn at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466)rn at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)rn at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)rn at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)rn at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)rn at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)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:446)rn at java.lang.Thread.run(Thread.java:745)rn
NullReferenceException异常的一个问题, 我要疯了!!
string sql = "select distinct 余额 from shopping_table where 用户id='" + uID + "'";rnconn.Open();rnSqlCommand cmd = new SqlCommand(sql, conn);rnstring yue = cmd.ExecuteScalar().ToString();rn //intyue = Convert.ToInt32(cmd.ExecuteScalar().ToString());rn rnshowleibie.Text = yue;rnintyue = Convert.ToInt32(yue);rnrn就这个东西, 明明在数据库中已经取出了数值, 变量yue的值已经可以在页面中显示了, 可就在转换为整型的时候就提示 rn string yue = cmd.ExecuteScalar().ToString();rn处产生<em>NullReferenceException</em><em>异常</em>rnrn<em>急</em>求各位大虾!!
Oracle调用webService异常
[code=sql]rncreate or replacernfunction FUNC_GENERATE_LOGINNAME(xmlstring VARCHAR2)rnreturn VARCHAR2rn ASrn l_service utl_dbws.SERVICE;rn l_call utl_dbws.call;rn l_result ANYDATA;rn l_wsdl_url VARCHAR2(1024);rn l_service_name VARCHAR2(200);rn l_operation_name VARCHAR2(200);rn l_input_params UTL_DBWS.anydata_list;rn BEGINrn l_wsdl_url := 'http://10.33.1.194/webService/Sync<em>WebService</em>.asmx';rn l_service_name := 'Sync<em>WebService</em>';rn l_operation_name := 'GetReportTypeTree';rn l_service := UTL_DBWS.create_service(wsdl_document_location=>URIFACTORY.getURI(l_wsdl_url),service_name=>l_service_name);rnrn l_call := UTL_DBWS.create_call(service_handle=>l_service,port_name=>NULL,operation_name=>l_operation_name);rn l_input_params(1) := ANYDATA.ConvertVarchar2(xmlstring);rn rn l_result := UTL_DBWS.invoke(call_handle=>l_call,input_params=>l_input_params);rn UTL_DBWS.release_call (call_handle=>l_call);rn UTL_DBWS.release_service (service_handle=>l_service);rn RETURN ANYDATA.AccessVarchar2(l_result);rn EXCEPTIONrn WHEN OTHERS THENrn RETURN substr(sqlerrm,0,2000);rn END FUNC_GENERATE_LOGINNAME;rnrn[/code]rn<em>调用</em>报错信息rnselect func_generate_loginname('') from dualrnORA-29532: Java <em>调用</em>被未捕获的 Java <em>异常</em>错误终止: java.lang.IllegalAccessException: error.build.wsdl.model: java.lang.ClassCastExceptionrn环境:2008 64位 Oracle11G rn加入Java包rnloadjava -u bpm/*****@oracle -r -v -f -genmissing -s -grant public dbwsclientws.jar dbwsclientdb11.jarrn执行添加权限rnbeginrndbms_java.grant_permission( 'BPM','SYS:java.lang.IllegalAccessException','getClassLoader', '' );rndbms_java.grant_permission( 'BPM', 'SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar', '' );rndbms_java.grant_permission( 'BPM', 'SYS:java.lang.RuntimePermission', 'setFactory', '' );rndbms_java.grant_permission( 'BPM', 'SYS:java.util.PropertyPermission', 'HTTPClient.socket.idleTimeout', 'write' );rndbms_java.grant_permission( 'BPM', 'SYS:java.net.SocketPermission', 'localhost', 'resolve' );rndbms_java.grant_permission( 'BPM', 'SYS:java.net.SocketPermission', '192.168.21.203:80', 'connect,resolve' );rndbms_java.grant_permission( 'BPM', 'SYS:java.lang.RuntimePermission', 'createClassLoader', '' );rndbms_java.grant_permission( 'BPM', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' );rnend;rn在执行rndbms_java.grant_permission( 'BPM','SYS:java.lang.IllegalAccessException','getClassLoader', '' );rn时报错rnrn[img=https://img-bbs.csdn.net/upload/201309/06/1378436904_32955.jpg][/img]rn跪求大神回复
XFire调用WebService异常
<em>出现</em><em>异常</em>:rn[size=14px] org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Cannot open connection[/size]rnrn代码:rn[code=Java]rn//导入包的代码省略rnpublic class ConnectShincoNavigation rnrn public static String <em>WebService</em>URL = rn "http://192.168.0.11:8080/sanyECCwebservices/services/ServiceSocket";rn rn private Service srvcModel = null;rn rn private XFireProxyFactory factory = null;rn rn private ServiceSocketPortType srvc = null;rnrn public ConnectShincoNavigation()rn createObject();rn rnrn public void createObject()rn //创建服务对象rn srvcModel = new ObjectServiceFactory().create(ServiceSocketPortType.class);rn rn //使用XFire的服务工厂,生成创建实例rn factory = new XFireProxyFactory(XFireFactory.newInstance().getXFire());rn rn tryrn srvc = (ServiceSocketPortType)factory.create(rn srvcModel,<em>WebService</em>URL);rn catch(MalformedURLException e)rn System.out.println(e.toString());rn rn rnrn public void forwardOnlineStatus(String serviceId, boolean onlineStatus)rn tryrn String result = srvc.isOnline(serviceId, onlineStatus);rn System.out.println("<em>调用</em><em>WebService</em>结果:" + result);rn catch(Exception e)rn System.out.println(e.toString());rn rn rnrn[/code]rnrn<em>调用</em>代码:rn[code=Java]rnConnectShincoNavigation csn = new ConnectShincoNavigation();rncsn.forwardOnlineStatus("10003",true);rn[/code]rnrn把<em>WebService</em>放在本机上,<em>WebService</em>URL改成"http://127.0.0.1:8080/sanyECCwebservices/services/ServiceSocket",<em>程序</em><em>调用</em>不会报<em>异常</em>,<em>WebService</em>放在别人电脑上,我<em>调用</em>就会<em>出现</em>上面的<em>异常</em>,也换过除了XFire以外的方式<em>调用</em>,还是报Cannot open connection,不知道是什么原因?请大家指点一下
调用webservice的异常
未处理的“System.InvalidOperationException”类型的<em>异常</em><em>出现</em>在 System.Web.Services.dll 中。rnrn其他信息: 客户端发现响应内容类型为“text/html”,但应为“text/xml”。rn请求失败,错误信息为:rn--rn Server Application Errorrn Server Application ErrorThe server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.rn--.rn这是什么原因造成的?怎么解决?
调用WebService异常
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:server4rnrnjava.lang.reflect.InvocationTargetExceptionrn at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)rn at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)rn at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)rn at 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:435)rn at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)rn at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2784)rn at org.apache.axis.client.Call.invoke(Call.java:2767)rn at org.apache.axis.client.Call.invoke(Call.java:2443)rn at org.apache.axis.client.Call.invoke(Call.java:2366)rn at org.apache.axis.client.Call.invoke(Call.java:1812)rn at cn.com.hnisi.viointerface.demo.EPODemo.main(EPODemo.java:105)rn
webservice调用异常
javax.xml.bind.UnmarshalException: unexpected element (uri:"http://schemas.xmlsoap.org/ws/2005/04/discovery", local:"Probe"). Expected elements are ,,,,,,,,,,,,,,rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662)rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:258)rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:253)rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:120)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1063)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:498)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:480)rn at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:75)rn at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:150)rn at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:244)rn at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:324)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:307)rn at org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl$WSDiscoveryProvider.invoke(WSDiscoveryServiceImpl.java:376)rn at org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl$WSDiscoveryProvider.invoke(WSDiscoveryServiceImpl.java:350)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:616)rn at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)rn at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)rn at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178)rn at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:66)rn at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)rn at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)rn at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:107)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)rn at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)rn at org.apache.cxf.transport.udp.UDPDestination$MCastListener$2.run(UDPDestination.java:106)rn at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:426)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:351)rn at java.lang.Thread.run(Thread.java:679)rnrnrnrnrn自己用cxf+spring搭建的webservice,部署到tomcat中,通过客户端<em>调用</em>接口的时候,tomca日志中<em>出现</em>上诉<em>异常</em>,但是该<em>异常</em>并没有影响接口的<em>调用</em>,能正确的执行我<em>调用</em>的方法, 请问有遇到这种<em>异常</em>的没有呢。 谢谢
XFire调用webservice异常
jar包都有 代码如下rntryrn String nameSpace="http://webserviceinterface.xxx.com.cn";//命名空间rn Service serviceModel = new ObjectServiceFactory().create(rn IAuthorizationManager.class, null, nameSpace, null); rn String serviceURL = "http://129.19.100.165:8080/xxx/services/IAuthorizationManager";rn XFireProxyFactory serviceFactory = new XFireProxyFactory();rn IAuthorizationManager service = (IAuthorizationManager) serviceFactory.create(serviceModel,serviceURL);rn HashMap map=new HashMap();rn map.put("ip", "129.19.100.180");rn map.put("hostName", "sdsdsd");rn map.put("time", "06:30:20");rn map.put("date", "2007-03-20");rn rn System.out.println(service.getAllAllowedApps("user", map));rn catch(Exception e)rn e.printStackTrace();rn rnrn报如下<em>异常</em> Could not locate provider [com.bea.xml.stream.MXParserFactory] 什么问题呢
KSoap2调用WebService异常
String method="add";rnString nameSpace="http://tempuri.org/";rnString SOAP_ACTION="http://tempuri.org/add";rnString serviceUrl="http://10.10.50.72/abs/abs.dll/wsdl/ITABS"; rnLog.d(TAG,"new Request ");rnSoapObject request = new SoapObject(nameSpace, method); rnrequest.addProperty("id", id);rnrequest.addProperty("la", lat); rnrequest.addProperty("ln", lng);rnrequest.addProperty("time", time);rnSoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);rnenvelope.bodyOut = request;rnHttpTransportSE ht = new HttpTransportSE(serviceUrl); rn tryrn rn Log.d(TAG,"my_Webservice Call"); rn ht.call(null, envelope);rn rn catch (Exception ep)rn rn Log.d(TAG,"my_webservcie_Error: "+ep.getMessage());rn rn rnrn<em>异常</em>:rn org.xmlpull.v1.XmlPullParserException: expected: START_TAG rnhttp://schemas.xmlsoap.org/soap/envelope/rnEnvelope (rnposition:START_TAG rn@2:349 in java.io.InputStreamReader@44f08f50) rnrnrn说明:rn Delphi 7 开发的<em>WebService</em>+IIS,使用delphi <em>调用</em>正常,android Eclipse+KSoap2
调用WebService异常
<em>调用</em><em>WebService</em>中方法,通过引用返回一个string型的XML文档内容,rn在连续多次<em>调用</em>这个个方法后,<em>程序</em>变得没有响应,等一段时间会<em>出现</em><em>异常</em>,<em>异常</em>内容如下:rnthe underlying connection was closed:the server committed a protocol violationrnrn请问这是怎么回事,是不是因为string里的内空太大了?
多线程调用Control.Invoke出现NullReferenceException错误 !
if (this.InvokeRequired)rnrn Invoke((ThreadStart)delegate() // 这行出错 rn rn this.OperatorLogList.Items.Add(message);rn );rn
程序程序出现这样的异常了?
[img=C:\Documents and Settings\Administrator\桌面\QQ截图未命名.bmp][/img]rnrn怎么回事啊?
webservice频繁访问出现异常
winform<em>调用</em>webservice,频繁的访问,一段时间后<em>调用</em>webservice的函数的时候提示rnSystem.Net.WebException:无法连接到远程服务器-rnSystem.Net.Sockets.SocketException:由于系统缓冲区控件不足或对列已满,不能执行套接字上的操作rn并且重启<em>程序</em>没用,一定要重启系统才行.rn个位大神们,请帮帮忙,困扰了我几个月了...55555...
出错!!!!!未处理NullReferenceException
[code=C#]rnrn public DataRow dr;rnrn public void datBD()rn rn MySqlConnection mysqlcon = new MySqlConnection("Server=localhost;userid=root;password=1234;Database=zhwedo");rn mysqlcon.Open();rn //MySqlCommand mysqlcmd = new MySqlCommand("select uname from sdb_members where uname='" + usname + "' ", mysqlcon);rn string mysqlcmd="select * from sdb_members where uname='" + usname + "'";rn MySqlDataAdapter date = new MySqlDataAdapter(mysqlcmd, mysqlcon);rn DataSet ds = new DataSet();rn date.Fill(ds, "mymuma");rn dr = ds.Tables["mymama"].Rows[0];//这里<em>出现</em>未处理<em>NullReferenceException</em> :未将对象引用设置到对象的实例 ...rn this.Luname.Text = dr["usname"].ToString();rn this.lemail.Text = dr["email"].ToString();rn this.Textname.Text = dr["name"].ToString();rnrnrnrn[/code]rnrn我是一个初学者,这原来这个写法是用在access上的,现在我用在mysql上了!
调用webservice出现了问题
现在我有个webservie中有个cleartocken方法,用asp去<em>调用</em>这个方法 可是返回值接收之后打印到网页中不是想要的结果rnrnSystem.InvalidOperationException: Missing parameter: tokenValue. at System.Web.Services.Protocols.ValueCollectionParameterReader.Read(NameValueCollection collection) at System.Web.Services.Protocols.HtmlFormParameterReader.Read(HttpRequest request) at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.<em>WebService</em>Handler.CoreProcessRequest() rnrn<em>出现</em>这个不知道是属于什么错误有明白的大哥指导下,谢谢了 比较<em>急</em>!!rn
调用webservice出现InvocationTargetException
问题描述:rn自己写了一个webservice的接口,其中有方法去<em>调用</em>其他已经发布的webservice。rn自己写的接口一开始都测试过没有问题,但是在方法里面添加逻辑,<em>调用</em>其他webservice的时候<em>出现</em>了问题。rnrn自己写的方法如下:rn public boolean isServiceAlive() throws RemoteException rn // TODO Auto-generated method stubrn System.out.println("before locator");rn IServiceManagerServiceLocator serviceManagerLoc = new IServiceManagerServiceLocator();rn System.out.println("after locator");rn IServiceManager serviceManager = null;rn try rn System.out.println("before service");rn serviceManager = serviceManagerLoc.getIServiceManager(new URL("http://120.88.8.52:9000/axis/services/IServiceManager"));rn catch (MalformedURLException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (ServiceException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn System.out.println("after service");rn if(serviceManager.listServices()!=null)rn rn System.out.println("The ServiceManager is running well!!!");rn return true;rn rn elsern rn System.out.println("The ServiceManager is crashed!!!");rn reStart("ServiceManager");rn return false;rn rn rn用打印语句定位错误,<em>调用</em>的时候,打印了IServiceManagerServiceLocator serviceManagerLoc = new IServiceManagerServiceLocator();之前的“before locator”但是后面的一句没有打印,所以错误应该就是这一句。rn错误信息如下:rnAxisFaultrn 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:zhangxi-PCrnrnjava.lang.reflect.InvocationTargetExceptionrn at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)rn at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)rn at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)rn at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at javax.xml.parsers.SAXParser.parse(Unknown Source)rn at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)rn at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)rn at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2784)rn at org.apache.axis.client.Call.invoke(Call.java:2767)rn at org.apache.axis.client.Call.invoke(Call.java:2443)rn at org.apache.axis.client.Call.invoke(Call.java:2366)rn at org.apache.axis.client.Call.invoke(Call.java:1812)rn at isLiveMonitor.IsLiveManagerSoapBindingStub.isServiceAlive(IsLiveManagerSoapBindingStub.java:219)rn at test.test_jetty.main(test_jetty.java:38)rn在网上也搜了很多关于这个错误的回答,有的说是因为缺少jar包,然后我把项目用到的jar包全都放到axis的lib文件夹下,还是不行,希望大家帮着分析一下~
调用WebService出现的问题
[WebMethod]rnpublic int getPrice(int ID)rnrnreturn ((ID - 0) * 5) / 9;rnrn<em>调用</em>的时候出错如下rnSystem.IO.FileNotFoundException: File or assembly name 4zggg3_t.dll, or one of its dependencies, was not found.rnFile name: "4zggg3_t.dll"rn at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)rn at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)rn at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)rn at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()rn at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()rn at System.Xml.Serialization.Compiler.Compile()rn at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)rn at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings)rn at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)rn at System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos)rn at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos)rn at System.Web.Services.Protocols.HttpServerType..ctor(Type type)rn at System.Web.Services.Protocols.HttpServerProtocol.Initialize()rn at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)rn at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)rnrn=== Pre-bind state information ===rnLOG: Where-ref bind. Location = C:\WINDOWS\TEMP\4zggg3_t.dllrnLOG: Appbase = file:///D:/aspexample/testrnLOG: Initial PrivatePath = binrnCalling assembly : (Unknown).rn===rnrnLOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).rnLOG: Attempting download of new URL file:///C:/WINDOWS/TEMP/4zggg3_t.dll.rnrn这是什么问题?rn
调用webservice出现的错误
1、如果<em>出现</em>这个错误:java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException,原因是没有导入 axis2-saaj.jar包  2、如果<em>出现</em>这个错误:java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton,原因是没...
weblogic下axis2调用webservice的异常
我用axis2插件自动生成的客户端 远程<em>调用</em>webservice的时候,在tomcat下好好的,但是发布到weblogic下面运行就会报如下<em>异常</em>,找不到什么原因。rnjava.lang.IllegalArgumentException: The uri may not be theempty string.rn at weblogic.xml.stax.util.NamespaceContextImpl.getPrefix(NamespaceContextImpl.java:76)rn at weblogic.xml.stax.XMLWriterBase.getPrefix(XMLWriterBase.java:675)rn at org.apache.axiom.om.impl.MTOMXMLStreamWriter.getPrefix(MTOMXMLStreamWriter.java:204)rn at org.apache.axis2.databinding.utils.writer.MTOMAwareXMLSerializer.getPrefix(MTOMAwareXMLSerializer.java:143)rn at org.apache.axis2.databinding.utils.writer.MTOMAwareXMLSerializer.getPrefix(MTOMAwareXMLSerializer.java:143)rn at com.detain.webservice.<em>WebService</em>CenterServiceStub$RequMessage$1.serialize(<em>WebService</em>CenterServiceStub.java:774)rn at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:82)rn at com.detain.webservice.<em>WebService</em>CenterServiceStub$Call<em>WebService</em>$1.serialize(<em>WebService</em>CenterServiceStub.java:2022)rn at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:82)rn at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(OMSourcedElementImpl.java:599)rn at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785)rn at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)rn at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:237)rn at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:225)rn at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)rn at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:421)rn at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68)rn at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)rn at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)rn at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)rn at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)rn at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)rn at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)rn at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)rn at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)rn at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)rn at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)rn at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)rn at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)rn at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374);
weblogic下axis调用webservice异常
2010-04-19 22:53:19,562 DEBUG org.apache.axis.utils.XMLUtils - Failed to set EntityResolver on DocumentBuilderrnjava.lang.NullPointerExceptionrn at weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61) [weblogic.jar:9.2.0.0]rn at weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:169) [weblogic.jar:9.2.0.0]rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:360) [axis-1.2.1.jar:na]rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388) [axis-1.2.1.jar:na]rn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179) [axis1.2.1.jar:na]rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172) [axis-1.2.1.jar:na]rn at org.apache.axis.AxisEngine.(AxisEngine.java:156) [axis-1.2.1.jar:na]rn at org.apache.axis.client.AxisClient.(AxisClient.java:52) [axis-1.2.1.jar:na]rn at org.apache.axis.client.Service.getAxisClient(Service.java:103) [axis-1.2.1.jar:na]rn at org.apache.axis.client.Service.(Service.java:112) [axis-1.2.1.jar:na]rn at com.detain.webservice.<em>WebService</em>CenterServiceLocator.(<em>WebService</em>CenterServiceLocator.java:14) [_wl_cls_gen.jar:na]rn at com.detain.webservice.TestMain.qryServInfoCur(TestMain.java:12) [_wl_cls_gen.jar:na]rn at com.detain.webservice.<em>WebService</em>Action.qryBalance(<em>WebService</em>Action.java:54) [_wl_cls_gen.jar:na]rn at com.detain.webservice.<em>WebService</em>Action.findBalanceinfo(<em>WebService</em>Action.java:36) [_wl_cls_gen.jar:na]rn at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source) [na:1.5.0_04]rn at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(UnknownSource) [na:1.5.0_04]rn at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34) [dwr-2.0.5.jar:na]rn at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) [dwr-2.0.5.jar:na]rn at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431) [dwr-2.0.5.jar:na]rn at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283) [dwr-2.0.5.jar:na]rn at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52) [dwr-2.0.5.jar:na]rn at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101) [dwr-2.0.5.jar:na]rn at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)rn[dwr-2.0.5.jar:na]rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) [weblogic.jar:9.2.0.0]rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) [weblogic.jar:9.2.0.0]rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225) [weblogic.jar:9.2.0.0]rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127) [weblogic.jar:9.2.0.0]rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:230) [weblogic.jar:9.2.0.0]rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) [weblogic.jar:9.2.0.0]rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) [weblogic.jar:9.2.0.0]rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) [spring-2.5.6.jar:2.5.6]rn哪位帮忙看看这是什么问题啊?
Android 4.1调用WebService异常
开发了一个Android的APP,用户登录采用的是Webservice方式。rn开发过程发现,同样的APP,在Android 2.3系统的手机上可以正常登录,在小米2的机子上一直访问Webservice<em>异常</em>。网络是通的,我尝试了用WebView控件加载服务器的网页,是可以正常显示页面内容的。rnrn有童鞋遇到过类型问题吗?
NullReferenceException???
用VB在Partial Public Class Page1下定义变量<em>出现</em>未处理<em>NullReferenceException</em>提示框。。求解决办法。。。!rnrn代码如下rnPartial Public Class Page1rnrn Inherits PhoneApplicationPagernrn Dim a1 = Convert.ToInt32(Button1.Content)
C# 调用webservice 调用的目标发生 异常
大家好!我是一名学生,今天在写一个 用C#<em>调用</em>webservice的<em>程序</em>的时候,<em>出现</em>这样一个错误:“<em>调用</em>的目标发生<em>异常</em>。”rnrn查阅了很多资料以后都不能解决问题,因为我的写的<em>程序</em>是要在一台没有安装 VS 的机器上运行的。rnrn下面是我的代码,查看日志以后会发现,该函数的前部分的语句都有执行到,就是到了最后一句:[code=csharp] object item = method.Invoke(o, _params); [/code] 的时候没有执行,而且会报错!希望大家帮忙看一下,不慎感激rn[code=csharp]//内网 动态<em>调用</em> webservice 函数rn public static object InvokeWebMethod2(string _url, string _methodName,rn params object[] _params)rn rn WriteLog("开始执行 动态<em>调用</em> webservice 函数...........", "");rnrn WebClient client = new WebClient();rn //String url = "http://localhost:3182/Service1.asmx?WSDL";//这个地址可以写在Config文件里面rn Stream stream = client.OpenRead(_url);rn ServiceDescription description = ServiceDescription.Read(stream);rnrn ServiceDescriptionImporter importer = new ServiceDescriptionImporter();//创建客户端代理代理类。rn importer.ProtocolName = "Soap"; //指定访问协议。rn importer.Style = ServiceDescriptionImportStyle.Client; //生成客户端代理。rn importer.CodeGenerationOptions = CodeGenerationOptions.GenerateProperties |rn CodeGenerationOptions.GenerateNewAsync;rn importer.AddServiceDescription(description, null, null); //添加WSDL文档。rn CodeNamespace nmspace = new CodeNamespace(); //命名空间rn nmspace.Name = "JetSun"; //这个命名空间可以自己取rn CodeCompileUnit unit = new CodeCompileUnit();rn unit.Namespaces.Add(nmspace);rn ServiceDescriptionImportWarnings warning = importer.Import(nmspace, unit);rn CodeDomProvider provider = CodeDomProvider.CreateProvider("CSharp");rn CompilerParameters parameter = new CompilerParameters();rn parameter.GenerateExecutable = false;rn parameter.OutputAssembly = "MyTest.dll";//输出<em>程序</em>集的名称rn WriteLog("MyTest.dll 文件生成成功!下一步加载其他必要动态库文件!", "");rnrn parameter.ReferencedAssemblies.Add("System.dll");rn parameter.ReferencedAssemblies.Add("System.XML.dll");rn parameter.ReferencedAssemblies.Add("System.Web.Services.dll");rn parameter.ReferencedAssemblies.Add("System.Data.dll");rn CompilerResults result = provider.CompileAssemblyFromDom(parameter, unit);rn if (result.Errors.HasErrors)rn rn // 显示编译错误信息 rn rn Assembly asm = Assembly.LoadFrom("MyTest.dll");//加载前面生成的<em>程序</em>集rn WriteLog("MyTest.dll 文件加载成功!下一步引用服务端的服务说明", "");rnrn //Type t = asm.GetType("yzb.WeatherWS"); //前面的命名空间.类名,类必须是webservice中定义的rn Type t = asm.GetType("JetSun.EventBusSvc");//查询省份的 webservicernrn WriteLog("MyTest.dll 文件加载成功!下一步<em>调用</em>服务端函数..........内网", "");rnrn //Type t = asm.GetType("JetSun.Iniuservice");rn object o = Activator.CreateInstance(t);rn MethodInfo method = t.GetMethod(_methodName);//GetPersons是服务端的方法名称,你想<em>调用</em>服务端的什么方法都可以在这里改,最好封装一下rn WriteLog("获取服务端函数成功!下一步<em>调用</em>服务端函数..........内网", "");rnrn /*.---------------------------------------------------------------------------------------------------------------------------rn 一直到这里,都是正常执行的rn */rnrnrn //下面这条语句就执行不到, 错误类型是 : “<em>调用</em>的目标发生了<em>异常</em>”rn object item = method.Invoke(o, _params); //注:method.Invoke(o, null)返回的是一个Object,如果你服务端返回的是DataSet,这里也是用(DataSet)method.Invoke(o, null)转一下就行了rn WriteLog("动态<em>调用</em> webservice 函数执行完.........", "");rn WriteLog("服务端函数<em>调用</em>成功!.........................内网", "");rn return item;rn rn[/code]rn
webservice调用......
大家帮忙看看谢谢了rnrn[code=Java]rnDOMElement rootElement= new DOMElement("root");rn DOMDocument docs=new DOMDocument(rootElement);rn..........................rnService svc = new Service();rn Call call = (Call) svc.createCall();rn call.setTargetEndpointAddress(new java.net.URL("http://10.18.13.224:801/nma/services/UserBindAndUnbind"));rn call.setOperationName(new QName("http://www.ceshi.com/","bindORunbind"));rn System.out.println(docs.asXML());rn [b]result = (String) call.invoke( new Object[]docs.asXML());[/b]rn[/code]rnrn上边代码是<em>调用</em>webservice的,我打印出docs.asXML()中是有值的,但是<em>调用</em>call.invoke()这个方法,到webservice服务器后台就为null.rn真的折腾了一天了,不知道是什么原因。rn麻烦大家帮忙看看是什么原因.......小女子先谢谢谢谢大家了
调用webservice的问题,
我<em>调用</em>webservice接口,返回500,不知道是什么意思,哪位TX知道?rnrn而且该webservice有多个接口,但是不知道为什么有的能够<em>调用</em>,有的返回500.rnrn郁闷!
调用Webservice 求。。。。
最近在做调webservice的接口,网上的例子差不多都看遍了,我不是做java的 但是这次是要用java掉 可能水平也有限rnrn正常网上的例子的前面地址是这样的:rnString wsdlurl = "http://localhost:8089/springWebservice/services/my<em>WebService</em>?wsdl";rnString namespaceuri = "http://localhost:8089/springWebservice/services/my<em>WebService</em>";rnrnrn而我的webservice是拿delphi的Ro写的 而他的地址是http://localhost:8099/SOAP?service=NewService 我不知道怎么掉了rnrnaxis wsimport xfire生成什么客户端 我都试过 小弟水平有限,求大神指点,感激不尽。。所有分送上。。。谢谢
js调用webservice !!!!!
那位有webbehavior.htc文件。 能不能给我发个到我的邮箱里面来~~~rnrn谢谢~~~~rn635157000@QQ.com
sql+gridview运行时出现未处理nullreferenceexception
建立一个数据库再显示于gridview上,如下图所示:rn[img=https://img-bbs.csdn.net/upload/201708/23/1503497733_964330.png][/img]rn要实现的功能暂时是数据库的显示、修改、删除、增加,显示要求工艺号文本框内只有数字,就像图中那样,但是在该条件下再进行修改功能(增加、删除功能正常)就会<em>出现</em>“未处理nullreferenceexception,未将对象引用设置到对象的实例”的提示,求教一下该情况是什么原因,有什么解决办法?rn显示和修改代码如下:rn private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)rn rn //将各列的值对应显示于各文本框//rn string str = dataGridView1.SelectedCells[0].Value.ToString();rn str = str.Replace("工艺", "");//显示项去除“工艺”二字rn txtNo.Text=str;rn txtZJ.Text = dataGridView1.SelectedCells[2].Value.ToString();rn txtHD.Text = dataGridView1.SelectedCells[3].Value.ToString();rn txtRA.Text = dataGridView1.SelectedCells[7].Value.ToString();rn txtBC.Text = dataGridView1.SelectedCells[4].Value.ToString();rn cobDS.Text = dataGridView1.SelectedCells[5].Value.ToString();rn txtXL.Text = dataGridView1.SelectedCells[6].Value.ToString();rn txtCL.Text = dataGridView1.SelectedCells[1].Value.ToString();rn string str2 = dataGridView1.SelectedCells[8].Value.ToString();rn switch (str2)rn rn case "外形": radioButton1.Checked = true; break;rn case "内孔": radioButton2.Checked = true; break;rn rn rn private void button1_Click(object sender, EventArgs e)rn rn DataTable dt = ds.Tables["tb"];rn sda.FillSchema(dt, SchemaType.Mapped);rn DataRow dr = dt.Rows.Find(txtNo.Text);//编号rn //以下句子将各文本框中的内容放于对应列下rn dr["工艺号"] = "工艺" + this.txtNo.Text.Trim();rn dr["钼丝直径(mm)"] = this.txtZJ.Text.Trim();rn dr["工件厚度(mm)"] = this.txtHD.Text.Trim();rn dr["表面光洁度"] = this.txtRA.Text.Trim();rn dr["钼丝补偿(mm)"] = this.txtBC.Text.Trim();rn dr["切割次数"] = this.cobDS.Text.Trim();rn dr["切割效率(mm2/分钟)"] = this.txtXL.Text.Trim();rn dr["材料说明"] = this.txtCL.Text.Trim();rn if (radioButton1.Checked)rn rn dr["形状"] = "外形";rn rn else if (radioButton2.Checked)rn rn dr["形状"] = "内孔";rn rn SqlCommandBuilder cmdbuider = new SqlCommandBuilder(sda);rn sda.Update(dt);rn conn.Close();rn
java调用webservice程序
利用java语言,<em>调用</em>webservice接口。详细描述了如何<em>调用</em>给定的接口,和所需的所有jar包
delphi7调用.net编写的webservice出现奇怪异常
问题描述:rn.net开发的webservice访问地址为:http://218.4.155.114:99/<em>WebService</em>/EntInterface.asmx?WSDLrnrn用delphi7编写客户端<em>程序</em>,访问此webservice<em>出现</em>奇怪错误。rn先file-new-other-webservice 选择wsdl importer 输入“http://218.4.155.114:99/<em>WebService</em>/EntInterface.asmx?WSDL”rn生成单元文件EntInterface。有三个函数可以<em>调用</em>rnfunction SendMessage(const strLoginCode: WideString; const strPass: WideString; const strSpNum: WideString; const strRecvNum: WideString; const strMsg: WideString; const bConfirm: Integer; const AtDate: WideString): WideString; stdcall;rn function RecvMessage(const strLoginCode: WideString; const strPass: WideString): WideString; stdcall;rn function GetStatus(const strLoginCode: WideString; const strPass: WideString; const strSendID: WideString): WideString; stdcall;rn rnrn然后使用THTTPRIO<em>调用</em>webservice的函数rnprocedure TForm1.Button1Click(Sender: TObject);rnvarrn s:string;rnbeginrn HTTPRIO1.HTTPWebNode.UseUTF8InHeader := true;rn HTTPRIO1.URL := 'http://218.4.155.114:99/<em>WebService</em>/EntInterface.asmx';rn s := (HTTPRIO1 as EntInterfaceSoap).SendMessage('aa','bb','55','0123456','aaa',0,'');rn Button1.Caption := s;rnend;rn rn1.<em>调用</em>SendMessage函数时<em>出现</em>下列<em>异常</em>rn发送消息<em>出现</em>错误 System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 - System.<em>NullReferenceException</em>: 未将对象引用设置到对象的实例。rn at qxtweb.<em>WebService</em>.EntInterface.SendMessage(String strLoginCode, String strPass, String strSpNum, String strRecvNum, String strMsg, Int32 bConfirm, String AtDate)rn --- 内部<em>异常</em>堆栈跟踪的结尾 --rnrn2.<em>调用</em>GetStatus函数<em>出现</em>下列<em>异常</em>rn发送消息<em>出现</em>错误 System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 - System.ArgumentNullException: String 引用没有设置为 String 的实例。rn参数名: srn at System.Text.UTF8Encoding.GetBytes(String s)rn at TZCT.DB.SetRSAPass.Encrypting(String Source, String Key)rn at qxtweb.<em>WebService</em>.EntInterface.RecvMessage(String strLoginCode, String strPass)rn --- 内部<em>异常</em>堆栈跟踪的结尾 --rnrn3.<em>调用</em>RecvMessage函数<em>出现</em>下列<em>异常</em>rn发送消息<em>出现</em>错误 System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 - System.ArgumentNullException: 值不能为空。rn参数名: inputrn at System.Text.RegularExpressions.Regex.IsMatch(String input)rn at System.Text.RegularExpressions.Regex.IsMatch(String input, String pattern)rn at TZCT.DB.BaseFunction.IsUnsign(String str)rn at qxtweb.<em>WebService</em>.EntInterface.GetStatus(String strLoginCode, String strPass, String strSendID)rn --- 内部<em>异常</em>堆栈跟踪的结尾 ---rnrnrn请高手帮忙看看怎么解决这个问题啊?rn以前用delphi7<em>调用</em>webservice都很正常的rn
Silverlight中调用WebService出现InvalidOperationException异常怎么处理?
<em>WebService</em>能正常返回结果,返回值是一个集合,rnrn在silverlight中<em>调用</em><em>WebService</em>rn Photo<em>WebService</em>SoapClient client = new Photo<em>WebService</em>SoapClient();rn client.GetPhotosCompleted += new EventHandler(client_GetPhotosCompleted);rn string path = tvSelectItem + @"\" + selectDate;rn client.GetPhotosAsync(path);rnrn void client_GetPhotosCompleted(object sender,GetPhotosCompletedEventArgs e)rn rn tryrn rn if (!e.Cancelled && e.Error == null)rn rn MessageBox.Show(e.Result);rn rn elsern rn MessageBox.Show(e.Error.ToString());rn rn rnrnrnrn catch (Exception ex)rn rn MessageBox.Show(ex.ToString());rn rn rnrn单独运行<em>WebService</em>能正常返回,rn在silverlight<em>调用</em>是<em>出现</em>InvalidOperationException:[SFxInvalidMessageBodyErrorDeserializingParameter]rn请问是什么<em>异常</em>,怎么解决?
ppc 调用我本机的webservice时,出现异常System.NotSupportedException
rn 我在用ppc <em>调用</em>我本机的webservice时,<em>出现</em>了<em>异常</em>System.NotSupportedException.请问:是什么原因呀? rn还有就是怎么样使我的PPC支持中文开发.rn在装SQLCE时,为什么装不成功呢?<em>出现</em>一个错误框rn..rn 能联系我吗?rn email: huangweiling@163.comrnoicq: 12371601
jsp程序出现异常
我用sevlet来写的一个评价系统,我启动服务器时就会<em>出现</em><em>异常</em>,但是如果<em>出现</em><em>异常</em>,关闭一次服务器,再打开就没有那个<em>异常</em>了。我就不明白,这里看<em>异常</em>和session有关,但是我不知道怎么处理。对了还有,在我没有写 com.bean.Answer这个类的时候<em>出现</em><em>异常</em>后面写的是com.bean.Course。请高手解决一下。
mobile调用wcf服务 NullReferenceException
如题,wcf服务简单地返回一个"HelloMobile"的字符串,用basicHttpBinding,在iis中承载,用微软自带的wcfcilent工具测试通过.rn在mobile中用NetCFSvcUtil生成两个文件后,<em>调用</em>代码如下:rn public Form1()rn rn HelloMobileServiceClient hmsc = new HelloMobileServiceClient();rn string s = hmsc.sayHello();rn label1.Text = hmsc.sayHello();rn InitializeComponent();rn rn调试时,变量s得到值"HelloMobile",但运行到label1.Text = hmsc.sayHello();这一句时就抛出<em>NullReferenceException</em>,到底怎么回事啊
调用webservice 中出现的问题
写完webservice当然要<em>调用</em>,但是以前<em>调用</em>的都是我们的架构封装好的方法,我自己也没有看过,换了一家公司以后,自己又写了一个接口,这时候队友跪了,该如何<em>调用</em>呢?网上找了许多东西,但真正能用的东西不多,好多没用的东西还可能会误导大家,现在写一下我们自己的构成,可能和你的有很多的不一样,然后即使不同,也可以做一下参考 在这里写一下我们的构成:使用springMVC+CXF+json格式的
android调用webservice出现java.io.IOException
7 20:35:49.754: W/System.err(31102): java.io.IOExceptionrn03-17 20:35:49.754: W/System.err(31102): at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:87)rn03-17 20:35:49.754: W/System.err(31102): at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:205)rn03-17 20:35:49.754: W/System.err(31102): at org.ksoap2.transport.ServiceConnectionSE.openOutputStream(ServiceConnectionSE.java:126)rn03-17 20:35:49.754: W/System.err(31102): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:179)rn03-17 20:35:49.754: W/System.err(31102): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:116)rn03-17 20:35:49.754: W/System.err(31102): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:111)rn03-17 20:35:49.754: W/System.err(31102): at com.zx.weather.<em>WebService</em>Util.getProviceList(<em>WebService</em>Util.java:119)rn03-17 20:35:49.754: W/System.err(31102): at com.zx.weather.MainActivity.location(MainActivity.java:62)rn03-17 20:35:49.754: W/System.err(31102): at com.zx.weather.MainActivity.onCreate(MainActivity.java:57)rn03-17 20:35:49.755: W/System.err(31102): at android.app.Activity.performCreate(Activity.java:5224)rn03-17 20:35:49.755: W/System.err(31102): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)rn03-17 20:35:49.755: W/System.err(31102): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2297)rn03-17 20:35:49.755: W/System.err(31102): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2385)rn03-17 20:35:49.755: W/System.err(31102): at android.app.ActivityThread.access$600(ActivityThread.java:157)rn03-17 20:35:49.755: W/System.err(31102): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)rn03-17 20:35:49.755: W/System.err(31102): at android.os.Handler.dispatchMessage(Handler.java:99)rn03-17 20:35:49.755: W/System.err(31102): at android.os.Looper.loop(Looper.java:153)rn03-17 20:35:49.755: W/System.err(31102): at android.app.ActivityThread.main(ActivityThread.java:5322)rn03-17 20:35:49.755: W/System.err(31102): at java.lang.reflect.Method.invokeNative(Native Method)rn03-17 20:35:49.755: W/System.err(31102): at java.lang.reflect.Method.invoke(Method.java:511)rn03-17 20:35:49.755: W/System.err(31102): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:848)rn03-17 20:35:49.755: W/System.err(31102): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:615)rn03-17 20:35:49.755: W/System.err(31102): at dalvik.system.NativeStart.main(Native Method)rn有人<em>出现</em>过么? <em>急</em>啊rnht.call(SERVICE_NS+methodName, envelope);rn这句代码有什么问题 rn
webservice调用com出现的权限问题
写了一个webservice,引用一个com的RTCCORELib,产生一个interop的dll,在Global类里面<em>调用</em>,可是每次运行到new RTCCORELib.RTCClass的时候就会发生权限<em>异常</em>,请问如何解决?是不是因为interop的那个dll没有强名称,有什么简单的解决方法么?谢谢rn
gsoap调用webservice出现内存泄漏
<em>程序</em>运行起来后内存一直增长,<em>出现</em>了内存泄漏,经过各模块的测试分析,将泄漏代码<em>出现</em>在这一段。rn[code=c]/*webservice客户端函数,上传本地数据库数据到远程服务器*/rnint SendTo<em>WebService</em>(char **data_values,int n_columns,sqlite3* conn)rnrn char sql[200]=" ";rn char *err_msg; rn int res;rn struct soap *clientSoap = soap_new();rn SOAP_CMAC _ns1__SendOneMessage sendMsg; rn SOAP_CMAC _ns1__SendOneMessageResponse sendMsgResponse;rnrn#if 1rn soap_init(clientSoap);rn sendMsg.grpID=atoi(data_values[0]);rn sendMsg.cTime=atoi(data_values[1]);rn sendMsg.allEnCount=atoi(data_values[2]); rn sendMsg.allOutCount=atoi(data_values[3]);rn printf("sendMsg.grpID=%d;sendMsg.cTime=%d;sendMsg.enCount=%d;sendMsg.outCount=%d\n",sendMsg.grpID,sendMsg.cTime,sendMsg.allEnCount,sendMsg.allOutCount);rn sprintf_s(buffer,sizeof(buffer),"sendMsg.grpID=%d;sendMsg.cTime=%d;sendMsg.enCount=%d;sendMsg.outCount=%d",sendMsg.grpID,sendMsg.cTime,sendMsg.allEnCount,sendMsg.allOutCount);rn WriteLog(buffer);rnrn struct SOAP_ENV__Header header;rn clientSoap->header=&header;rn string strid("admin");rn string strpsw("123456");rn SOAP_CMAC ns1__MySoapHeader mySoapHeader;rn mySoapHeader.UserId=&strid;rn mySoapHeader.UserPW=&strpsw;rn header.ns1__MySoapHeader_=&mySoapHeader;rn clientSoap->header=&header;rnrn if(soap_call___ns1__SendOneMessage(clientSoap, NULL, NULL, &sendMsg, &sendMsgResponse)==SOAP_OK) rn rn //printf("response=%d\n ", sendMsgResponse.SendOneMessageResult); rn sprintf_s(buffer,sizeof(buffer),"sendMsgResponse.SendOneMessageResult=%d",sendMsgResponse.SendOneMessageResult);rn WriteLog(buffer);rn /*rn -1 =验证失败, -2=失败,1=插入成功,2=更新成功;rn 插入成功,更新成功写数据库,将数据标为已发送。rn 失败,返回-1,上传数据线程释放资源rn */rn switch(sendMsgResponse.SendOneMessageResult)rn rn case 0:rn soap_destroy(clientSoap); rn soap_end(clientSoap); rn soap_done(clientSoap);rn return -1;rn break;rn case 1:rn WriteLog("上传到服务器,数据插入成功");rn sprintf_s(sql,sizeof(sql),"Update Grp set IsSend=%d where CTime=%d and GropId=%d",1,atoi(data_values[1]),atoi(data_values[0]));rn res=sqlite3_exec(conn, sql, NULL, 0, &err_msg);rn if(res!=SQLITE_OK)rn rn fprintf(stderr,"操作失败,错误代码:%s",err_msg);rn sprintf_s(buffer,sizeof(buffer),"操作失败,错误代码:%s",err_msg);rn WriteLog(buffer);rn rn elsern rn printf("本地数据Issend更新为1成功\n");rn WriteLog("本地数据Issend更新为1成功");rn rn sqlite3_free(err_msg);rn break;rn case 2:rn WriteLog("上传到服务器,数据更新成功");rn sprintf_s(sql,sizeof(sql),"Update Grp set IsSend=%d where CTime=%d and GropId=%d",1,atoi(data_values[1]),atoi(data_values[0]));rn res=sqlite3_exec(conn, sql, NULL, 0, &err_msg);rn if(res!=SQLITE_OK)rn rn fprintf(stderr,"操作失败,错误代码:%s\n",err_msg);rn sprintf_s(buffer,sizeof(buffer),"操作失败,错误代码:%s",err_msg);rn WriteLog(buffer);rn rn elsern rn printf("本地数据Issend更新为1成功\n");rn WriteLog("本地数据Issend更新为1成功");rn rn sqlite3_free(err_msg);rn break;rn case -1:rn WriteLog("-1,连接服务器验证失败");rn soap_destroy(clientSoap); rn soap_end(clientSoap); rn soap_done(clientSoap); rn return -1;rn break;rn case -2:rn WriteLog("-2,失败");rn soap_destroy(clientSoap); rn soap_end(clientSoap); rn soap_done(clientSoap); rn return -1;rn break;rn default:rn WriteLog("连接<em>WebService</em><em>异常</em>");rn soap_destroy(clientSoap); rn soap_end(clientSoap); rn soap_done(clientSoap); rn return -1;rn break;rn rn soap_destroy(clientSoap); rn soap_end(clientSoap); rn soap_done(clientSoap);rn return 0 ;rn rn elsern rn printf("ERR\n");rn WriteLog("ERR");rn soap_destroy(clientSoap); rn soap_end(clientSoap); rn soap_done(clientSoap);rn return -1;rn rn#endifrnrn[/code]rn各位熟悉的大神,帮我看看?
调用WEBSERVICE出现空指针异常问题
<em>调用</em>代码如下:WEBSERVICE是通的,请问是什么原因啊,<em>急</em>....rnString endpoint="http://10.71.77.247/HZWGGZCLSERVICE/HZExceptionDisposeService.asmx";rnrn rnrn Service service = new Service();rnrn Call call = (Call)service.createCall();rnrn rnrn call.setTargetEndpointAddress(new java.net.URL(endpoint));rnrn call.setOperationName(new QName("http://10.71.77.247/hzwggzclservice","SendExceptionInfo"));rnrn rnrn call.addParameter("WorksheetNumber",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);rnrn call.addParameter("TelephoneNumber",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);rnrn call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);rnrn call.setUseSOAPAction(true);rnrn call.setSOAPActionURI("http://10.71.77.247/hzwggzclservice");rnrn rnrn rnrn res = (String)call.invoke(new Object[]bid,called);rnrn rnrn System.out.println( "result is ---------------------" + res + "----------.");rn
Unity 之 NullReferenceException(空引用异常)问题
重要类 其他版本 休假反馈 什么是空引用<em>异常</em>? A <em>NullReferenceException</em>当您试图访问没有引用任何对象的引用变量时发生。如果引用变量没有引用对象,那么它将被视为null。当变量为null发出<em>NullReferenceException</em>. C#和JavaScript中的引用变量在概念上与C和C+中的指针相似。引用类型默认为null若要指示它们没有引用任何对象,请执行以下操作。因...
调用C#开发的webservice捕获EAccessViolation异常 !!
在win7 x86环境下,同一个<em>程序</em>包在不同的电脑中运行,有的可以正常,有的却在<em>调用</em>webservice函数时提示EAccessViolation错误,rnrn找到一篇“关于BCB<em>调用</em>C#开发的webservice提示EAccessViolation”贴子,说是window安全问题,但不知是具体的什么安全问题,望解答,谢谢!
webservice异常
在我的classpath中已经有jaxrpc.jar了,为什么还是报Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceExceptionrnCaused by: java.lang.ClassNotFoundException: javax.xml.rpc.ServiceExceptionrnrnjaxrpc.jar中明明有这个类啊,请高手指教
WebService异常
rn<em>WebService</em> 请求代码如下:rnrnrn[code=java] public Object call<em>WebService</em>(Context context ,Intent intent,String methodName,rn Map paramerMap) rn String ip = null;rn String port = null;rn DBHelper dbHelper = new DBHelper(context);rn SQLiteDatabase db = dbHelper.getReadableDatabase();rn Cursor cursor = db.query("server", null, null, null, null, null,null);rn if (cursor != null && cursor.getCount() > 0) rn cursor.moveToFirst();rn ip = cursor.getString(1);rn port = cursor.getString(2);rn rn cursor.close();rn db.close();rn Bundle getBundle = intent.getExtras();rn SoapObject rpc = new SoapObject(Constant.WEBSERVICE_NAMESPACE,rn methodName);rn Iterator it = paramerMap.entrySet().iterator();rn System.out.println(paramerMap);rn while(it.hasNext())rn Entry entry = (Entry)it.next();rn // entry.getKey() 返回与此项对应的键rn // entry.getValue() 返回与此项对应的值rn String key = (String)entry.getKey();rn rpc.addProperty(key, entry.getValue());rn rn System.out.println("rpc======="+rpc);rn SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(rn SoapEnvelope.VER11);rn envelope.bodyOut = rpc;rn envelope.dotNet=false;rn envelope.setOutputSoapObject(rpc);rn //System.setProperty("http.keepAlive", "false"); rn HttpTransportSE ht = SingleInstanceHttpTransportSE.connect<em>WebService</em>("http://"+ip+":"+port+"/hhxj/ws/hhxj<em>WebService</em>");rn //(new MarshalBase64()).register(envelope);//放着没错rn try rn // web service请求rn System.out.println("http://"+ip+":"+port+"/hhxj/ws/hhxj<em>WebService</em>");rn ht.call(null, envelope);rn System.out.println("envelope.getResponse====" + envelope.getResponse());rn if(envelope.getResponse() != null)rn SoapObject result = (SoapObject) envelope.bodyIn;rn System.out.println("result=====" + result);rn return result;rn rn // 得到返回结果rn catch (Exception ex) rn System.out.println("::::错误开始::::");rn System.out.println("::::错误信息:" + ex.getMessage() + "::::");rn ex.printStackTrace();rn System.out.println("::::错误结束::::");rn rn return null;rn [/code]rnrnrn这段代码能连接到服务器,服务器能根据请求查询到数据rn但是客户端报错了,rn是 HttpTransportSE.call 这个地方报错rn报错如下:rnrnrn[code=sql]05-15 15:52:15.901: I/System.out(1429): ::::错误开始::::rn05-15 15:52:15.901: I/System.out(1429): ::::错误信息:Unexpected token (position:TEXT rn05-15 15:52:15.901: I/System.out(1429): ------=_Part_0_...@5:13 in java.io.InputStreamReader@43b23060) ::::rn05-15 15:52:15.901: W/System.err(1429): org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT rn05-15 15:52:15.901: W/System.err(1429): ------=_Part_0_...@5:13 in java.io.InputStreamReader@43b23060) rn05-15 15:52:15.901: W/System.err(1429): at org.kxml2.io.KXmlParser.next(KXmlParser.java:426)rn05-15 15:52:15.911: W/System.err(1429): at org.kxml2.io.KXmlParser.next(KXmlParser.java:310)rn05-15 15:52:15.911: W/System.err(1429): at org.kxml2.io.KXmlParser.nextTag(KXmlParser.java:2029)rn05-15 15:52:15.911: W/System.err(1429): at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:127)rn05-15 15:52:15.911: W/System.err(1429): at org.ksoap2.transport.Transport.parseResponse(Transport.java:118)rn05-15 15:52:15.911: W/System.err(1429): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:253)rn05-15 15:52:15.911: W/System.err(1429): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:116)rn05-15 15:52:15.911: W/System.err(1429): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:111)rn05-15 15:52:15.921: W/System.err(1429): at com.csscis.async.Call<em>WebService</em>.call<em>WebService</em>(Call<em>WebService</em>.java:61)rn05-15 15:52:15.921: W/System.err(1429): at com.csscis.async.HttpThread.run(HttpThread.java:60)rn05-15 15:52:15.921: I/System.out(1429): ::::错误结束::::[/code]rnrnrn请大哥们、大侠们、师傅们[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/13.gif][/img]!指点迷津![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/83.gif][/img]
动态添加Button 不知道为什么报异常NullReferenceException
[code=csharp]rnstring[] src = new string[dt.Rows.Count];rn string src1;rn for (int i = 0; i < dt.Rows.Count; i++)rn rn Button btn = new Button();rn rn src1 = dt.Rows[i].ItemArray[0].ToString();rn src[i] = src1;rn rn btn.BackColor = Color.Fuchsia;rn btn.Font = new Font("黑体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));rn btn.ForeColor = Color.White;rn btn.Location = new Point(0, 42 * i);rn btn.Name = src1;rn btn.Size = new Size(773, 42);rn //btn.TabIndex = 0;rn btn.Text = src1;rn btn.UseVisualStyleBackColor = false;rn btn.Click += new EventHandler(btn_Click);rn panel1.Controls.Add(btn);//这里报<em>异常</em>:<em>NullReferenceException</em>: 未将对象引用设置到对象的实例rn rn[/code]rn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/8.gif][/img]为什么呢? 找不到哪里出问题了啊
调用RMI 方法出现异常...
rnrn启动TOMCAT <em>调用</em>RIM 方法 时<em>出现</em>rn............rn............rnrn01:52:19,218 INFO :: SessionFactoryImpl > closingrn01:52:19,218 ERROR :: ContextLoader > Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean witrnh name 'org.springframework.remoting.rmi.RmiServiceExporter#1' defined in ServlerntContext resource [/WEB-INF/classes/applicationContext-service.xml]: Invocationrnof init method failed; nested exception is java.rmi.ServerException: RemoteExceprntion occurred in server thread; nested exception is:rn java.rmi.UnmarshalException: error unmarshalling arguments; nested exceprntion is:rn java.net.MalformedURLException: no protocol: Files/Tomcat5.5.9/webapps/frnimsserver/WEB-INF/classes/rnCaused by:rnjava.rmi.ServerException: RemoteException occurred in server thread; nested excernption is:rn java.rmi.UnmarshalException: error unmarshalling arguments; nested exceprntion is:rn java.net.MalformedURLException: no protocol: Files/Tomcat5.5.9/webapps/frnimsserver/WEB-INF/classes/rn at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385rn)rn at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)rn at sun.rmi.transport.Transport$1.run(Transport.java:153)rn at java.security.AccessController.doPrivileged(Native Method)rn at sun.rmi.transport.Transport.serviceCall(Transport.java:149)rn at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4rn66)rn at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransportrn.java:707)rn at java.lang.Thread.run(Thread.java:595)rn at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamrnRemoteCall.java:247)rn at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:rn223)rn at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)rn at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)rn at org.springframework.remoting.rmi.RmiServiceExporter.prepare(RmiServicrneExporter.java:256)rn at org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSernt(RmiServiceExporter.java:197)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanrnFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanrnFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanrnFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObrnject(AbstractBeanFactory.java:245)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistrrny.getSingleton(DefaultSingletonBeanRegistry.java:141)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBeanrn(AbstractBeanFactory.java:242)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBeanrn(AbstractBeanFactory.java:156)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.rnpreInstantiateSingletons(DefaultListableBeanFactory.java:290)rn at org.springframework.context.support.AbstractApplicationContext.refresrnh(AbstractApplicationContext.java:348)rn at org.springframework.web.context.support.AbstractRefreshableWebApplicarntionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)rn at org.springframework.web.context.ContextLoader.createWebApplicationConrntext(ContextLoader.java:246)rn at org.springframework.web.context.ContextLoader.initWebApplicationConternxt(ContextLoader.java:184)rn at org.springframework.web.context.ContextLoaderListener.contextInitialirnzed(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContexrnt.java:3669)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4rn104)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBasern.java:759)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73rn9)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)rnrn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.javrna:894)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jrnava:857)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475rn)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.javarn:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecyclrneSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)rnrn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)rnrn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442rn)rn at org.apache.catalina.core.StandardService.start(StandardService.java:4rn50)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:683rn)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:537)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.rnjava:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesrnsorImpl.java:25)rn............rn...........rn2007-10-2 1:52:19 org.apache.catalina.startup.Catalina startrn信息: Server startup in 19953 msrn
请教:调用Node.Release出现异常
代码如下:rnrn XMLDOMDocument2Ptr pXMLDom; rn IXMLDOMNodeListPtr pIDOMNodeList = NULL; rn IXMLDOMNodePtr pIDOMNODE = NULL;rn IXMLDOMNodePtr pIDOMParentNode = NULL;rn IXMLDOMNodePtr pNode = NULL;rn IXMLDOMNamedNodeMapPtr attr = NULL;rn // 初始化rn pIDOMNodeList = pXMLDom->getElementsByTagName( (TCHAR*)strFindText.data());rn for(int i=0; iitem[i]; rn AfxMessageBox((LPCSTR)pIDOMNODE->text);rn // 获取父节点 rn pIDOMParentNode = pIDOMNODE->parentNode; rn AfxMessageBox((LPCSTR)pIDOMParentNode->text);rn // 获取节点属性--后者是获取结点信息rn attr = pIDOMNODE->attributes;rn int count = attr->length;rn rn for(int i=0;iitem[i];rn AfxMessageBox((LPCSTR)pNode->nodeName);rn // pNode->Release(); //此地方不知道为啥不能释放!!!rn // pNode = NULL; rn rn // pNode->Release(); //此地方不知道为啥不能释放!!!rn // pNode = NULL;rn attr.Release();rn attr = NULL;rn pIDOMParentNode.Release();rn pIDOMParentNode = NULL;rn pIDOMNODE.Release();rn pIDOMNODE = NULL;rn rn 问题:上面关于pNode->Release()执行会<em>出现</em><em>异常</em>,放在第二个循环中或者放在第二个循环外面都会<em>出现</em>。放在第二个for循环里面的话,第一次执行没问题,执行了release,在循环的时候就出<em>异常</em>了,屏蔽掉就没问题,不知道啥原因,多谢指教~rn
使用cxf webservice时容易出现异常
使用cxf webservice时容易<em>出现</em>的<em>异常</em>
,.NET调用java webservice
这是JAVA添加的SOAPHead代码:rn public void invoke(MessageContext context) throws Exceptionrn rn Element el = new Element("header");rn context.getOutMessage().setHeader(el);rn Element auth = new Element("AuthenticationToken");rn Element username_el = new Element("loginNo");rn username_el.addContent(this.username);rn Element password_el = new Element("pwd");rn password_el.addContent(this.password);rn auth.addContent(username_el);rn auth.addContent(password_el);rn el.addContent(auth);rn rnrnrn现在用.net<em>调用</em>ws,可是怎么做都<em>出现</em>验证的问题,求解答.rn贴一下我的做法:rn1.添加一个新类rn [System.Serializable]rn [System.Xml.Serialization.XmlType(Namespace = "AuthenticationToken")]rn [System.Xml.Serialization.XmlRoot(Namespace = "AuthenticationToken", IsNullable = false)]rn public class AuthenticationToken : SoapHeaderrn rn public string loginNo = ""; //用户名rn public string pwd = ""; //口令rn rn2.然后在代理类里面定义一个public AuthenticationToken Header=new AuthenticationToken ();rn3.在<em>程序</em>里给Header赋值.rn4.给代理类的方法上面加上一个 [SoapHeader("Header")]rn最后还是出错。。。。请问这到底是什么原因...
阿!如何调用WebService
我就在本地写了个webservice,用IIS进行建站名称webservice,可以浏览它和<em>调用</em>方法,rn然后又在本地建立了个windows窗口,添加服务引用后,怎么<em>调用</em>里头的方法阿?
跪~~~vc6.0 调用webservice
ToolKit2.0 + vc6.0 rnrn<em>调用</em>webservice rnrn例如: webservice 为 www.111111.com/Info.asmxrnrn 方法为 getinfo 2个参数 一个是 name 一个是pwdrnrn请问如果<em>调用</em> 和传参数 谢谢,,很<em>急</em>
客户端调用webservice出现问题!!!!!!!!!!!!!!!!!!!
我用php<em>调用</em>一个接口可是却总掉不到方法,rn它给的wsdl文档是这样的:[code=XML]rnrnrnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrnrn[/code]rnrnrnrn我的php代码是这样的:[code=PHP]require_once($mosConfig_absolute_path."/includes/shinyv/nusoap.php");rn $s=new soapclient($this->_serviceUrl);rn //echo $this->_serviceUrl;exit;rn $s->soap_defencoding = 'ISO-8859-1';rn $s->decode_utf8 = false;rn $s->xml_encoding = 'ISO-8859-1';rn $result=$s->call('authentication', $this->getXml());[/code]rnrnrn可是总掉不到authentication的方法,服务器地址也对,但是报错,rnrnrn错误如下:rnSOAP-ENV:Client: Method 'ns4951:authentication' not implemented: method name or namespace not recognized<xmp
,javascript调用webservice问题
<em>调用</em>的webservice:rnurl:http://shulinzi.vicp.cc/chat/Service1.asmxrnservice.useService("http://shulinzi.vicp.cc/chat/Service1.asmx?WSDL","Chat<em>WebService</em>");rnrn下面是同一个页面使用两个不同的域名分别<em>调用</em>上面webservicern1.http://analyse.vicp.cc/TestWebSite/Default.aspx(同一站点放在不同的电脑上)rn2.http://shulinzi.vicp.cc/TestWebSite/Default.aspx(同一站点放在不同的电脑上)rnrn其中第2个没有错误,第一个报错为:service unavailablern和webservice地址不一样的域名不能<em>调用</em>服务,不知道为什么?rn现在要将站点和webservice放在不同的电脑上(域名不一样),rn那位老大帮下忙。十分感谢!rn
Asix调用webservice问题,
目前webservice返回结果: "PARAMERROR|参数设置错误"rn是我参数内容错还是设置错?rnrn private int webSend(int i) rn rn SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");//设置日期格式rn SimpleDateFormat df2 = new SimpleDateFormat("HHmmss");//设置日期格式rn String now = df.format(new Date()) + "M0" + df2.format(new Date());rn tryrn logger.info("web Send");rn rn //<em>WebService</em> URLrn String service_url = "http://192.168.1.6:5764/Service1.asmx";//config.getUrl();?wsdlrn rn Service serviceUrl = new Service();rn Call call = (Call) serviceUrl.createCall();rn call.setTargetEndpointAddress(new java.net.URL(service_url));rn rn //设置要<em>调用</em>的方法rn call.setOperationName("tobjdx");rn rn //该方法需要的参数 rn call.addParameter("sBusiNumber", org.apache.axis.encoding.XMLType.SOAP_STRING,rn javax.xml.rpc.ParameterMode.IN);rn call.addParameter("sMobile", org.apache.axis.encoding.XMLType.SOAP_STRING,rn javax.xml.rpc.ParameterMode.IN);rn call.addParameter("sRegID", org.apache.axis.encoding.XMLType.SOAP_STRING,rn javax.xml.rpc.ParameterMode.IN);rn call.addParameter("sMessage", org.apache.axis.encoding.XMLType.SOAP_STRING,rn javax.xml.rpc.ParameterMode.IN);rn rn //方法的返回值类型rn call.setReturnType(org.apache.axis.encoding.XMLType.SOAP_STRING);rn rn call.setUseSOAPAction(true);rn call.setSOAPActionURI("http://tempuri.org/tobjdx");rn rn logger.info(config.getBusinessID());rn logger.info(service.get(i).getMobile());rn logger.info(now);rnrn //<em>调用</em>该方法(Integer)rn String res = (String)call.invoke(rn new Object []rn "10659292019",rn "189217232334"rn "20120203084906M0084906",rn "可以获得更丰富的移动支付应用体验!"rn rn ); rn System.out.println( "Result: " + res); rn rn catch(Exception e)rn rn logger.warn(e);rn logger.info("到web服务失败");rn return -1;rn rn return 1;rn
asp调用webservice的问题()
System.Web.Services.Protocols.SoapException: 没有有效的操作参数,无法处理请求。请提供有效的 SOAP 操作。rnrnasp<em>调用</em>代码rnxmlstr ="......."(xml格式的字符串)rnSet poster = CreateObject("MSXML2.XMLHTTP")rnposter.Open "POST", "http://localhost/baoyue/Service.asmx?wsdl", falsernposter.setRequestHeader "Content-Length", len(xmlstr)rnposter.Send xmlstrrnrspxml=poster.responseTextrnresponse.write rspxmlrnwebservice 用asp.net调引正确rnpublic void SyncOrderRelation(ref string Version, ref string MsgType, AddressInfo Send_Address, AddressInfo Dest_Address, string MsgID, UserID FeeUser_ID, UserID DestUser_ID,rn ServiceID Service_ID, int ServiceType, out int hRet, out int FeeCode, out string FeeMSISDN, out byte[] FeePseudoCode, out string DestMSISDN,rn out byte[] DestPseudoCode, out int SendSPUserIDType, out int OperType, ref string LinkID, out int UserType, out string SPID, out string SPServiceID, out int ConnectDeviceID)rn
!webservice无法调用的问题
WEBSERVICE用浏览器器打开,但却无法<em>调用</em>, <em>出现</em>这样的字段 rnrn
delphi webservice 调用报错
project project3.exe raised exception class ERemotableException with message 'access violation at address 004037B in module'project2.exe'.read of address 00000003'.process stopped.use step or run to continue.
webservice 客户端调用为题[]
2010-5-13 10:48:53 org.codehaus.xfire.handler.DefaultFaultHandler invokern严重: Fault occurred!rnorg.codehaus.xfire.XFireRuntimeException: Error invoking 'com.webs.service.IWebServer.getRegionTarticlelist(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: nullrnjava.lang.reflect.InvocationTargetExceptionrn 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.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:59)rn at org.codehaus.xfire.service.invoker.ObjectInvoker.invoke(ObjectInvoker.java:45)rn at org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:320)rn at org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86)rn at org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134)rn at org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)rn at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)rn at org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:304)rn at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:129)rn at org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.java:116)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:228)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:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)rn at java.lang.Thread.run(Thread.java:595)rnCaused by: java.lang.OutOfMemoryError: Java heap spacern2010-5-13 10:48:53 org.apache.struts.chain.commands.AbstractExceptionHandler executern警告: Unhandled exceptionrnorg.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Error invoking 'com.webs.service.IWebServer.getRegionTarticlelist(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: nullrnorg.codehaus.xfire.fault.XFireFault: Error invoking 'com.webs.service.IWebServer.getRegionTarticlelist(java.lang.String)'. 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 $Proxy19.getRegionTarticlelist(Unknown Source)rn at com.webc.action.SelectAction.execute(SelectAction.java:85)rn at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)rn at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)rn at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)rn at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)rn at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)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 com.webc.action.SetCheseEncoding.doFilter(SetCheseEncoding.java:23)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)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:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)rn at java.lang.Thread.run(Thread.java:595)rn
!!!!!!!!RPCServiceClient-调用webservice客户端。。。。
import javax.xml.namespace.QName;rnrnimport org.apache.axis2.AxisFault;rnimport org.apache.axis2.addressing.EndpointReference;rnimport org.apache.axis2.client.Options;rnimport org.apache.axis2.rpc.client.RPCServiceClient;rnrn rnrnpublic void callRemoteFun()rn RPCServiceClient client = null;rn try rn client = new RPCServiceClient();rn Options options = client.getOptions(); rn // 创建一个远程的访问地址 rn EndpointReference target = new EndpointReference("http://...");rn options.setTo(target);rn catch (AxisFault e) rn e.printStackTrace();rn rn Object[] objargs = new Object[] "001","1.00","3","123456","5";rn Class[] getobj = new Class[] String.class ;rn Object[] response = client.invokeBlocking(new QName("SERVICE_NAMESPACE", "serviceName"), rn objargs,getobj); rn String result = (String) response[0];rn rnrn在我的webServers端的方法:rnpublic String test1(String[] str)rn System.out.println("<em>调用</em>成功1");rnrnrnpublic String test2(String id,String name)rn System.out.println("<em>调用</em>成功2");rnrnrn为什么我test2的方法<em>调用</em>不到,我老是<em>调用</em>不了,是不是RPC核心就是只能传递一个object[]?还是只能<em>调用</em>一个带参数的方法?
~~怎么调用java的webservice??
在java里怎么<em>调用</em>我发布的java web service??请大家给出一个例子。我的服务器是tomcat5.0rn之前一直是用c#,目前用c#<em>调用</em>java的web service有问题,所以我先用java<em>调用</em>一下。请大家给出一个例子,非常感谢!
Axis下WebService调用问题,!!!
本人按照网上例子制作一个Sample,遇到一个问题,当用JAVA编写的客户端<em>调用</em>返回值类型是int的函数时能正确得到返回值,但是<em>调用</em>返回值类型是String的函数时,不能正确得到返回值。请高手指教!rnrn以下为服务器端<em>程序</em>源代码:rnrn/**rn * 此处插入类型描述。rn * 创建日期:(2005-10-27 10:32:48)rn * @author:Administratorrn */rnimport java.util.*;rn rnpublic class ZxjTest rnprotected String name="gaga";rnprotected int age=20;rnprotected int sex=22;rnprotected List items=new ArrayList();rn/**rn * ZxjTest 构造子注解。rn */rnpublic ZxjTest() rnsuper();rnrnpublic String getName()rnrnreturn name;rnrnpublic int getAge()rnrnreturn age;rnrnpublic int getSex()rnrnreturn sex;rnrnpublic List getItems()rnrnreturn items;rnrnrnrn客户端<em>调用</em>的源代码:rn String endpoint = "http://myserver:7001/ZxjTest.jws";rn Service service = new Service();rn Call call = (Call) service.createCall();rn call.setTargetEndpointAddress(new java.net.URL(endpoint));rn call.setOperationName("getName");rn String ret = (String) call.invoke(new Object[] );rnrn出错的就是最后一句。如果这一句改成<em>调用</em>返回值是Int的函数,就不会出错。rnrn请问,这是Axis的配置的问题吗?如果是,该如何改?请赐教!rn
请教调用webservice的问题!!!!!!
<em>调用</em>服务器上的webservice出错了。谁能给看一下。十分感谢!!rn代码:rnpublic class <em>WebService</em> rnrn public static void main(String[] args)rnrn tryrn rn Service serv=new Service();rn Call call=(Call)serv.createCall();rn call.setTargetEndpointAddress( "http://10.1.11.82/<em>WebService</em>s/<em>WebService</em>");rn call.setOperationName("referApply");rn rn call.addParameter( "op1", XMLType.XSD_STRING, ParameterMode.IN );rn call.setReturnType(XMLType.XSD_STRING);rn String str = "";rn str = str + "";rn str = str + "";rn str = str + "69000";rn str = str +"";rn str = str + "";rn str = str + "uaastest";rn str = str + "card";rn str = str + "uaastest";rn str = str + "";rn str = str + "";rnrn Object ret=call.invoke("referApply",new Object[]str);rn rn if (ret == null)rn System.out.println("error");rn elsern System.out.println(ret);rn rn rn catch(Exception ex)rn rn ex.printStackTrace() ;rn rnrn rnrn错误信息:rnAxisFaultrn faultCode: http://schemas.xmlsoap.org/soap/envelope/Serverrn faultSubcode: rn faultString: Found SOAPElement [69000uaastestcarduaastest]. But was not able to find a Part that is registered with this Message which corresponds to this SOAPElementrn faultActor: rn faultNode: rn faultDetail: rn http://www.bea.com/servers/wls70/webservice/fault/1.0.0stacktrace:javax.xml.soap.SOAPException: Found SOAPElement [69000uaastestcarduaastest]. But was not able to find a Part that is registered with this Message which corresponds to this SOAPElementrn at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:365)rn at weblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.java:70)rn at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java:131)rn at weblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:561)rn at weblogic.webservice.core.Default<em>WebService</em>.invoke(Default<em>WebService</em>.java:273)rn at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(ServletBase.java:400)rn at weblogic.webservice.server.servlet.<em>WebService</em>Servlet.serverSideInvoke(<em>WebService</em>Servlet.java:269)rn at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:384)rn at weblogic.webservice.server.servlet.<em>WebService</em>Servlet.doPost(<em>WebService</em>Servlet.java:237)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)rn at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)rn at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)rnrnrnFound SOAPElement [69000uaastestcarduaastest]. But was not able to find a Part that is registered with this Message which corresponds to this SOAPElementrn at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)rn at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)rn at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)rn at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:546)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:533)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1535)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:348)rn at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:539)rn at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)rn at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1125)rn at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)rn at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)rn at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)rn at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2784)rn at org.apache.axis.client.Call.invoke(Call.java:2767)rn at org.apache.axis.client.Call.invoke(Call.java:2443)rn at org.apache.axis.client.Call.invoke(Call.java:2366)rn at org.apache.axis.client.Call.invoke(Call.java:2391)rn at com.szhtp.selfenter.webservice.Login<em>WebService</em>1.main(Login<em>WebService</em>1.java:35)
android调用Webservice问题 !!!
请问我需要用android<em>调用</em>Webservice,但是那个Webservice不是我本人做的,那我需要怎么样才能知道这个Webservice里面的,命名空间(NAMESPACE),地址(url),方法地址(SOAP_ACTION)呢? 求解
:Silverlight 调用webService 的问题
rn 我的webservice 没问题,能用浏览器查看到里面的方法,可是在silverlight 里面<em>调用</em>的时候,去引用不到那个类..rnrn在silverlight 里面能看到的是,比如说我的那个web service 叫 Mywebservice...而我能看到的的是 rnrnMywebserviceSoapClient,不知道为什么引用不到,请懂的人指点一下....
WebService无法调用应用程序
rn1、新建一Windows Project,引用一打印的组件并打印,可行。rn通过<em>WebService</em>引用此组件,同样的代码打印文件,出错,请问会是什么问题啊rnrn2、<em>WebService</em>中<em>调用</em>exe文件的问题rn由于(1)中无法在<em>WebService</em>中直接实现此功能,我尝试在Windows Project中实现此功能(在Form1的LOAD下添加代码,生成应用<em>程序</em>WindowsApplication1.exe,在<em>WebService</em>中通过System.Diagnostics.Process.Start(@"E:\WindowsApplication1.exe")来打开此应用<em>程序</em>)rnrn<em>出现</em>问题:进程中有WindowsApplication1,但并无弹出窗体Form1,请问<em>WebService</em>如何<em>调用</em>exe啊
网站调用webservice的问题?!!!
我写了一个webservice ,在我的网站<em>程序</em>中<em>调用</em>,添加引用webservice的app_code.dll,rn添加web引用webservice,rn在我生成发布网站时,引用的app_code.dll和网站生成的app_code.all产生重名冲突rn改app_code文件夹的名就不能生成app_code.dllrnrn大侠们帮帮忙,我快<em>急</em>死了!!!!!!!!!rn
求!!!关于webservice调用!!!
这周在测试顺丰接口<em>调用</em>,要求本周内跑通rn所以<em>急</em>求啊!!!rn各位大大走过路过不要错过!!!rnrn具体是这样的,要通过webservice<em>调用</em>接口rn测试环境服务地址:rnhttp://bsp-test.sf-express.com:9090/bsp-ois/ws/expressService?wsdlrnrn[img=https://img-bbs.csdn.net/upload/201408/14/1408000858_841149.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201408/14/1408000868_94836.jpg][/img][img=https://img-bbs.csdn.net/upload/201408/14/1408000874_293265.jpg][/img]rnrnrn对接技术人员说不支持http post方式(俺就只会这个)rn加之小弟webservice不是很懂rnrn如果方便,想请教各位大大代码该怎么写rnrn先谢谢了!!!rnrn第一次悬赏100分!!!rnrnrn
jquery 调用webservice问题!
$(document).ready(function() rnrn $("#txtSearch").blur(function() rn debugger; var contentValue = $("#txtSearch").val();rn $.ajax( type: "POST",rn contentType: "application/json; charset=utf-8",rn url: "getInformation.asmx/getPrompt",rn data: "'content':contentValue",rn dataType: "json",rn success: function(result) rn alert(result.d);rn rn );rn );rn rn );rnrnrn[System.Web.Script.Services.ScriptService]rn public class getInformation : System.Web.Services.<em>WebService</em>rn rnrn rn [WebMethod]rn public string getPrompt(string content)rn rn return "OK";rn rn rn不知道什么地方出错,请会的人帮忙指教!谢谢rn rnrn
android调用webservice上传图片,soapEnvelope.getResponse() 异常
执行soapEnvelope.getResponse()这步时,<em>出现</em><em>异常</em>,在网上找一些解决办法是在之前加Object,但是试了之后在我这里不起作用,求大神指导。 rn[img=https://img-bbs.csdn.net/upload/201506/01/1433140379_420207.png][/img]rn[img=https://img-bbs.csdn.net/upload/201506/01/1433140478_601654.jpg][/img]
webService 调用服务器异常 请高手帮忙
/**rn * rn */rnpackage com.ideal.epay.socket.services;rnrnimport java.io.IOException;rnrnimport javax.xml.rpc.ServiceException;rnrnimport org.apache.axis.client.Call;rnimport org.apache.axis.client.Service;rnimport org.apache.axis.encoding.XMLType;rnrnimport com.ideal.epay.busi.model.FeeCollectQry_Res;rnimport com.ideal.epay.busi.model.OweChargeQuery_Res;rnrn/**rn * @author zouxianwurn * 欠费查询结果返回rn * &2007-08-24rn */rnpublic class TentSystemOweQueryChargeServerrn public FeeCollectQry_Res clientQuery() throws IOException rn FeeCollectQry_Res resq=new FeeCollectQry_Res();rn try rn rn String endpoint = "http://134.201.27.8:8082/NetService/services/WSS";rn Service service = new Service();rn Call call;rn call = (Call) service.createCall();rn call.setTargetEndpointAddress( new java.net.URL(endpoint) );rn call.setOperationName("FeeCollectQry");rn //取String数组call.setReturnType(XMLType.SOAP_ARRAY);rn FeeCollectQry_Res res = (FeeCollectQry_Res) call.invoke( new Object[] "","07715508343","1","1" );rn System.out.println( res.getAccNbr());rn catch (ServiceException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn return resq;rn rn rn public static void main(String arges[])rn TentSystemOweQueryChargeServer tentS=new TentSystemOweQueryChargeServer();rn rn try rn tentS.clientQuery();rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rnrnrn*************************************<em>异常</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:305)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)rn at java.net.Socket.connect(Socket.java:426)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:324)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.ideal.epay.socket.services.TentSystemOweQueryChargeServer.clientQuery(TentSystemOweQueryChargeServer.java:34)rn at com.ideal.epay.socket.services.TentSystemOweQueryChargeServer.main(TentSystemOweQueryChargeServer.java:48)rnrn http://xml.apache.org/axis/hostname:ws-sh-l0162rnrnjava.net.ConnectException: Connection refused: connectrn at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)rn at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)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.ideal.epay.socket.services.TentSystemOweQueryChargeServer.clientQuery(TentSystemOweQueryChargeServer.java:34)rn at com.ideal.epay.socket.services.TentSystemOweQueryChargeServer.main(TentSystemOweQueryChargeServer.java:48)rnCaused by: java.net.ConnectException: Connection refused: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)rn at java.net.Socket.connect(Socket.java:426)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:324)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 ... 11 morernrnrn大哥这是什么问题帮帮忙解决rnrnrnrn
axis调用webservice的一个E异常解决方法
警告: Unable to find required classes (javax.activation.DataHandler and javax.ma il.internet.MimeMultipart). Attachment support is disabled. Exception in thread &quot;main&quot; AxisFault faultCode: {http://s...
android客户端调用webservice报异常,是怎么回事
[code=java]package Telephone.test;rnrnimport org.ksoap2.SoapEnvelope;rnimport org.ksoap2.serialization.SoapObject;rnimport org.ksoap2.serialization.SoapSerializationEnvelope;rnimport org.ksoap2.transport.HttpTransportSE;rnrnimport android.app.Activity;rnimport android.os.Bundle;rnimport android.view.View;rnimport android.view.View.OnClickListener;rnimport android.widget.Button;rnimport android.widget.EditText;rnimport android.widget.TextView;rnpublic class TelephoneActivity extends Activity rn /** Called when the activity is first created. */rn private EditText phoneSecEditText;rn private TextView resultView;rn private Button queryButton;rn public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rn queryButton = (Button) findViewById(R.id.query_btn);rn queryButton.setOnClickListener(new OnClickListener() rn public void onClick(View v) rn rn String username = phoneSecEditText.getText().toString().trim();rn getRemoteInfo(username);rn rn );rn rn rn public void getRemoteInfo(String username) rn // 命名空间rn String nameSpace="http://tempuri.org/";rn // <em>调用</em>的方法名称rn String methodName="GetUserList";rn // EndPointrn String endPoint="http://192.168.0.100:8081/<em>WebService</em>.asmx";rn // SOAP Actionrn String soapAction="http://tempuri.org/GetUserList";rnrn // 指定<em>WebService</em>的命名空间和<em>调用</em>的方法名rn SoapObject rpc = new SoapObject(nameSpace, methodName);rnrn // 设置需<em>调用</em><em>WebService</em>接口需要传入的两个参数mobileCode、userIdrn rpc.addProperty("username", username);rn rnrn // 生成<em>调用</em><em>WebService</em>方法的SOAP请求信息,并指定SOAP的版本rn SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);rnrn envelope.bodyOut = rpc;rn // 设置是否<em>调用</em>的是dotNet开发的<em>WebService</em>rn envelope.dotNet = true;rn // 等价于envelope.bodyOut = rpc;rn envelope.setOutputSoapObject(rpc);rnrn HttpTransportSE transport = new HttpTransportSE(endPoint);rn try rn // <em>调用</em><em>WebService</em>rn transport.call(soapAction, envelope);rn catch (Exception e) rn e.printStackTrace();rn rnrn // 获取返回的数据rn SoapObject object = (SoapObject) envelope.bodyIn;rn // 获取返回的结果rn String result = object.getProperty(0).toString();rn //String result = "lijian";rnrn // 将<em>WebService</em>返回的结果显示在TextView中rn resultView.setText(result);rn rn[/code]rnrn
如何处理webService调用失败时的异常
当http服务器端的IIS和ASP.NET服务没有启动时,webservice<em>调用</em>产生的<em>异常</em>如何处理,rn其<em>异常</em>处理结构是怎样的
*****************客户端调用webservice 报javax.xml.bind.UnmarshalException异常
javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: unexpected element (uri:"http://common.web.topsoft.com", local:"return"). Expected elements are (none) rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)rn at $Proxy77.caseSourceInfoForOtherSystem(Unknown Source)rn at com.topnet.stag.service.SuspectIllegalProcessServiceTest.testSuspectIlleal(SuspectIllegalProcessServiceTest.java:70)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)rn at java.lang.reflect.Method.invoke(Method.java:599)rn at junit.framework.TestCase.runTest(TestCase.java:154)rn at junit.framework.TestCase.runBare(TestCase.java:127)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:118)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)rnCaused by: javax.xml.bind.UnmarshalExceptionrn - with linked exception:rn[javax.xml.bind.UnmarshalException: unexpected element (uri:"http://common.web.topsoft.com", local:"return"). Expected elements are (none)]rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:421)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:330)rn at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:768)rn at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:632)rn at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:156)rn at org.apache.cxf.interceptor.DocLiteralInInterceptor.getPara(DocLiteralInInterceptor.java:260)rn at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:127)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)rn at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:785)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2375)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2233)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2076)rn at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)rn at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:724)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:546)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:343)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:295)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)rn ... 18 morernCaused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://common.web.topsoft.com", local:"return"). Expected elements are (none)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:603)rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:244)rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:239)rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1009)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:446)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:427)rn at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:275)rn at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:209)rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:358)rn ... 38 morernCaused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://common.web.topsoft.com", local:"return"). Expected elements are (none)rn ... 48 morernrn
VC调用webservice异常捕捉如何做?
localhost::Service1 svr;rnCString userInfo=svr.GetUserInfo(_T("sss"),_T("www"));rnMessageBox(userInfo);rnrnrn以上三句代码在网络正常情况下没问题,返回我想要的结果,如果在网络断开的情况下回<em>出现</em>如下<em>异常</em>rnrn[color=#FF0000]未处理的“System.Net.WebException”类型的<em>异常</em><em>出现</em>在 System.dll 中。rnrn其他信息: 无法连接到远程服务器[/color]rnrn,请问如何进行<em>异常</em>的捕捉,最好给出代码,谢谢!rnrn
调用webservice时常见的几种异常原因
今天由于公司业务,需要<em>调用</em>webservice服务,一开始一直报错,在网上搜集一些资料后,先整理如下: 问题1:Java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException,原因是没有导入 axis2-saaj.jar包 问题2:java.lang.NoClassDefFoundError: org/apache/commons/di
WinCE环境下调用WebService速度慢,报异常··
在WINCE下写了一客户端,功能很简单目,就是将从串口中获取到的数据在数据库中进行校验然后返回,这中间是通过WEBSERVICE进行的<em>调用</em>,在这个简单的过程中遇到了这样两个问题:rn 其一:就是<em>调用</em>WEBSERVICE速度很慢,除了第一次速度很慢很慢之外,后面的每一次<em>调用</em>都在耗时240毫秒至400毫秒之间,如果不通过WEBSERVICE来<em>调用</em>而是直接对着数据库操作,每次<em>调用</em>的速度在100毫秒左右 (PS:在PC机上测试两种<em>调用</em>方式时间都很短,均在16毫秒左右),我想知道这种差异是什么造成的?有没有解决办法。rn rn 其二:在WINCE上<em>调用</em>WEBSERVICE的时候常常会捕捉到一个<em>异常</em>信息:rnexception: There were not enough free threads in the ThreadPool object to complete the operation 通过查找MSDN知道是应用<em>程序</em>池中的可用线程已满,新的链接请求不能被执行造成的,但根据MSDN上提供的方式试过之后还是会<em>出现</em>这个问题,不知道是不是我更改的位置或者信息不对,请大侠给予指点,非常感谢rnrn现附上MSDN中处理该<em>异常</em>的链接:http://support.microsoft.com/kb/821268rnrn期待你指点迷津···
webservice 客户端调用服务端异常: javax.xml.bind.UnmarshalException
客户端<em>异常</em>日志:rnrn2012-11-05 17:16:39,692 INFO [STDOUT] (pool-15-thread-1) DefaultValidationEventHandler: [ERROR]: unexpected element (uri:"http://server.product.xxx.xxx.com", local:rn"return"). Expected elements are rn2012-11-05 17:16:39,693 INFO [STDOUT] (pool-15-thread-1) Location: line 1rn2012-11-05 17:16:39,698 WARN [org.apache.cxf.phase.PhaseInterceptorChain] (pool-15-thread-1) Interceptor for http://server.product.xxx.xxx.comproductService#httprn://server.product.xxx.xxx.comsyncCrbtProduct has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"htrntp://server.product.xxx.xxx.com", local:"return"). Expected elements are rn at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:787) [:2.3.1-patch-01]rn at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:628) [:2.3.1-patch-01]rn at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:133) [:2.3.1-patch-01]rn at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:109) [:2.3.1-patch-01]rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255) [:2.3.1-patch-01]rn at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:755) [:2.3.1-patch-01]rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2330) [:2.3.1-patch-01]rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2192) [:2.3.1-patch-01]rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2036) [:2.3.1-patch-01]rn at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) [:2.3.1-patch-01]rn at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:696) [:2.3.1-patch-01]rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) [:2.3.1-patch-01]rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255) [:2.3.1-patch-01]rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516) [:2.3.1-patch-01]rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313) [:2.3.1-patch-01]rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265) [:2.3.1-patch-01]rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) [:2.3.1-patch-01]rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124) [:2.3.1-patch-01]rn at $Proxy192.syncCrbtProduct(Unknown Source) at com.karakal.tyqk.server.sendServiceBeans.SendDataPolicy.sendIMPData(SendDataPolicy.java:186) [:]rn at com.karakal.tyqk.server.sendServiceBeans.DataSendProcess$1.run(SendDataToMusicServiceBean.java:171) [:]rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_26]rn at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_26]rn at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_26]rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_26]rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_26]rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_26]rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]rn at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]rnCaused by: javax.xml.bind.UnmarshalExceptionrn - with linked exception:rn[javax.xml.bind.UnmarshalException: unexpected element (uri:"http://server.product.xxx.xxx.com", local:"return"). Expected elements are ]rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:425) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:362) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:339) [:2.2]rn at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:764) [:2.3.1-patch-01]rn ... 29 morernCaused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://server.product.xxx.xxx.com", local:"return"). Expected elements are rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:642) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:254) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:249) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:101) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(StructureLoader.java:243) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:478) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:459) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:242) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:176) [:2.2]rn at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360) [:2.2]rn ... 31 morernCaused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://server.product.xxx.xxx.com", local:"return"). Expected elements are rn ... 42 morernrn服务器:jboss7rn本地测试通过axis2生成的客户端或者用soapUI工具<em>调用</em>服务器上的服务均能通过,但是其他厂商配合我联调测试时候<em>出现</em>该<em>异常</em>(11月1号更新了服务器上的服务后,开始<em>出现</em>此<em>异常</em>,在此之前联调,本地测试都没有问题)。请大虾指条明路。。rnrn
axis2 WebService的发布与调用及部分异常
转自:http://www.blogjava.net/tianchijiaozi/archive/2013/03/15/396452.html 解决按原流程操作无法进行下去的问题 准备:JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html eclipse:http://www.
连续调用webservice 10次后出项异常
连续<em>调用</em>webservice 10次后出项<em>异常</em>rnrn未处理的“System.ExecutionEngineException”类型的<em>异常</em><em>出现</em>在 mscorlib.dll 中。rn应该怎么办
java axis2 调用webservice异常求解
谢了一个axis2客服端<em>调用</em>webservice的项目。部署在tomcat上面完全正常,部署在weblogic<em>出现</em>以下<em>异常</em>:rnRPCMessageReceiver - com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected chrnaracter ':' (code 58) excepted space, or '>' or "/>"rn at [row,col unknown-source]: [1,210]rnorg.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Urnnexpected character ':' (code 58) excepted space, or '>' or "/>"rn at [row,col unknown-source]: [1,210]rn at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.javrna:297)rn at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.jrnava:652)rn at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementrnImpl.java:669)rn at org.apache.axiom.om.impl.llom.OMElementImpl.getChildren(OMElementImplrn.java:351)rn at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.javarn:544)rn at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:15rn3)rn at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.javrna:188)rn at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogicrn(RPCMessageReceiver.java:102)rn at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinesrnsLogic(AbstractInOutMessageReceiver.java:40)rn at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMernssageReceiver.java:114)rn at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)rn at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReqrnuest(HTTPTransportUtils.java:173)rn at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1rn44)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(ApplrnicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFrnilterChain.java:188)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVrnalve.java:210)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVrnalve.java:174)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jrnava:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jrnava:117)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValrnve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.javrna:151)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.javarn:870)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.prnrocessConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpornint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFolrnlowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPrnool.java:685)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':rn' (code 58) excepted space, or '>' or "/>"rn at [row,col unknown-source]: [1,210]rn at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:rn648)rn at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.javrna:2965)rn at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.jrnava:2936)rn at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.javarn:2848)rn at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)rn at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStrrneamReaderWrapper.java:225)rn at org.apache.axiom.util.stax.dialect.DisallowDoctypeDeclStreamReaderWrarnpper.next(DisallowDoctypeDeclStreamReaderWrapper.java:34)rn at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStrrneamReaderWrapper.java:225)rn at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuildrner.java:682)rn at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.javrna:215)rn ... 28 more
pb11调用webservice 返回 dataset !!
pb11<em>调用</em>webservice 返回 dataset ,pb中any接收,怎样取出接收的数据到datawindow中 <em>急</em>!<em>急</em>!
Wince程序调用WebService的问题
各位大虾,小弟现在在做Wince的<em>程序</em>,我现在Wince<em>程序</em>的<em>WebService</em>是在VS2005中直接添加的Web引用,然后部署运行,可现在问题出来,如果我的<em>WebService</em>的URL改变了,那我必须在重新手动去修改和更新Web引用,这样太麻烦了,我想能不能做一个动态更新<em>WebService</em>的URL的解决方法!rn 求大虾们帮帮忙啊!
在webService中调用Console程序
一:在webService中各个方法传入不同的参数                System.Diagnostics.Process p = new System.Diagnostics.Process();                 p.StartInfo.WorkingDirectory = "E:\\Socket\\newProJect\\ConfigChannel\\Confi
FTP批量扫描挂马工具《绝对好用).rar下载
好不容易找到的资源呀................................ 相关下载链接:[url=//download.csdn.net/download/yearhacker/2592444?utm_source=bbsseo]//download.csdn.net/download/yearhacker/2592444?utm_source=bbsseo[/url]
《WIN高级编程》实验实例(程细柱)下载
《WIN高级编程》实验实例(程细柱) 这个都是本人收藏了3年的资源 现放出 都是总结了很多系统 软件项目实施过程中的经验的 慢慢积累的 相关下载链接:[url=//download.csdn.net/download/jinghuazhi/3780659?utm_source=bbsseo]//download.csdn.net/download/jinghuazhi/3780659?utm_source=bbsseo[/url]
捷微bae百度部署详解下载
微信公众平台管理软件jeewx,详细的配置说明 相关下载链接:[url=//download.csdn.net/download/pansierli/7944053?utm_source=bbsseo]//download.csdn.net/download/pansierli/7944053?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的