[Axis2] How to implement an asynchronous Web service?

2007-01-19 Thread Markus Heinisch
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] How to implement an asynchronous Web Service

2007-01-19 Thread Markus Heinisch
Hi all,
 
Sorry for my last email without body!
 
I'm new to Axis2/Java and want to create an asynchonous web service. My POJO 
looks like:
 
interface AsyncService{
 
public String echo (String echo);
 
}
 
The request should return immediately and the response should be send in an 
asynchronous manner.
 
Is there a sample/tutorial available about this topic?
What does the WSDL looks like?
 
I have download Axis2-1.1.1. and can't find any samples.
 
 
Any hints are welcome!
 
Markus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Method onFault() is not called

2006-10-19 Thread Markus Heinisch
Hello,
 
the mehtod onFault() of my generated Web service class (AxisCpp 1.6b) is never 
called. One of my regular WS methods throws an standard exception exception, 
but the AxisEngine does not call onFault(). 
 
The client recieves a response which it can't handle: Cannot deserialize the 
requested element.
 
What can I do to get a WS fault handling?
 
Thanks,
 
Markus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Memory Leak with version1.6b

2006-10-11 Thread Markus Heinisch



Hello,

I'm new to AXIS_CPP. 
I have managed to deploy my own sample Web service with the simple axis server 
on Win XP (using Visual Studio 2005).

While testing my Web 
service with SoapUi, I discovered a memory leak!
My Web service is 
very simple and based on the class:

  class EosServiceWS 
  {public:EosServiceWS();public:virtual 
  ~EosServiceWS();public: void 
  onFault();xsd__string search(xsd__int 
  Value0);xsd__string suche(xsd__string 
  Value0);void 
  test(); 
  // --- My test case};
The class was 
generated from the WSDL file (like all server side files).
I only tested the 
method test(), which has an empty body, butI see a constant increasing 
memory consumptionwhich does not shrink.
Is it a known 
problem? on Windows? How about Linux?

Any hints to find a 
workaround are welcome.

Cheers 
Markus




AW: Memory Leak with version1.6b

2006-10-11 Thread Markus Heinisch
Hi Adrian,

Thank you, I have read the page and followed the instructions. My C++ knowledge 
is more than 8 years old, so I'm not sure I catched every single instruction. 
My code is very simple:

xsd__string EosServiceWS::search(xsd__int Value0){
xsd__string retBuf = new char[100];
sprintf_s(retBuf, 100, Search: %i, Value0);

return retBuf;
}

xsd__string EosServiceWS::suche(xsd__string Value0)  {
int size = strlen(Value0) + 10;
xsd__string retBuf = new char[size];
sprintf_s((char*) retBuf, size, Suche: %s, Value0);
delete Value0;

return retBuf;
}

void EosServiceWS::test(){
cout  WS-Call to test()  endl;
}

I found the memory leak while calling method test().

Btw, I'm using Visual Studio 2005 and will switch to Visual Studio 2003.

In the mailing list I read in some postings that Xerces may cause the memory 
leak. Is that confirmed? Can I use the current version instead of xerces 2.2?

Thnaks,

Markus

 

 -Ursprüngliche Nachricht-
 Von: Adrian Dick [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 11. Oktober 2006 12:38
 An: Apache AXIS C User List
 Betreff: Re: Memory Leak with version1.6b
 
 Hi,
 
 Have you followed the advice given here:
 http://ws.apache.org/axis/cpp/arch/mem-management.html
 
 Regards,
 Adrian
 ___
 Adrian Dick ([EMAIL PROTECTED])
 
 
 Markus Heinisch [EMAIL PROTECTED] wrote on 11/10/2006
 10:15:48:
 
  Hello,
 
  I'm new to AXIS_CPP. I have managed to deploy my own sample Web 
  service with the simple axis server on Win XP (using Visual 
 Studio 2005).
 
  While testing my Web service with SoapUi, I discovered a 
 memory leak!
  My Web service is very simple and based on the class:
  class EosServiceWS
  {
   public:
EosServiceWS();
   public:
virtual ~EosServiceWS();
   public:
void onFault();
xsd__string search(xsd__int Value0);
xsd__string suche(xsd__string Value0);
void test(); // ---
  My test case
  };
  The class was generated from the WSDL file (like all server 
 side files).
  I only tested the method test(), which has an empty body, 
 but I see a 
  constant increasing memory consumption which does not shrink.
  Is it a known problem? on Windows? How about Linux?
 
  Any hints to find a workaround are welcome.
 
  Cheers Markus
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]