毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> 开发语言 >> 正文

BCB5环境Soap3.0怎么接受WebServer服务发过来的类 第2页

更新时间:2012-5-30:  来源:毕业论文
2.类实现

C/C++ code
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL     :
// Encoding : utf-8
// Version  : 1.0
// (2012-4-20 下午 02:55:35 - - $Rev: 37707 $)
// ************************************************************************ //

#include <System.hpp>
#pragma hdrstop

#if !defined(MobileCodeWSH)
#include "MobileCodeWS.h"
#endif

namespace NS_MobileCodeWS {

_di_MobileCodeWSSoap GetMobileCodeWSSoap(bool useWSDL, System::String addr, Soaphttpclient::THTTPRIO* HTTPRIO)
{
  static const char* defWSDL= "http: //webservice .webxml. com. cn/WebServices/MobileCodeWS.asmx?wsdl";
  static const char* defURL = "http: //webservice. webxml. com. cn/WebServices/MobileCodeWS.asmx";
  static const char* defSvc = "MobileCodeWS";
  static const char* defPrt = "MobileCodeWSSoap12";
  if (addr=="")
    addr = useWSDL ? defWSDL : defURL;
  Soaphttpclient::THTTPRIO* rio = HTTPRIO ? HTTPRIO : new Soaphttpclient::THTTPRIO(0);
  if (useWSDL) {
    rio->WSDLLocation = addr;
    rio->Service = defSvc;
    rio->Port = defPrt;
  } else {
    rio->URL = addr;
  }
  _di_MobileCodeWSSoap service;
  rio->QueryInterface(service);
  if (!service && !HTTPRIO)
    delete rio;
  return service;
}

_di_MobileCodeWSHttpGet GetMobileCodeWSHttpGet(bool useWSDL, System::String addr, Soaphttpclient::THTTPRIO* HTTPRIO)
{
  static const char* defWSDL= "http: // webservice.webxml. com. cn/WebServices/MobileCodeWS.asmx?wsdl";
  static const char* defURL = "";
  static const char* defSvc = "MobileCodeWS";
  static const char* defPrt = "MobileCodeWSHttpGet";
  if (addr=="")
    addr = useWSDL ? defWSDL : defURL;
  Soaphttpclient::THTTPRIO* rio = HTTPRIO ? HTTPRIO : new Soaphttpclient::THTTPRIO(0);
  if (useWSDL) {
    rio->WSDLLocation = addr;
    rio->Service = defSvc;
    rio->Port = defPrt;
  } else {
    rio->URL = addr;
  }
  _di_MobileCodeWSHttpGet service;
  rio->QueryInterface(service);
  if (!service && !HTTPRIO)
    delete rio;
  return service;
}


_di_MobileCodeWSHttpPost GetMobileCodeWSHttpPost(bool useWSDL, System::String addr, Soaphttpclient::THTTPRIO* HTTPRIO)
{
  static const char* defWSDL= "http //webservice.webxml. com. cn/WebServices/MobileCodeWS.asmx?wsdl";
  static const char* defURL = "";
  static const char* defSvc = "MobileCodeWS";
  static const char* defPrt = "MobileCodeWSHttpPost";
  if (addr=="")
    addr = useWSDL ? defWSDL : defURL;
  Soaphttpclient::THTTPRIO* rio = HTTPRIO ? HTTPRIO : new Soaphttpclient::THTTPRIO(0);
  if (useWSDL) {
    rio->WSDLLocation = addr;
    rio->Service = defSvc;
    rio->Port = defPrt;
  } else {
    rio->URL = addr;
  }
  _di_MobileCodeWSHttpPost service;
  rio->QueryInterface(service);
  if (!service && !HTTPRIO)
    delete rio;
  return service;
}


// ************************************************************************ //
// This routine registers the interfaces and types exposed by the WebService.
// ************************************************************************ //
static void RegTypes()
{
  /* MobileCodeWSSoap */
  InvRegistry()->RegisterInterface(__delphirtti(MobileCodeWSSoap), L"http: //WebXml. com .cn/", L"utf-8");
  InvRegistry()->RegisterDefaultSOAPAction(__delphirtti(MobileCodeWSSoap), L"http: //WebXml .com.cn/ %operationName%");
  InvRegistry()->RegisterInvokeOptions(__delphirtti(MobileCodeWSSoap), ioDocument);
}
#pragma startup RegTypes 32}; 

上一页  [1] [2] [3] 下一页

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。