axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Pernas <os...@pernas.es>
Subject send_receive blocking
Date Tue, 26 Feb 2013 11:54:15 GMT
Hi all,

Im using axis2c trunk version, over Windows 7, and I'm falling into a
problem with axis2_svc_client_send_receive method.

I have a class in c++ where I'm using axis2c api. I have a method init
where I made all initializations, and a method run where I made the
svc_client_create.

The first time that I send a message, message is sent correctly and Iam
receiving the response well. But the second time, petition is sent (I can
see in wireshark) but I dont have any response (but is received because I
see in wireshark), axiom node returned by send_receive is null.

My code is:

void send(){

axiom_node_t* payload=buildWSMessage(env,message);
if (payload){
  axiom_node_t* retNode=axis2_svc_client_send_receive(svc_client, env,
payload);
 if (retNode){
extractAndSend(retNode);
}
}
}

Im only calling init() and run() one time, and after that I am allways
calling to this send method. What should I do if i want to use the previous
method twice? shoud I have to free some structures of svc_client? any help
would be appreciated!

regards

-- 
Óscar Pernas Plaza.

Mime
View raw message