View Christos Tranoris's profile on LinkedIn


Visit The Model Driven Software Network

Who's online

There are currently 0 users and 6 guests online.

Recent comments

Syndicate

Syndicate content

Anonymous | June 17, 2009 - 15:23

Hi,
I go throug your  tutorial and i have got every things work with me even the client tutorial.
I have added some class variable like "private String status " , and some methods in the web service java class , which are
public void setStatus(String status){
this.status= status;
}
public String getStatus(){
return "the status is" + name 
}
 
Then when i generate the web service stub class  i tried to set the status value first and then call getStatus method after, However i get always null value for the status variable can you help me to understand where is the problem .
this is the code of my client main class:
MyServiceStub myServiceStub = new MyServiceStub();
            SetStatus setStatus = new SetStatus();  // generated by stub class
            setStatus.setName("Running.....");
            myServiceStub.setStatus(setStatus);
            GetStatusResponse response=myServiceStub.getStatus();
            System.out.println("status: "+response.get_return());
Regards
Salwa alzhmi

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.