kettle: 调用webservice
  1. 使用kettle(8.2)调用webservice时候出现异常
  2. 报错信息如下:

    Could not find the schema with the name {http:/xxxx/}Exception within the specified wsdl.

    General - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Could not retrieve WSDL Operator for operation name: xxx

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Kettle入门与Java程序调用Kettle
Pentaho Data Integration(Kettle)是一个免费开源的基于Java的ETL(Extract-Transform-Load的缩写,即数据抽取、转换、装载的过程)工具,纯JAVA编写,绿色无须安装,且数据抽取高效稳定,通常用作数据迁移。Kettle中有两种脚本文件,transformation和job,transformation完成针对数据的基础转换,job完成对整...
kettle调用
很好的java调用kettle,使大家更好的利用kettle转换数据,提取数据
kettle调用存储过程报错
2017/05/28 19:55:55 - 调用DB存储过程.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : Because of an error, this step can't continue: rn2017/05/28 19:55:55 - 调用DB存储过程.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : Unable to prepare database procedure callrn2017/05/28 19:55:55 - 调用DB存储过程.0 - ERROR (version 4.1.0-stable, build 14410 from 2010-11-16 16.43.28 by buildguy) : Internal error when parsing callable statement metadata (missing parameter type)rnrn[img=https://img-bbs.csdn.net/upload/201705/28/1495973597_331543.jpg][/img]rnrn各位请教下这个错误怎么处理 是我哪个地方设置的有问题吗?
java调用kettle的依赖包
java调用kettle的依赖包。调试代码的过程中一个个找出来的,分享给大家 kettle java 依赖包
Kettle调用Java文件(Jar包)
Kettle的脚本–>Modified Java Script Value不仅可以写js代码来处理数据,也可利用这个组件调用已经写好的Jar文件。 第一步、准备java项目。 在IDE中新建java项目,并写好相应的处理逻辑。 将写好的java项目,导出成jar包,放到kettle的lib或者libext文件夹内(注意:项目内引用的jar包,若kettle中不存在,也要一并复制进去)。
Kettle 调用存储过程
不带参数的存储过程可以直接使用“[color=red]调用DB存储过程[/color]”控件,将存储过程名称配置进去即可。 [color=red]带返回值的参数[/color] [code="sql"] CREATE OR REPLACE PROCEDURE JOBTEST(CCX OUT NUMBER) AS BEGIN CCX:=88 ; DBM...
Java调用kettle转换
简单的Java调用kettle转换
java调用kettle示例
java调用kettle使用示例,包含数据库到数据库,csv到数据库及数据库到excel数据同步调用代码。
Java调用Kettle代码
Java调用Kettle代码 ,用Java代码调用KTR文件,和JOb文件
kettle调用自定义Java代码
        有时候需要对Kettle抽取过来的数据进行加解密或者其他一些自定义的操作,Kettle本身有对称加密和解密的功能,但由于有时候需要自定义,所以还是提供了调用外部接口的能力。          新建一个自定义处理的JAVA类,例如:   package test; public class Test{ public static final String g...
kettle定时调用(linux)
export JAVA_HOME=/opt/software/java/jdk/jdk1.7.0_79 export JRE_HOME=/opt/software/java/jdk/jdk1.7.0_79/jre export CLASSPATH=.:CLASSPATH:CLASSPATH:CLASSPATH:JAVA_HOME/lib:JREHOME/libexportPATH=JREHOM...
Kettle调用存储过程
请教怎么用Kettle调用存储过程。rn我在“执行SQL脚本”中输入rndeclarerna number(8);rnb number(8);rnc varchar2(1000);rnbeginrnEDW_P_TF02_YL_DETAIL_D(TO_NUMBER(TO_CHAR(SYSDATE,'YYYYMMDD')),b,c);rnend;rnrn注:此代码能在PLSQL中正常调度。a是输入类型,b,c是输出类型。rn可是在Kettle中各种报错。rn[img=D:\Documents and Settings\Administrator\桌面\存储过程.jpg][/img]rn[img=D:\Documents and Settings\Administrator\桌面\error.jpg][/img]rn
java调用kettle的jar
用于java调用kettlektr文件的jar,在kettle官网下载图形化界面里面也包含
java调用kettle transformation
我在java应用程序中调用kettle中transformation,第一次调用了一个简单的没有数据库读写操作的trans,执行成功,第二次调用了一个简单的读取数据表的trans,执行失败(该trans本身并没有问题,在kettle中可以正常运行)rnrn异常信息如下:rnorg.pentaho.di.core.exception.KettleException: rn一个数据库错误发生在从资源库文件读取转换时rnrnUnable to load class for step/plugin with id [DummyPluginrn]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.rnrn望高手指点。
java调用kettle工具类
/**  *   */ package com.fms.xx.kettle; import org.pentaho.di.core.KettleEnvironment; import org.pentaho.di.core.Result; import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.
KETTLE集群的配置及调用
Kettle的集群原理 Kettle集群: 是由一个主carte服务器和多个从carte服务器组成的,类似于master-slave结构,不同的是’master’处理具体任务,只负责任务的分发和收集运行结果。 Master carte结点收到请求后,把任务分成多个部分交给slave carte执行,slave执行完毕后把结果交给mater 进行汇总,再由mster返回结果。
kettle定时调用(windows)
E: cd E:\pdi-ce-6.0.1.0-386\data-integration kitchen /file C:\Users\1\Desktop\demo1.kjb /level Basic /logfile D:\timing.log @pause 保存成 .bat文件 然后 返回桌面,右键此电脑,进入管理,右键-任务计划程序-新建基本任务 调用转换和上面...
kettle调用存储过程错误
[code=text]2017/05/17 12:24:48 - Call PRO_ETL_LIVE_MESSAGE_INFO.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Because of an error, this step can't continue: rn2017/05/17 12:24:48 - Call PRO_ETL_LIVE_MESSAGE_INFO.0 - Unable to call procedurern2017/05/17 12:24:48 - Call PRO_ETL_LIVE_MESSAGE_INFO.0 - No data - zero rows fetched, selected, or processedrn2017/05/17 12:24:48 - etl_sessionInfo_interval - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Errors detected!rnorg.pentaho.di.core.exception.KettleException: rnExpected to read parameters from step [Call PRO_ETL_LIVE_MESSAGE_INFO] but none were found.rn at org.pentaho.di.trans.steps.tableinput.TableInput.readStartDate(TableInput.java:82)rn at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:119)rn at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)rn2017/05/17 12:24:48 - Call PRO_ETL_LIVE_MESSAGE_INFO.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1) at java.lang.Thread.run(Thread.java:745)rn2017/05/17 12:24:48 - 取即时多媒体会话.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Unexpected errorrn2017/05/17 12:24:48 - etl_sessionInfo_interval - Transformation detected one or more steps with errors.rn2017/05/17 12:24:48 - 取即时多媒体会话.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : org.pentaho.di.core.exception.KettleException: rn2017/05/17 12:24:48 - 取即时多媒体会话.0 - Expected to read parameters from step [Call PRO_ETL_LIVE_MESSAGE_INFO] but none were found.rn2017/05/17 12:24:48 - 取即时多媒体会话.0 - rn2017/05/17 12:24:48 - 取即时多媒体会话.0 - at org.pentaho.di.trans.steps.tableinput.TableInput.readStartDate(TableInput.java:82)rn2017/05/17 12:24:48 - 取即时多媒体会话.0 - at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:119)rn2017/05/17 12:24:48 - 取即时多媒体会话.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)rn2017/05/17 12:24:48 - 取即时多媒体会话.0 - at java.lang.Thread.run(Thread.java:745)rn2017/05/17 12:24:48 - etl_sessionInfo_interval - Transformation is killing the other steps!rnchild index = 1, logging object : org.pentaho.di.core.logging.LoggingObject@366b2b55 parent=29cd1c1f-70b6-44e2-b75c-bc9646c0cb1arn2017/05/17 12:24:48 - 取即时多媒体会话.0 - Finished reading query, closing connection.rn2017/05/17 12:24:48 - 取即时多媒体会话.0 - Finished processing (I=0, O=0, R=0, W=0, U=0, E=1)rnorg.pentaho.di.core.exception.KettleException: rnExpected to read parameters from step [Call PRO_ETL_NOTLIVE_MESSAGE_INFO] but none were found.rn at org.pentaho.di.trans.steps.tableinput.TableInput.readStartDate(TableInput.java:82)rn at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:119)rn at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)rn at java.lang.Thread.run(Thread.java:745)[/code]rnrnrnrnrn调用存储过程错误,没找到,但是我在库里call是可以调的,没问题的。
java调用Kettle总结
java的servlet调用Kettle5.0的实例。网上的例子比较少,特意写了一个上传上来供大家看。我的运行环境是myeclipse2016+jdk1.7+tomcat7。
java api调用kettle
详细介绍kettle中的各个组件。介绍实战中一些问题的处理。
webservice 如何调用webservice
我现在有两个webservicern因为项目功能需要,我需要一个webservice中调用;另外一个webservice完成其功能。。rn但是按照传统的Invoke方法。。老是报:程序集中不存在xxx服务。。rnrn比较着急,在线等!!!有经验给讲讲,,不慎感谢!
WebService和调用WebService的方法
WebService的实现方法和调用方法。
webservice 调用java webservice
我刚学webservice,现在要做的是在我的webservice实现(.asmx)中再调用另外的java webservice请问如何实现,我用web引用时提示命名空间不对,或出错???还有两天时间了。我用winform可以正常调用java webservice.多谢了
webservice调用
[code=java]rn@RequestMapping(value = "/queryCaseInfo")rn public String queryCaseInfo(Model model,HttpServletRequest request,HttpServletResponse response)rn try rn AccountService service = new AccountService_Service().getAccountSoapServiceImplPort();rn BjCasebaseinfo caseInfo = service.getHandleCaseInfo("620124000000201602222000011", "908243");rn System.out.println(caseInfo.getCaseno()+"----------"+caseInfo.getCaseapplicant());rn model.addAttribute(caseInfo);rn catch (Exception ex) rn ex.printStackTrace();rn rn return "lcddisplay/handle/handle_info_query";rn rn rn public static void main(String args[])rn AccountService service = new AccountService_Service().getAccountSoapServiceImplPort();rn BjCasebaseinfo caseInfo = service.getHandleCaseInfo("620124000000201602222000011", "908243");;rn System.out.println(caseInfo.getCaseno()+"----------"+caseInfo.getCaseapplicant());rn /*List caseList = service.getNesetHandleCaseInfo("10");rn System.out.println(caseList.size());*/rn rn[/code]rn[color=#FF6600]rn以上代码是我调用webservice的代码,通过main函数调用可以返回正确结果,但是通过action访问的时候调用返回错误:错误如下[/color]rn[code=text]rnjavax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.rn at org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl.java:149)rn at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:98)rn at javax.xml.ws.Service.(Service.java:77)rn at com.gsww.scr.webservice.AccountService_Service.(AccountService_Service.java:50)rn at com.gsww.scr.controller.HandleCaseInfoController.queryCaseInfo(HandleCaseInfoController.java:38)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:606)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)rnCaused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.rn at org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:100)rn at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:199)rn at org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl.java:147)rn ... 43 morernCaused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactoryrn at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:256)rn at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:205)rn at org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:98)rn ... 45 morernCaused by: java.lang.RuntimeException: Cannot create a secure XMLInputFactoryrn at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:300)rn at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:255)rn at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1416)rn at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1318)rn at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:246)rn ... 47 morern[/code]rn我debug跟了代码,在[code=java]rnprivate static boolean setRestrictionProperties(XMLInputFactory factory) rn //For now, we can only support Woodstox 4.2.x and newer as none of the otherrn //stax parsers support these settingsrn if (setProperty(factory, "com.ctc.wstx.maxAttributesPerElement", maxAttributeCount)rn && setProperty(factory, "com.ctc.wstx.maxAttributeSize", maxAttributeSize)rn && setProperty(factory, "com.ctc.wstx.maxChildrenPerElement", innerElementCountThreshold)rn && setProperty(factory, "com.ctc.wstx.maxElementCount", maxElementCount)rn && setProperty(factory, "com.ctc.wstx.maxElementDepth", innerElementLevelThreshold)rn && setProperty(factory, "com.ctc.wstx.maxCharacters", maxXMLCharacters)rn && setProperty(factory, "com.ctc.wstx.maxTextLength", maxTextLength)) rn return true;rn rn return false;rn rn private static boolean setProperty(XMLInputFactory f, String p, Object o) rn try rn f.setProperty(p, o);rn return true;rn catch (Throwable t) rn //ignorern rn return false;rn rn[/code]rn这部分代码的时候抛出rn[code=text]rnjava.lang.IllegalArgumentException: Property com.ctc.wstx.maxAttributesPerElement is not supportedrn at com.sun.xml.stream.ZephyrParserFactory.setProperty(ZephyrParserFactory.java:252)rn at org.apache.cxf.staxutils.StaxUtils.setProperty(StaxUtils.java:339)rn at org.apache.cxf.staxutils.StaxUtils.setRestrictionProperties(StaxUtils.java:325)rn at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:290)rn at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:255)rn at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1416)rn at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1318)rn at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:246)rn at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:205)rn at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:156)rn at org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl.java:147)rn at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:98)rn at javax.xml.ws.Service.(Service.java:77)rn at com.gsww.scr.webservice.AccountService_Service.(AccountService_Service.java:50)rn at com.gsww.scr.controller.HandleCaseInfoController.queryCaseInfo(HandleCaseInfoController.java:38)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:606) rn[/code]
webservice的调用
苹果公司的一个webservice 接口调用。rn接口说明如下:rnVerifyOrderrnrnDescription:rnThis API is designed to verify an order, to ensure that all criteria are met before placing the order. rnrnContext:rnThis API can be invoked after the authenticate API is called and a valid session token obtained. This API is recommended to be used before using the createOrder API. rnrnService URL:rnhttps://api-applecareconnect-uat.apple.com/order-service/1.0/verify-order/ (even soldToId) rnhttps://api-applecareconnect-uat2.apple.com/order-service/1.0/verify-order/ (odd soldToId) rnrnrnHTTP Method:rnPOST rn详细接口说明:[url=https://gsxwsut.apple.com/apidocs/acc/uat/html/WSReference.html?user=reseller][/url]rn[img=https://img-bbs.csdn.net/upload/201406/11/1402460281_828279.png][/img]rn我使用的是RealThinClient控件rn代码如下:rn发送指令:rnEnterCriticalSection(CS);rn tryrn with RtcDataRequest1 dorn beginrn Request.Method := 'POST';rn Request.FileName := '/authentication-service/1.0/authenticate';rn SendText:='"userId"="'+Auser+'","password"="'+Apwd+'","shipTo"="'+Ashipto+'","langCode"="zh","timeZone"="-480"';rn Post;rn dxStatusBar1.Panels[0].Text:='正在登陆';rnrn end;rn with RtcDataRequest2 dorn beginrn Request.Method := 'POST';rn Request.FileName := '/order-service/1.0/verify-order';rnrn Request.ContentType:='application/json';rn Request.Query.Clear;rn Request.Query.AddText('accAccessToken:'+AccessToken+'');rnrn RtcHttpClient1.rn SendText:='"requestContext": "shipTo": "'+Ashipto+'","timeZone": "-480","langCode": "zh",'+rn '"appleCareSalesDate": "'+formatdatetime('yyyy-MM-dd',Date)+'","pocLanguage": "ZHS",'+rn '"pocDeliveryPreference": "E","mobileNumber": "","purchaseOrderNumber": "12345",'+rn '"MRC": "","marketID": "","overridePocFlag": "","smsFlag": "","emailFlag": "Y",'+rn '"customerRequest": "customerFirstName": "尚派","customerLastName": "正品",'+rn '"companyName": "","customerEmailId": "16704804@qq.com","addressLine1": "",'+rn '"addressLine2": "","city": "","stateCode": "","countryCode": "","primaryPhoneNumber": "", "zipCode": "",'+rn '"deviceRequest": ["deviceId": "'+cxTextEdit1.Text+'","secondarySerialNumber": "'+cxtextedit2.Text+'","hardwareDateOfPurchase": "'+formatdatetime('yyyy-MM-dd',Date)+'"]';rn dxStatusBar1.Panels[0].Text:='检查序列号:'+cxTextEdit1.Text;rn cxTextEdit2.Text:=Request.URL;rn Post;rn end;rnrn finallyrn LeaveCriticalSection(CS);rn end;rn接收指令:rnvarrn s: string;rn r: TRtcValue;rnbeginrn with TRtcDataClient(Sender) dorn beginrn if Response.Done thenrn beginrn EnterCriticalSection(CS);rn s := stringreplace(Utf8Decode(read), #13#10, '', [rfReplaceAll]);rnrn r := TRtcValue.FromJSON(s);rn tryrn if r.isType = rtc_Record then // Record (JSON Object)rn with r.asRecord dorn beginrn if not isNull['accessToken'] then // 获取access tokenrn beginrn dxStatusBar1.Panels[0].Text:='登陆成功!';rn AccessToken:=asText[accessToken];rn end;rn if not isNull['errorMessage'] then // 登陆错误rn beginrn dxStatusBar1.Panels[0].Text:='错误:'+asText['errorMessage'];rn //saccess_token:='';rn end;rn if not isNull['authErrorResponse'] then // 登陆错误rn beginrn if not asRecord['authErrorResponse'].isNull['errorMessage'] thenrn dxStatusBar1.Panels[0].Text:='错误:'+asRecord['authErrorResponse'].asText['errorMessage'];rn //saccess_token:='';rn end;rn if not isNull['orderDetailsResponses'] thenrn beginrn if not asRecord['orderDetailsResponses'].isNull['deviceEligibility'] thenrn beginrn if not asRecord['authErrorResponse'].asRecord['deviceEligibility'].isNull['deviceErrorResponse'] thenrn beginrn dxStatusBar1.Panels[0].Text:='错误:'+asRecord['authErrorResponse'].asRecord['deviceEligibility'].asRecord['deviceErrorResponse'].asText['errorMessage'];rn end;rn if not asRecord['authErrorResponse'].asRecord['deviceEligibility'].isNull['pocType'] thenrn beginrn dxStatusBar1.Panels[0].Text:='可购买:'+asRecord['authErrorResponse'].asRecord['deviceEligibility'].asText['pocType'] ;rn end;rn end;rn if not asRecord['orderDetailsResponses'].isNull['orderErrorResponse'] then // 登陆错误rn beginrn if not asRecord['orderDetailsResponses'].asRecord['orderErrorResponse'].isNull['errorMessage'] thenrn dxStatusBar1.Panels[0].Text:='错误:'+asRecord['orderDetailsResponses'].asRecord['orderErrorResponse'].asText['errorMessage'];rn //saccess_token:='';rn end;rn if leftstr(dxStatusBar1.Panels[0].Text,2)<>'错误' thenrn beginrn cxButton2.Enabled:=True;rn end;rn end;rnrn end;rn //log( s,2);rn finallyrn LeaveCriticalSection(CS);rn r.Kill;rn end;rn end;rn end;rn出现如下问题:rn提示我 没有登录,先登录。rn有哪位高手指点一下。rn
WebService的调用
现在要写项目的WebService,分不开发,供别的人调用,以前没搞过这个rn现在我在本机上可以创建和发布WebService,但是我没明白,在本机上rn我都是引用.dll,rn例如我要调用别人在网络上的WebService,我要怎么做?rn本人比较菜,希望大家不要见笑!rn
调用WebService
现在我想调用webservice,webservice的开发是其他公司做的,我不能使用添加webservice的方法调用,他们也拒绝使用sproxy.exe 生成。h文件给我,现在有什么方法,在只知道 对方webservice地址,调用的函数,函数所属于的类,函数的声明的情况下去调用函数呢?有没有高人指点呢?
调用webservice?
远程调用webservice出现如下错误:File or assembly name iqi680br.dll, or one of its dependencies, was not found. rn在service所在的局域网内一切正常,防火墙对于远程访问的机器只开放了80端口,rn在远程通过ie也可以浏览该服务.rn谢谢!
调用webservice
通过webservice发送xml数据,并且调用webservice,获取调用后的返回值。
webService调用
调用WebService,不用刷出代理类,也能调用。 利用动态编译,生成代理类。反射调用
WebService调用
最近要使用WebService开发底层代码给.net用,但是不知道应该提供给他们什么样的接口rn例如rn我要提供一个sayHello(User user);方法,其中User包含id和name两个属性,那么我应该怎么配置呢rn我自己按下面的方式配置rn@WebMethod(operationName="sayHello")rnpublic void sayHello(User user);rn然后在客户端rnUser user=new User();[align=left]rnuser.setId(1);rnuser.setName("名字");rnhelloworld.sayHello(user);[/align]rn这样调用,这是没问题的啊rnrn如果是给.net用的话,那.net那边只能把User这个参数写成xml格式的吧rnrn是不是我要把接口开发成这样rnpublic void sayHello(String param);rn这个param是xmlrn我在实现这个方法的时候再把xml解析一遍,设置成User对象rnrn在.net中提供的WebService接口,可以实现图片中的效果:有方法说明,点击方法进入后还可以进行测试rn在java中要怎么实现这样的效果呢?rnrn请赐教啊!!!rnrnrn
WebService 调用
需要java 调用.net 写的webserviern想知道java中都有什么类完成下列工作:rn1, 通过url 获取到wsdl文件rn2, 分析wsdl,根据wsdl创建soap消息rn3, 发送soap消息,调用webservice方法
调用Webservice
Webservice方法:rn[WebMethod]rn public object[] BeginGetXT_YuangGong(string Password, object[] args)rn rn object[] returnValues = new object[1];rnrn if (Password == RightPassword)rn rn #region 接收参数rn #endregionrnrn #region 返回值rn string strSQL = "select * from messys04h";rn DataTable dtValues = KDSoft.Common.SqlHelper.NewObject.ExecuteQuery(strSQL).Tables[0];rnrn returnValues[0] = SerializeDataTableXml(dtValues);rn #endregionrn rnrn return returnValues;rn rn #endregion rnrn在项目调用时:rnservi.BeginGetXT_YuangGong();rn这个方法时却有四个参数,前面两个和Webservice的一样 后面却多出两个参数AsyncCallback,object这种类型的参数? 这是怎么回事?
WebService——调用
WebService调用 工作中会使用WebService,它是基于 XML 和HTTP 的,跨平台的,定义了应用程序如何在Web上通信的一套标准。包含了如下三要素:SOAP: 简单对象访问协议(Simple Object Access Protocol),用来描述传递信息的格式 WSDL: Web 服务描述语言(Web Services Description Language),一个基于XM
KETTLE kettle
kettle KETTLE demo 对学习的人来说很有帮助.
Kettle WebService组件无法传参问题解决
kettle WebService转换组件【Web 服务查询】可以用来调用我们发布的webservice。在使用的过程中,发现这个组件存在一些使用上的限制。
java 调用kettle资源库报错
import org.pentaho.di.core.KettleEnvironment;rnimport org.pentaho.di.core.database.DatabaseMeta;rnimport org.pentaho.di.core.exception.KettleException;rnimport org.pentaho.di.repository.RepositoryDirectoryInterface;rnimport org.pentaho.di.repository.kdr.KettleDatabaseRepository;rnimport org.pentaho.di.repository.kdr.KettleDatabaseRepositoryMeta;rnimport org.pentaho.di.repository.Repository;rnimport org.pentaho.di.trans.Trans;rnimport org.pentaho.di.trans.TransMeta;rnrnrnpublic class test rn rn private static String transName = "test1";rnrn public static void main(String[] args) rnrn try rn //初始化kettle环境rn KettleEnvironment.init();rn //创建资源库对象,此时的对象还是一个空对象rn KettleDatabaseRepository repository = new KettleDatabaseRepository();rn //创建资源库数据库对象,类似我们在spoon里面创建资源库rn DatabaseMeta dataMeta = rn new DatabaseMeta("/","Mysql","Native","192.168.254.49","新闻信息","1521","admin","admin"); rn //资源库元对象,名称参数,id参数,描述等可以随便定义rn KettleDatabaseRepositoryMeta kettleDatabaseMeta = rn new KettleDatabaseRepositoryMeta("enfo_bi", "enfo_bi", "king description",dataMeta);rn //给资源库赋值rn repository.init(kettleDatabaseMeta);rn //连接资源库rn repository.connect("admin","admin");rn //根据变量查找到模型所在的目录对象,此步骤很重要。rn RepositoryDirectoryInterface directory = repository.findDirectory("/enfo_worker/wxj");rn //创建ktr元对象rn TransMeta transformationMeta = ((Repository) repository).loadTransformation(transName, directory, null, true, null ) ;rn //创建ktrrn Trans trans = new Trans(transformationMeta);rn //执行ktrrn trans.execute(null);rn //等待执行完毕rn trans.waitUntilFinished();rn rn if(trans.getErrors()>0)rn rn System.err.println("Transformation run Failure!");rn rn elsern rn System.out.println("Transformation run successfully!");rn rn catch (KettleException e) rn e.printStackTrace(); rn rn rn rnrnrnrnrn下面报错信息 执行到 //连接资源库 报错rnorg.pentaho.di.core.exception.KettleException: rnError connecting to the repository!rnrnError occured while trying to connect to the databasernrnError connecting to database: (using class org.gjt.mm.mysql.Driver)rnCommunications link failurernrnLast packet sent to the server was 0 ms ago.rnrnrnrn at org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryConnectionDelegate.connect(KettleDatabaseRepositoryConnectionDelegate.java:163)rn at org.pentaho.di.repository.kdr.KettleDatabaseRepository.connect(KettleDatabaseRepository.java:174)rn at org.pentaho.di.repository.kdr.KettleDatabaseRepository.connect(KettleDatabaseRepository.java:164)rn at test.main(test.java:32)rnCaused by: org.pentaho.di.core.exception.KettleDatabaseException: rnError occured while trying to connect to the databasernrnError connecting to database: (using class org.gjt.mm.mysql.Driver)rnCommunications link failurernrnLast packet sent to the server was 0 ms ago.rnrnrn at org.pentaho.di.core.database.Database.normalConnect(Database.java:374)rn at org.pentaho.di.core.database.Database.connect(Database.java:323)rn at org.pentaho.di.core.database.Database.connect(Database.java:285)rn at org.pentaho.di.core.database.Database.connect(Database.java:275)rn at org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryConnectionDelegate.connect(KettleDatabaseRepositoryConnectionDelegate.java:140)rn ... 3 morernCaused by: org.pentaho.di.core.exception.KettleDatabaseException: rnError connecting to database: (using class org.gjt.mm.mysql.Driver)rnCommunications link failurernrnLast packet sent to the server was 0 ms ago.rnrn at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:510)rn at org.pentaho.di.core.database.Database.normalConnect(Database.java:358)rn ... 7 morernCaused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnLast packet sent to the server was 0 ms ago.rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)rn at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2120)rn at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:723)rn at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)rn at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)rn at java.sql.DriverManager.getConnection(DriverManager.java:582)rn at java.sql.DriverManager.getConnection(DriverManager.java:185)rn at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:490)rn ... 8 morernCaused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnLast packet sent to the server was 0 ms ago.rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)rn at com.mysql.jdbc.MysqlIO.(MysqlIO.java:335)rn at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2043)rn ... 20 morernCaused by: java.net.ConnectException: Connection timed out: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)rn at java.net.Socket.connect(Socket.java:519)rn at java.net.Socket.connect(Socket.java:469)rn at java.net.Socket.(Socket.java:366)rn at java.net.Socket.(Socket.java:209)rn at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)rn at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)rn ... 21 morern
java调用kettle链接数据库操作
public List getConfig(KettleResource resourcein,String customSql) throws KettleDatabaseException, SQLException{ String[] databasesXML = { "" + "" + ""+resourcein.g
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法