- 论坛徽章:
- 0
|
我根据gsoap自带的例子自己写了一个ElectricMonitor.h头文件
内容如下:
//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
一直都这样,请问各位大哥能不能帮我看下这.h文件是不是有错,或者我编译方法错误了? |
|