Best way to consume RPC/encoded webservice?

后端 未结 2 1611
不知归路
不知归路 2020-12-13 04:49

I need to consume old-school RPC/encoded WSDL webservice for my backend. At first I tried to use Apache CXF and JAX-WS for that, but JAX-WS wsimport tool doesn\

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 05:29

    UPDATE

    My case was solved with hand editing WSDL from encoded to literal (basically under operations input and output use="literal" was the only replacement) and then I could generate stubs with Apache CXF. It could be done, because endpoint wasn't parsing RPC/encoded exactly and RPC/encoded spec XML couldn't be validated against WSDL).

    Although Axis 1.4 may work for you, using Apache CXF with that little WSDL hack, may be a better way.


    [Old answer]

    For reference -- I opted for using JAX-RPC and Axis 1.4 this time. I generated client code and hopefully can replace it with JAX-WS implementation when service gets upgraded.

提交回复
热议问题