This week's giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line!
See this thread for details.
Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Unable to receive result from Web Service Method

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a simple Axis client through which I am trying to access an Axis web service. The Axis client is


The Axis Web service is

I get the following output:

java samples.userguide.example4.Monitor -lhttp://localhost:8080/axis/services/LogTestService
Random number is 5
Value in object is 5
null
Random number is 4
Value in object is 4
null
.....
I am not able to receive the result after invoking the web service method setDelay (output is null). Why is this so?
[ November 27, 2007: Message edited by: Aniket Patil ]
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use TCPMon (Tutorial) to have a look at the request and response - that may help to shed some light on what is going on. It�s included with Axis.

However you will run into an entirely different problem. Axis creates a new service instance for each incoming call. So even if you manage to set the delay, it won't "remember" it the next time you call a web method because you are dealing with a new, separate service instance. Web services are supposed to be stateless.
 
mooooooo ..... tiny ad ....
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic