Re: Why "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?

2005-10-11 Thread Tomaz Rotovnik

Hi

When I use multithreading on client side I found out that for each 
transaction HTTPChannel.dll library is loaded. Is this necessary? Why only 
this dll and not also AxisXMLParser and HTTPTransport?


Best Regards

Tomaz



Re: Why "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?

2005-10-11 Thread Tomaz Rotovnik



Hi
 
I don't have problems with calling Axis::terminate(). But I call it after all Axis 
instances are already destroyed.
 
 

  - Original Message - 
  From: 
  Pico 
  Florin 
  To: Apache AXIS C User List 
  Sent: Tuesday, October 11, 2005 3:35 
  PM
  Subject: Re: Why 
  "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?
  
  Hi!
    Thank you Thomas. I seems to be more stable now. Regarding the 
  code
     Axis::terminate() I've used in my application(a task that from 
  time to time sends SOAP messages to SAP BC server) when destructor of the 
  client is called and an "Assertion failure exception"  is thrown in my 
  engine task. If I don't put this code then everything is allright...Therefore, 
  it is necessaru to use it? Is safety?
     Regards,
      Florin
  
  
  Yahoo! 
  Messenger NEW - crystal clear PC to PC calling 
  worldwide with voicemail 


Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.

2005-10-11 Thread Pico Florin
Hi!
  When I'am running my application(sends soap messages to a sap bc server from time to time) this exception is thrown:
 
 Exception : HTTPTransportException:Unknown Transport Exception Failed to open connection to server:  hostname='localhost'port=''Error Message='Only one usage of each socket address (protocol/network address/port) is normally permitted.
'Error Code='10048'.
 
What is the reason? And how can I avoid this?
 
Thank you,
 Florin
 
 
		How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! 
Photos

Re: Why "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?

2005-10-11 Thread Pico Florin
Hi!
  Thank you Thomas. I seems to be more stable now. Regarding the code
   Axis::terminate() I've used in my application(a task that from time to time sends SOAP messages to SAP BC server) when destructor of the client is called and an "Assertion failure exception"  is thrown in my engine task. If I don't put this code then everything is allright...Therefore, it is necessaru to use it? Is safety?
   Regards,
    Florin
		Yahoo! Messenger 
 NEW - crystal clear PC to PC 
calling worldwide with voicemail 


Re: Why "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?

2005-10-11 Thread Tomaz Rotovnik



Hi
 
You need to include Axis.hpp in the main 
file.
 
If I'm not wrong than you should call 
Axis::initialize(false); before you use axis objects. In my example I call 
this in my main loop before I created threads in which I created pBLP = new 
Soap(s.strURL.c_str(), APTHTTP1_1);
 
When all threads are finished than you call 
Axis::terminate() (I think).
 
 


  - Original Message - 
  From: 
  Pico 
  Florin 
  To: Apache AXIS C User List 
  Sent: Tuesday, October 11, 2005 2:16 
  PM
  Subject: Re: Why 
  "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?
  
  Hi!
    Thank you for your responses. I want to understand the 
  code
   
  Axis::initialize(false);
  What is the exactly snippet code? What should I include?
   
  Thank you,
   Florin
   
  
  
  To help you stay safe and secure online, we've 
  developed the all new Yahoo! 
  Security Centre.


Re: Why "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?

2005-10-11 Thread Pico Florin
Hi!
  Thank you for your responses. I want to understand the code
 
Axis::initialize(false);
What is the exactly snippet code? What should I include?
 
Thank you,
 Florin
 
		To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.

Re: Axis-C 1.5.0: Bug in DateTime.cpp?

2005-10-11 Thread Hanno Fietz




Hello Samisa,

I created a jira issue, which can be found here. Hope
it helps.

Thanks for your help.

Regards,
Hanno

Samisa Abeysinghe wrote:
Hanno Fietz
wrote:
  
  
  Hello,


we are migrating from Axis-Java to Axis-C and are currently running a

test installation. We had difficulties with date de-/serialization and

after some research found that dateTime strings from our SOAP-Messages

were not processed as we expected. It seemed that for example

2005-10-09T13:00:00+02:00 was converted to 9th of October, 2005,

15:00:00 UTC, which is not the way it should be, as far as I got ISO

