useOriginalwsdl=true is not working in axis2

只愿长相守 提交于 2019-11-29 14:52:13

useOriginalwsdl=true will work if you have followed the following steps:

  1. put the custom wsdl file inside the META-INF folder.
  2. the service name should be the same in both the custom wsdl as well as in the services.xml
  3. Name the custome wsdl as service.wsdl or (Your ServiceName).wsdl.
  4. Set useOriginalwsdl=true in services.xml file

Note: If useOriginalwsdl=true, Axis2 engine first tries to use any wsdl file named service.wsdl. If not found, then it tries to find named (your service name).wsdl If not succeeds, then it shows error when u try to access the web service.

Do you have external schema references in your WSDL..? If so, those should be also added to META-INF directory... Please also attach your WSDL..

Since you are using contract first, better you validate your WSDL too.. there are wsdl validating tools available...

Thanks...

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