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};