开发者

Need some info regrading HttpPost Binding in Axis2

开发者 https://www.devze.com 2023-02-06 03:03 出处:网络
I 开发者_如何学JAVAhave exposed a POJO in a Web Service (bottom up approach) using AXIS2. Now using the HttpPost endpoint, from a browser I can call that service(with param values) just like a HttpGet

I 开发者_如何学JAVAhave exposed a POJO in a Web Service (bottom up approach) using AXIS2. Now using the HttpPost endpoint, from a browser I can call that service(with param values) just like a HttpGet. Why is that so ? I mean is it normal ?

One more thing how to send data with HttpPost Binding by using a testing tool like firefox addon Poster or SoapUi ? I have tried with the eclipse(Galileo) Web Service explorer but it sends null values.

My POJO class looks like this:

public class MyService{
   public String getDetails(String param) {
      //Some business logic here
      System.out.println(param);
      return param;
   }
}

Any sample post or link on how to test a HttpPost binding would help me a lot.


public class Hello { public String sayHello(String name){

    return "Hello " + name;

}
}

Please make a web service from this class and test with eclipse web service explorer.. I think it will accept a string value.

0

精彩评论

暂无评论...
验证码 换一张
取 消