亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標(biāo)題:
gsoap生成wsdl問(wèn)題
[打印本頁(yè)]
作者:
fd_skf
時(shí)間:
2011-09-05 17:16
標(biāo)題:
gsoap生成wsdl問(wèn)題
我根據(jù)gsoap自帶的例子自己寫了一個(gè)ElectricMonitor.h頭文件
內(nèi)容如下:
//gsoap ns service name: ElectricMonitor
//gsoap ns service style: rpc
//gsoap ns service encoding: encoded
//gsoap ns service namespace:
http://websrv.cs.fsu.edu/~engelen/ElectricMonitor.wsdl
//gsoap ns service location: http://localhost:7611
//gsoap ns schema namespace: urn:ElectricMonitor
struct TempAndHum
{
float fTemprature;
float fHumidity;
} ;
struct UpdateInfo
{
char *strServerIp[20];
char *strServerPort[5];
char *strLogIp[20];
char *strLogPort[5];
char *strUserId[20];
char *strUserPass[20];
} ;
int ns_setTempAndHum(int iHostIndex, struct TempAndHum szTempAndHum, int *iResult);
int ns_queryVer(int iHostIndex, char* *strResult);
int ns_queryTempAndHum (int iHostIndex, struct TempAndHum * szResult);
int ns_setParamar(int iHostIndex, char **strCommand, int *iResult);
int ns_setNamed(int iHostIndex, int *iResult);
int ns_setUpdateServices(int iHostIndex, struct UpdateInfo szUpdateInfo, int *iResult);
int ns_setIntoMaintain(int iHostIndex, int iType, int *iResult);
int ns_setPicTrans(int iHostIndex, char* *strPic);
int ns_setRestart(int iHostIndex, int* iResult);
int ns_setTimer(int iHostIndex, int iTimer, int * iResult);
然后在linux下編譯,soapcpp2 -c ElectricMonitor.h 來(lái)編譯生成wsdl文件,但是一直無(wú)法生成wsdl,編譯提示成功,但是只生成以下的文件
Saving soapStub.h
Saving soapH.h
Saving soapC.c
Saving soapClient.c
Saving soapClientLib.c
Saving soapServer.c
Saving soapServerLib.c
Compilation successful
一直都這樣,請(qǐng)問(wèn)各位大哥能不能幫我看下這.h文件是不是有錯(cuò),或者我編譯方法錯(cuò)誤了?
作者:
hokuhouhi
時(shí)間:
2011-09-05 17:20
soapcpp2 -c ElectricMonitor.h
這個(gè)有問(wèn)題吧~~
一般引用.h文件是 -I 選項(xiàng)吧
作者:
fd_skf
時(shí)間:
2011-09-05 17:59
這個(gè)不是引用,是soapcpp2程序編譯.h文件,你說(shuō)的-I是以gcc來(lái)說(shuō)的吧
作者:
lzkandlt
時(shí)間:
2011-09-06 13:14
gsoap 只看過(guò),沒(méi)正式用過(guò)!
作者:
cinderelladlw
時(shí)間:
2012-12-11 16:52
本帖最后由 cinderelladlw 于 2012-12-11 16:55 編輯
按照道理說(shuō)是可以生成 *.wsdl.的。
我剛開(kāi)始也是不能生成wsdl,后來(lái)不知道怎么就可以啦。
貌似是*.h文件的開(kāi)頭不能有空格之類的東西。
另外,也可能是權(quán)限的問(wèn)題,但前者的可能性更大。
經(jīng)印證發(fā)現(xiàn):最可能的問(wèn)題是 你書(shū)寫的方式不規(guī)范,soapcpp2不能幫你生成符合規(guī)范的wsdl文件,所以放棄了。
注意把自己的.h文件寫的規(guī)范一點(diǎn),按照同樣的方式就可以生成wsdl文件啦。。
注意開(kāi)頭不要有空格之類的不符合規(guī)定的語(yǔ)法等。
歡迎光臨 Chinaunix (http://www.72891.cn/)
Powered by Discuz! X3.2