摘要:
摘要:本文概要说明了在通过 soap 进行 rpc 调用时当前实际存在的互操作性问题,同时讨论了导致互操作性问题的三个
因素:http 问题、xml 问题和 soap 间断性。
目录
简介
什么是 soap?
常见的互操作性问题
传输问题
xml 问题
soap 问题
后续话题
简介
当前有多种创建应用程序的平台。但每种平台都习惯于使用自身的协议(本质上通常是二......
摘要:
introduction
this article describes a design and implementation (c#) of the remoting over internet using the web service as a gateway into the remoting infrastructure. the web service gateway......
WEBSERVER如何支持CGI/PHP/Perl
来源: zerodj 发布
正文:
自己写一个函数来支持cgi运行...
思路:
当web server的请求是一个执行文件,
那么就执行这个文件(利用进程),可是如果要传入数据给cgi该如何办,那么cgi运行后的结果,在自己的程序中该如何得到呀?
那么就可以是管道,来达到数据的共享!
web页提交的数据在自己的程序中是可以得到的(socket来得到)!就把数据传入给管道!
cgi程序需要的数据就从管道中去读!
当cgi程序运行结束后,就将结果输出给管道,自己的程序去读管道中的内容!
然后用socket将结果发送给ie/ns就可以了!
下面只是一个函数,
cgifilename:要执行的cgi程序名称
ppostvalue:web页提交的值(post方法提交的)
ppipevalue:环境变量的值(get方法提交的值是放在环境变量query_string中的)
isstdread:cgi程序是否需要从管道中读取值
注意:post方法提交的值,在环境变量中有一个变量content_length是记录post提交值的长度!
每个环境变量是用\0字符来隔开的!(query_string=name=66&password=77\0content_length=0\0\0)
当环境变量结尾应使用\0\0来结束!
千万不用api:setenvironmentvariable()来设置环境变量,一但将post的值写入管道传给cgi程序,那用这个api函数设置的环境变量会丢失.
ansistring cgiscriptrun(ansistring cgifilename,ansistring ppostvalue,char *ppipevalue,bool isstdread){
handle hprocess,hwrite,hread, //进程句柄,管道写句柄,管道读句柄
security_attributes sa, //安全性结构
startupinfo mysi, //子进程窗口属性结构
process_information mypi, //子进程信息
bool btest, //api是否调用成功
//填充安全性结构使句柄被继承
sa.nlength=sizeof(security_attributes),
sa.lpsecurit...
下一页 摘要:
< mclientdlg.cpp>
// mclientdlg.cpp : implementation file
//
#include "stdafx.h"
#include "mclient.h"
#include "mclientdlg.h"
#include "atlbase.h"......