Compile the mod

xiaoxiao2021-03-06  81

MOD_GSOAP modification process 1. Use the .NET 2003 to generate * .sln2 through the original mod_gsoap.vcproj. Use VC726 to convert .vcproj into .dsp3. Download Apache Httpd Win Source Package4. After decompression, copy mod_gsoap file to modules / Gsoap 5. Add mod_gsoap.dsp6 to apache.dsw. Modify the related items in Apache, remove the generate debug info7. ** Remove the mod_gsoap project according to similar other mods, to carefully check all items 8. Add Dependencies Libapr, Libaprutil Libhttpd9. Modify one of gsoap_handler: c, therefore declare the variable at the beginning of the function. 10. Add all the BuildBin mod_ * 12 in. Review os / win32 / BaseAddr.ref add mod_gsoap.so 0x6FFA0000 0x00010000 libhttpd.dll 0x6FF00000 0x000A000013.mod_deflate to download zlib srclib / zlib according mod_deflate and modify the engineering zlib Zlib contains files, mod_deflate.DEP modified, newly created an empty mod_deflate.Dep14. Download http://sourceforge.net/nasm, compile SSL15 according to the instructions in SSL. Download Http://sourceforge.net/gnout Bison, Flex and Gawk16. Modify FRECV NRET = AP_GET_CLIENT_BLOCK (R, PBUF, LEN> r-> Remaining: (APR_SIZE_T) R-> Remaining: LEN); - NRET = AP_GET_CLIENT_BLOCK (R, PBUF, LEN> R-> Remaining? r-> remaining: len); 17. Configure http.confloadModule Gsoap_Module Modules / Mod_gsoap.so

setHandler gsoap-handler soaplibrary gsoap / cagc.dll

18. Note: for Apache2 MOD_GSOAP, when using the browser directly, 404 errors occur, and not prompting related information like for Apache1. So I want to test, I can send POST messages directly using the program. Such as using the Python program import httplib, urllib, mimetools, time

Body = "" " 10 20 "" "Headers = {" Content-Type ":" text / xml: "}

Conn = httplib.httpConnection ("WY", "8000") Conn.Request ("Post", "/ soap", body, headers) response = conn.getResponse () print response.status, response.reasonprint response.msgdata = Response.read () Print DataConn.close () If you don't want yourself compile, at http://gsoapwzd.cosoft.org.cn/gsoapwzd/mod_gsoap/mod_gsoap.sohttp://gsoapwzd.cosoft.org.cn/gsoapwzd/ MOD_GSOAP / MOD_CALC.DLLHTTP: //gsoapwzd.cosoft.org.cn/gsoapwzd/mod_gsoap/add 2 httpd.confhttp: //gsoapwzd.cosoft.org.cn/gsoapwzd/mod_gsoap/calc.h Download.

转载请注明原文地址:https://www.9cbs.com/read-105320.html

New Post(0)