SOAP RPC/Encoded convert to RPC/Literal

偶尔善良 提交于 2020-01-12 08:49:23

问题


Does anyone know of a tool or 'blackbox' that would convert a RPC/Encoded WSDL to RPC/Literal? I don't have the ability to change the API (it's not mine) but the tool I want to use does not support RPC/Encoded. I'd like to see if someone has created a simple black box communication converter.

I want to use wave maker and i'm not a programmer so I'm looking for a tool to just take care of the translation.


回答1:


If you are changing the encoding of the WSDL, then the SOAP messages would change to:

RPC/Encoded Message Sample

<soap:envelope>
    <soap:body>
        <myMethod>
            <x xsi:type="xsd:int">5</x>
            <y xsi:type="xsd:float">5.0</y>
        </myMethod>
    </soap:body>
</soap:envelope>

RPC/Literal Message Sample

<soap:envelope>
    <soap:body>
        <myMethod>
            <x>5</x>
            <y>5.0</y>
        </myMethod>
    </soap:body>
</soap:envelope>

http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/

So, it is not enough to translate the WSDL, as you can see de differences between SOAP messages.

You could create a component that acts like a middle man:

  • call the target services in RPC/literal
  • export functionality as RPC/encoded to your application

But this component needs to be implemented on your specific case, there is no magic tool.



来源:https://stackoverflow.com/questions/9240459/soap-rpc-encoded-convert-to-rpc-literal

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