delphi 调用axis2客户端

下午在用delphi 
测试webservice  是出现了问题,根据axis2的wsdl文件,不能成功生成接口,最初,我一直以为是发布的接口不对,将服务端程序检查修改了很多遍,始终没有解决,才想到可能是不兼容,毕竟,delphi7发布的时候还没有axis2。为此还愁了很久,甚至想到自己写个wsdl  用来发布,可惜不熟悉,没成功。后来突然想到,delphi  里用到的其实只是一个接口,在调用的时候可能还需要用到服务名,端口,URL,这些都是可以直接在发布的wsdl里找到。然后我直接用了从xFire发布的wsdl导出了一个接口(接口方法都是一样的,我只是用了两种不同的方式来发布),在调用的时候按照axis2服务的参数配置服务名,端口,RUL.  结果是然成功调用了。看来我的理解还是不够深入,要不完全可以很快想到的。
  WSDL 应该是统一的标准,如果出现不兼容,应该主要是版本的原因,后来的版本中增加了一些新的规范。
  主要五部分: Secham    一些类型的定义;消息;端口;绑定;服务;
  另:String有个很好用的函数splite,在分割字符串时支持正则表达式。这对解析文档之类的可是特别好用。下面是简单代码:
        String ss = "30+3*(4-2.3)-3+10/1";
        String regex ="(?<=[+/*()-])|(?=[+/*()-])"; 
    // ?匹配符;<=左联;=  右联;|或操作;[]  通配的字符;[] 里定义分割用的字符。
        System.out.println(regex);
        String[] sss = ss.split(regex);
        for (int i = 0; i <sss.length; i++) {
             System.out.println(sss[i]);
        }
   结果: 将ss 中数据和运算符完全分开 30;+;3;*;(;4……
              说是比较抽象,最后运行几次试试,就知道是怎么回事了。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
paxCompiler is an embedable compiler of the Object Pascal, Basic and JavaScript programming languages. The key features of the paxCompiler are: The compiler generates machine code for Intel compatible processors (IA-32/64 architecture). The second script runner is a cross-platform interpreter based on intermediate code. Supported platforms are Win32/Win64, Linux, Android, Mac OS, iOS Simulator, iOS Device. The compiler is written in Delphi and it is compatible with Free Pascal/Lazarus 32/64 bit. It is possible to use the compiler as a scripting engine, so you can customize and extend the application without having to recompile it. The compiler supports Object Pascal language based on the Delphi 7 standard and extends it with generic types, operator overloading, anonymous functions and closures, lambda-expressions. Syntax of Basic language is similar to VB.NET. JavaScript implementation is based on ECMA-262 standard. Cross-language programming support. You can use Pascal units in Basic and JavaScript programs and vice versa. COM support. paxCompiler components allows you to implement debugger and code explorer. Script-defined types support run-time information (RTTI). You can bind instances of script-defined classes with dfm files. You can import host-defined types with paxCompiler importer. Automatic import of host-defined types is available for Delphi XE2-XE5. You can create stand alone executable files and dlls. Support of compiled units and run-time packages. paxCompiler engine is thread safe. The roadmap of the compiler includes: Java compiler, C++ compiler, built-in assembler.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值