Loading ...
Sorry, an error occurred while loading the content.

Re: [soapbuilders] need of a main method in the gSOAP client??

Expand Messages
  • Robert van Engelen
    Hi, 1. Please post your questions on the gSOAP mailing list (see http://groups.yahoo.com/group/gsoap) 2. Function soap_call_ns__auth() is a proxy generated by
    Message 1 of 2 , Sep 19, 2003
    • 0 Attachment
      Hi,

      1. Please post your questions on the gSOAP mailing list (see
      http://groups.yahoo.com/group/gsoap)

      2. Function soap_call_ns__auth() is a proxy generated by gSOAP. You
      still need a main() function to compile you app.

      - Robert

      On Friday, September 19, 2003, at 08:27 AM, leberretanguy wrote:

      > Hello,
      >
      > I am trying to get used to developing Web Services thanks to gSOAP
      > but I have a problem I can't resolve. I try to write a client method
      > connecting to the server, accessing the remote method
      > soap_call_ns__auth() but I can't compile of my code.
      > Here is the code and the error:
      >
      > #include "soapH.h"
      > #include "auth.nsmap"
      >
      > essai(char *user, char *password) {
      >
      > const char server[] = "xxx.xxx.xx.xxx:8004/auth.cgi";
      > struct soap soap;
      > int result;
      > soap_init(&soap);
      > soap_call_ns__auth(&soap, server, "", user, password, &result);
      >
      > return result;
      > }
      >
      > error:
      > gcc -Wall -O2 -I../.. essai.c soapC.c soapClient.c ../../stdsoap2.c
      > /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function
      > `_start':
      > /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18):
      > undefined reference to `main'
      >
      > if I write the same code in a main method, I don't get this error.
      > Can't I do the remote method invocation out of a main method? If I
      > can, is there something missing in my code?
      >
      > Thank you
      >
      > Tang
      >
      >
      > ------------------------ Yahoo! Groups Sponsor
      > ---------------------~-->
      > Upgrade to 128-Bit SSL Security!
      > http://us.click.yahoo.com/p7cEmB/s7qGAA/yigFAA/W6uqlB/TM
      > ---------------------------------------------------------------------
      > ~->
      >
      > -----------------------------------------------------------------
      > This group is a forum for builders of SOAP implementations to discuss
      > implementation and interoperability issues. Please stay on-topic.
      >
      > To unsubscribe from this group, send an email to:
      > soapbuilders-unsubscribe@yahoogroups.com
      >
      >
      >
      > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.