[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

AXIS2 and some concept

Posted on 2007-10-18
3
Medium Priority
?
187 Views
Last Modified: 2013-12-02
Dear Experts,
I got this problem, I tried simple example of using a web services, most of the example are like "Hello world" or stuff like that, just to give the basic & that stuff are working... now

Let say I want some more professional. I made MIDlet that thru a Servelet on Tomcat query the db & got back a result. The result are of course made of rows & columns.

Let say I got 30 rows of 5 columns & the column are (of course with different value):
 
ItemType - InStock - Commited - OnOrder - Supplier
 NYBCR2     2000       145        800         KOLON
 ...
 
 
So my question is, working with Axis2 (POJO), how should I create my Java Class? Im asking that coz now I created a Java class that do that:

    ....
    Public String getAvailability(String ItemType, int InStock, int Commited, int OnOrder, String Supplier)
   

The problem is when I got back the response inside SOAP in the result tag I got I unique string with all the value, what I should get insted is something like

 <SOAP:envelope>
 ...
  <SOAP:body>
   ...
    <result>
     <stock>
      <ItemCode>NYBCR2</ItemCode>
      <InStock>2000</InStock>
      <Commited>145</Commited>
      <OnOrder>800</OnOrder>
      <Supplier>KOLON</Supplier>
      ...
      <ItemCode>PTRCR2</ItemCode>
      <InStock>1500</InStock>
      <Commited>507</Commited>
      <OnOrder>10000</OnOrder>
      <Supplier>SKC</Supplier>      
      ...
      </stock>
     </result>
     ...
     
     
 so in my client app, I can parse it
 
 In some way I got the feel that I didn't understand very well how to work with Axis. Anyway Im new with Web Services and I started direct with a tools that do a lot of stuff, instead start everything from scratch that is hard but help more to understand the whole picture
 
 Can somebody give me some suggestion, counsel... any help
 
 Thx
 ROberto
0
Comment
Question by:gokyo66
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 20105020
0
 

Author Comment

by:gokyo66
ID: 20114138
This could help is wel done, but any other more direct help?
0
 

Author Comment

by:gokyo66
ID: 20117855
Thx anyway that link helped me.

Cheers
Roberto
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month18 days, 23 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question