Parsing custom parameters from an Axis2 exposed POJO

前提是你 提交于 2019-12-11 06:00:08

问题


I have a web service operation that I am exposing with Axis2.

Let's say it's like this:

public class MyService{

  public String helloworld(String yourName){
    return "Hello " + yourName;
  }
}

This is a pretty simple web service. My question is how do I parse more complex parameters? For example, I want to pass more than just strings, and I also want some parameters to be optional and some parameters to may also be nested.


回答1:


Use varargs and method overloading.



来源:https://stackoverflow.com/questions/2390249/parsing-custom-parameters-from-an-axis2-exposed-pojo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!