9801. Here is what we changed in the Axis sources

(src/soap/xsd/DateTime.cpp) to make it work for us:


123c123

< time_t now = 0;

---


    time_t now = time(0); /***time_t
now = 0; ***/
  


189c189

< time_t now = 0;

---


    time_t now = time(0);  /*** time_t
now = 0; ***/
  


287c287

< timeInSecs += secs;

---


    timeInSecs -= secs;  /***
timeInSecs += secs; ***/
  


291c291

< timeInSecs -= secs;

---


    timeInSecs += secs;  /***
timeInSecs -= secs; ***/
  



Comments would be appreciated. If this was a bug, is there anything, I

can do to contribute our fix to the official sources?

  
  
This looks a bug to me. (We have been having several issues with Date)
  
Please create a Jira issue, and attach the diff with respect to the svn
head to the issue created.
  
  
Thanks,
  
Samisa...
  
  
  
Regards,


Hanno Fietz



  
  
  
  





Re: Why "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?

2005-10-11 Thread Tomaz Rotovnik

Hi Samisa

Thank you for your notification. I didn't have that. I already tested that 
and it seems to be much more stable now. I still have some problems with 
stability under very difficult conditions (about 100 threads generated in 10 
seconds). I'll try to find the position in code where this happens.


Thank you

Tomaz



- Original Message - 
From: "Samisa Abeysinghe" <[EMAIL PROTECTED]>

To: "Apache AXIS C User List" 
Sent: Monday, October 10, 2005 3:51 PM
Subject: Re: Why "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?



Tomaz Rotovnik wrote:



Samisa thank you for response.

I have right location of channel library dfined in "axiscpp.conf". When I 
run the program and calling one function every 300ms, it crashes 
(randomly) after some calls were done succesfully, but with the same 
error. Function is also synchronized (using mutex) so it can only be 
processed only one at the time.


So I think the problem is in loading library very often, but I don't how 
to solve the problem.


Well I happen to remember that there is one more thing that you should 
take note of when using threading.
In the main program, before you start threads, you got to initialize the 
Axis platform:

   Axis::initialize(false);
false here means that it is not server.

Have you done this already in your threaded client?

Thanks,
Samisa...



Best regards

Tomaz


- Original Message - From: "Samisa Abeysinghe" 
<[EMAIL PROTECTED]>

To: "Apache AXIS C User List" 
Sent: Saturday, October 08, 2005 12:25 AM
Subject: Re: Why "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?



Tomaz Rotovnik wrote:


Hi
 I've the same problem. Couple of days ago I send question about safe 
threading on client side. When I start debugging I found out that call 
m_pCall->initialize(CPP_DOC_PROVIDER)) causes exception.
 Then I enable possibility (uncomment) to print out possible exceptions 
in function Call:initialize().

Exception that I get was: DLOPEN FAILED in loading channel library.



This basically means that the client cannot locate the channel library 
specified in axiscpp.conf.
Have a look at the axiscpp.conf to see what you have set as the location 
of the channel library. Then ensure that it is there.

You got to do the same for the parser library.

Thanks,
Samisa...

 I'm not sure yet if this exception was thrown by 
axis3\ChannelFactory.cpp file.

 Functions that are called are:
openConnection calls
setTransportProperty(CHANNEL_HTTP_DLL_NAME,...
HTTPTransport::setTransportProperty calls
   LoadChannelLibrary
 I repeat experiment (multiple calls on separately created Call 
objects) couple of times with same error report.

 Now I'm looking for solution.
 Could you check if the problem is same with your code?

- Original Message -
*From:* Pico Florin 
*To:* Apache AXIS C User List 
*Sent:* Friday, October 07, 2005 3:53 PM
*Subject:* Why "m_pCall->initialize(CPP_RPC_PROVIDER))" fails?

Hi!

  I've tested my example in different ways of implementation. Some
of them fail on this snippet



if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) {
   return NULL;
 }


leading to :


"Unknown exception has occured". What are the reasons for this
failures? Just to know better how to avoid this situation.

 Thank you,

  Florin








How much free photo storage do you get? Store your holiday snaps
for FREE with Yahoo! Photos. *Get Yahoo! Photos*