vbox的更動 38802 路徑 trunk/src/VBox/Main/webservice
- 時間撮記:
- 2011-9-20 下午12:07:19 (13 年 以前)
- 位置:
- trunk/src/VBox/Main/webservice
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/webservice/Makefile.kmk
r38799 r38802 286 286 vboxweb.cpp \ 287 287 $(VBOXWEB_OUT_DIR)/methodmaps.cpp \ 288 $(VBOXWEB_OUT_DIR)/soapServer.cpp 288 $(VBOXWEB_OUT_DIR)/soapServer.cpp \ 289 $(VBOXWEB_OUT_DIR)/vboxweb-wsdl.c 289 290 vboxwebsrv_CLEAN = \ 290 291 $(VBOXWEB_OUT_DIR)/methodmaps.cpp \ 291 $(VBOXWEB_OUT_DIR)/soapServer.cpp 292 $(VBOXWEB_OUT_DIR)/soapServer.cpp \ 293 $(VBOXWEB_OUT_DIR)/vboxweb-wsdl.c 292 294 293 295 vboxweb.cpp_DEFS = \ … … 686 688 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-cpp.xsl $< 687 689 690 # generate C file which contains vboxweb.wsdl 691 $$(VBOXWEB_OUT_DIR)/vboxweb-wsdl.c: $(VBOXWEB_WSDL) $(VBOX_BIN2C) 692 $(call MSG_TOOL,bin2c,vboxweb-wsdl,$<,$@) 693 $(QUIET)$(VBOX_BIN2C) -export -ascii VBoxWebWSDL $< $@ 694 688 695 689 696 ifdef VBOX_ONLY_SDK -
trunk/src/VBox/Main/webservice/vboxweb.cpp
r38636 r38802 67 67 // include generated namespaces table 68 68 #include "vboxwebsrv.nsmap" 69 70 RT_C_DECLS_BEGIN 71 72 // declarations for the generated WSDL text 73 extern DECLIMPORT(const unsigned char) g_abVBoxWebWSDL[]; 74 extern DECLIMPORT(const unsigned) g_cbVBoxWebWSDL; 75 76 RT_C_DECLS_END 69 77 70 78 /**************************************************************************** … … 289 297 // make a copy of the soap struct for the new thread 290 298 m_soap = soap_copy(soap); 299 m_soap->fget = fnHttpGet; 291 300 292 301 /* The soap.max_keep_alive value can be set to the maximum keep-alive calls allowed, … … 316 325 317 326 void process(); 327 328 static int fnHttpGet(struct soap *soap) 329 { 330 char *s = strchr(soap->path, '?'); 331 if (!s || strcmp(s, "?wsdl")) 332 return SOAP_GET_METHOD; 333 soap_response(soap, SOAP_HTML); 334 soap_send_raw(soap, (const char *)g_abVBoxWebWSDL, g_cbVBoxWebWSDL); 335 soap_end_send(soap); 336 return SOAP_OK; 337 } 318 338 319 339 /**
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器