...
Adding a product:
Code Block | ||
---|---|---|
| ||
<name>product name</name> <price>12.34</price> |
Doing a purchase:
Code Block | ||
---|---|---|
| ||
<customer>your name </customer> <product>product name</product> |
5. Alternatively, you can use code generation link Generate Client link in the Client Operations
widget of the dashboard to invoke the service. However, in the axis2 stub-based clients, there is a limitation in managing session with in-only operations such as 'addProduct'. Therefore, prior to use the code generation, you have to remove mep=http://www.w3.org/ns/wsdl/in-only from the service xml and redeploy the service. This makes the 'addProduct' method return an empty result.
A client using generated stub codes is shown below where the codes were generated with option "Unpacks the databinding classes".
...