Hm...
perhaps I know the problem... Is it possible that gSOAP uses Unicast Sockets 
only so that the server cant react and soap_serve() blocks? Does anyone knows 
sth.?


--- In [email protected], photolover <photolover2...@...> wrote:
>
> Hi,
> 
> I want to capture Probe and Probe Matches width gSOAP, so I compiled the 
> WS-Discovery.wsdl from 
> http://schemas.xmlsoap.org/ws/2005/04/discovery/ws-discovery.wsdl to get 
> the ws-discovery.gsoap. I added some lines to the gSOAP annotated header 
> file:
> 
> /// Probe
> 
> //gsoap wsd  service method-style:    ProbeOp document
> //gsoap wsd  service method-encoding: ProbeOp literal
> //gsoap wsd  service method-request-action:   ProbeOp 
> $dpws->protocols->wsd_probe_action
> //gsoap wsd  service method-action:   ProbeOp ""
> 
> int __wsd__ProbeOp(struct wsd__ProbeType *wsd__Probe, void dummy);
> 
> 
> /// Probe match
> 
> //gsoap wsd  service method-style:    ProbeMatchOp document
> //gsoap wsd  service method-encoding: ProbeMatchOp literal
> //gsoap wsd  service method-request-action:   ProbeMatchOp 
> $dpws->protocols->wsd_probematches_action
> //gsoap wsd  service method-action:   ProbeMatchOp ""
> 
> int __wsd__ProbeMatchOp(struct wsd__ProbeMatchesType *wsd__ProbeMatches, 
> void dummy);
> 
> 
> So, the whole annotated header file is: http://rafb.net/p/ToxsLX69.html
> 
> I implemented the two functions, but I didnt get a respone from a 3rd 
> party client, who sent a probe... (http://rafb.net/p/YDvlnt16.html)
> 
> int __wsd__ProbeMatchOp(struct soap* soap, struct wsd__ProbeMatchesType* 
> wsd__ProbeMatches) {
>       printf("ProbeMatchOp()");
>       return SOAP_OK;
> }
> 
> int __wsd__ProbeOp(struct soap* soap, struct wsd__ProbeType* wsd__Probe) {
>       printf("ProbeOp()");
>       return SOAP_OK;
> }
> 
> 
> The fact is, that soap_serve(...) blocks, but why? What is wrong?
> 
> Thx for help...
>


Reply via email to