Note that there are some explanatory texts on larger screens.

plurals
  1. POTesting simple webservice with Axis2 which takes Map as a parameter
    primarykey
    data
    text
    <p>I have created a simple WebService which just prints the value of input.</p> <pre><code>public class MyWebService { public MyVo basicService(MyVo vo) { System.out.println(vo.getName()); System.out.println(vo.getParams()); return vo; } } </code></pre> <p>And MyVo is like this : </p> <pre><code>public class MyVo { private String name; private HashMap&lt;String, Serializable&gt; params; public String getName() { return name; } public void setName(String name) { this.name = name; } public HashMap&lt;String, Serializable&gt; getParams() { return params; } public void setParams(HashMap&lt;String, Serializable&gt; params) { this.params = params; } } </code></pre> <p>I am using Eclipse Java EE IDE for Web Developers.</p> <p>Version: Helios Service Release 1 and Generating the webservice like :</p> <p>New wizard , webservice, Selecting the server runtime (tomcat 6) and webruntime as Axis2. And clicking finish.</p> <p>It generates the project with name TestClient. And inside that 2 classes : MyWebServiceCallbackHandler and MyWebServiceStub.</p> <p>Once WebService is generated its also opening one JSP (WebService explorer) . In that I can see the WebService and clicking on basicwebservice it shows UI where I can input my data.</p> <p>But its not showing if I can add key/value for map. :(</p> <p>I am not sure how to test this? Can I test this code using code?</p> <p>I have attached the screen shot also.</p> <p>I am new to WebService. Any help on this will be very useful.</p> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload