>From the 2.7.17 doc - take a look at page 46, How to create a stand alone >server.
Basically - mySoapClass myObj; myObj.bind(NULL,port,100); for(;;){ myObj.accept(); myObj.serve(); myObj.destroy(); } Just copy the binary to a shared folder, run & pass in or set port and then point the client to the server's address. Best of luck. --- In gsoap@yahoogroups.com, "bhwit...@..." <bhwit...@...> wrote: > > > > Thanks for the reply. I'm glad to hear that gSOAP can do what I require of > it, but now there's the question of --how? > > I have the 2.7.17 User's Guide. All 268 pages of it. I'm making deliberate, > albeit slow progress on my app. > > Recently, believing that I can ultimately make a program listen on a port for > inbound XML, I'm writing a test program that will load a particular XML from > a local file and send it to my "listener". > > I have been reading "7.5.4 Deserializing C/C++ Data from XML". I have to > confess that when following the example on pg 75, I'm stuck at line1: > > myClass obj; > > Of course I see that this is declaring an object of type myClass. The > difficulty I'm having is that, given the WSDL from which I have derived my > software, there are hundreds of generated classes. Of them I do not know > enough to choose the right one. > > I see my generated software defines classes such as these: > > ns__MyRequestType > ns__MyResponseType > ns__ResultType > ns2__SenderType > ns2__AAAType > ns2__BBBType > ns2__CCCType -- multiple of these, corresponding to types within my WSDL. > > I could list many many more types, but the point is that there are many of > them, and so a line like: > > myClass obj; > > becomes much less helpful without knowing what KIND of object I'm expected to > declare. The example in the docs that I am referring to goes on to call > > soap.is = cin; // read from cin > if (soap_get_myClass(&soap,&obj,"myClass",NULL)==NULL) > { > ... error ... > } > > so I see that the XML is (or will be) read from CIN. I will instead be > reading from a local file, but I can handle that difference. The question I > am now hoping to get a little help on is, given my XML file to be loaded (and > ultimately SENT as a request), which of my many classes is "myClass" ? > > Should it correspond to the OUTERMOST element of my XML file, such as an > ns2__AAAType, or should it correspond to perhaps ns__MyRequestType because > I'm going to use it to make a request? > > Is there some resource that addresses such basic questions as these? I > recognize that the 2.7.17 User Guide will be invaluable to be eventually, but > at the moment I am not knowledgeable enough to use that document. I cannot > separate the wheat from the chaff because I don't yet know what wheat looks > like... > > I do appreciate your help and input. > > Brian Withun > > > --- In gsoap@yahoogroups.com, Benoit Callebaut <benoit.callebaut@> wrote: > > > > bhwithun@ a écrit : > > > > > > Can gSOAP be used without a web server? > > > > > Yes, look at the docs. I do it under Linux.and other people are doing it > > under Windows. > > > > > > > > > I'm trying to create a Windows service that listens on a port for > > > inbound XML sent over HTTP and I want to use gSOAP to do all the heavy > > > XML lifting. > > > > > > The problem is that all the examples and illustrations I find > > > (understandably) refer to a context of gSOAP behind a web server. > > > > > > Without a web server (or CGI) I'm not sure if I should even be using > > > soap_serve() > > > > > A CGI implies using a Web server, otherwise it is not a CGI > > > > > > > > > I have a socket listener which recognizes the incoming messages, but > > > I'm stuck when trying to connect that with gSOAP. > > > > > > Brian Withun > > > > > > > > >