- 論壇徽章:
- 0
|
我根據(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 來編譯生成wsdl文件,但是一直無法生成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)問各位大哥能不能幫我看下這.h文件是不是有錯(cuò),或者我編譯方法錯(cuò)誤了? |
|