Using gSoap 2.7.12 on Centos 5.2.

I'm trying to build a simple CGI server for a trivial application (testing
that it can handle the input and output structures I've defined for it,
and starting out with a simple case to avoid driving myself batty).

I'm currently getting the error referenced when compiling soapC.cpp.

The reference is in this function in soapC.cpp:

SOAP_FMAC3 void SOAP_FMAC4 soap_default_t1__t1_func(struct soap *soap,
struct t1__t1_func *a)
{
        (void)soap; (void)a; /* appease -Wall -Werror */
        soap_default_t1req(soap, &a->in);
}

I'm running the following build script:

soapcpp2 -I../gsoap-2.7/gsoap/import -S t1.h
gcc -c soapC.cpp
gcc -c soapServer.cpp
gcc -c ../gsoap-2.7/gsoap/stdsoap2.cpp
gcc -c t1-func.cpp
gcc -c t1-cgi.cpp
gcc -o t1.cgi t1-cgi.o t1-func.o soapC.o soapServer.o stdsoap2.o -lstdc++

soapC.cpp is generated by the soapcpp2 invocation, right?  Which goes
without error, but then the generated file fails to compile.  So I'm
confused, and could use a bit of help here.  Thanks!

t1.h is:

//gsoap t1 service name: t1 Test Service Number 1
//gsoap t1 service namespace:urn:modclt1
//gsoap t1 service
location:http://prcvmodl.pinerivercapital.local/cgi-bin/t1.cgi

#import "stlvector.h"

// Gsoap test client interface

#include <vector>
#include <string>

class t1req {
  public:
    std::vector<int> vi;
    std::string s1;
    int i1;
    int i2;
};

class t1rsp {
  public:
    std::string rs1;            // "ib" will be appended.
    std::vector<int> rvi;       // The subscript will be added to each element.
    int ri1;                    // Negated.
    int ri2;                    // 17 subtracted.
};

int t1__t1_func (t1req &in, t1rsp &out);


-- 
David Dyer-Bennet, [EMAIL PROTECTED]; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info

Reply via email to