PB9.0 通过http协议以POST方式将XML发送到协议服务器
我查看了pb的帮助文件,posturl可以实现该功能,但是pb提供的例子我有点看不懂,
哪位大侠帮忙解释解释。最好有个实例对照。
servicereference.PostURL ( urlname, urldata, headers, {serverport, } data )
Argument Description
servicereference Reference to the Internet service instance.
urlname String specifying the URL to post.
urldata Blob specifying arguments to the URL specified by urlname.
headers String specifying HTML headers. In Netscape, a newline (~n) is required after
each HTTP header and a final newline after all headers.
serverport (optional) Specifies the server port number for the request. The default value
for this argument is 0, which means that the port number is determined by the system
(port 80 for HTTP requests).
data InternetResult instance into which the function returns HTML.
主要问题提就是那个headers是干嘛用的,data又是怎么回事?
工行的开发手册是这么说的
企业按照工行提供的xml包格式进行打包,在局域网内通过http协议以POST方式将交易包发送到NetSafe Client的安全http协议服务器。
http请求格式:action=”http://客户端NetSafe Client的地址和加密端口号/servlet/ICBCCMPAPIReqServlet?userID=证书ID&PackageID=包序列ID &SendTime=请求时间”
请求数据格式(post方式):Version=版本号(区分版本时间,暂定0.0.0.1) &TransCode=交易代码(区分交易类型,每个交易固定)&BankCode=客户的归属单位&GroupCIS=客户的归属编码&ID=客户的证书ID(无证书客户可空)&PackageID=客户的指令包序列号(由客户ERP系统产生,不可重复)&Cert=客户的证书公钥信息(进行BASE64编码;NC客户送空) &reqData=客户的xml请求数据
蓝字标出的部分应该是放到posturl参数的那一部分?
相关推荐
调用pb开发的webserver(HTTP POST)
调用pb开发的webserver(HTTP POST) /*POST /webservice/n_webservice.asmx/uf_ab HTTP/1.1 Host: localhost Content-Type: application/x-www-form-urlencoded Content-Length: length ll_a=string&ll_b=string*/ /*获取结果 HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <short xmlns="http://webi.org">short</short>*/ //出参是json格式{"statusCode":"2"}
PB 12.5调用REST
本文详细描述了PB 12.5 .NET如何调用REST
PowerBuilder9实现淘宝TOP API,C/S方式
含源代码 PowerBuilder9实现淘宝TOP API,C/S方式,不包括登录部分,可用于自用型的淘宝客开发。 订购型的C/S不知道可不可用,因为没有公司,没有可用的APPKEY
pb药监数据上传接口调用
pb中如何药监数据上传接口调用传输小案例
调用pb开发的webserver(SOAP 1.2)
调用pb开发的webserver(SOAP 1.2) /* POST /webservice/n_webservice.asmx HTTP/1.1 Host: localhost Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <uf_ab xmlns="http://webi.org"> <ll_a>string</ll_a> <ll_b>string</ll_b> </uf_ab> </soap1


脚本语言
