开发者

Web Service parameters' types when accessing axis2 service from .NET client

I have created a axis2 webservice includi开发者_JAVA百科ng a method with multiple parameters:

class Service
{
   public void method(string a, Enum b) {
   }
}

When accessing with a .NET client, the code generated in the client side is:

void method(methodRequest request)

instead of having the two original parameters, and in addition methodRequest.b is of type object.

Do you know how to avoid both strange behaviors?


  • request/response object wrappers can be avoided making some changes to the WSDL generated by axis2. Instructions: http://pzf.fremantle.org/2007/05/handlign.html
  • object type for enums is because enums are not supported yet in axis2 1.5.
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