Apache CXF - The given SOAPAction does not match an operation

前端 未结 3 1679
面向向阳花
面向向阳花 2021-01-18 05:39

I started working again on a project I started a few years ago (code available here: http://code.google.com/p/mipnp/). It\'s a UPnP mediaserver that can stream media to an x

3条回答
  •  灰色年华
    2021-01-18 06:08

    THe issue is that the wsdl has:

    
    

    but the request is sending:

    SOAPACTION: "urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1#IsAuthorized"
    

    There are a couple options:

    1) You could update the WSDL to include that string as the soapAction and regenerate all the code and such.

    2) You could write a CXF interceptor that removes the soapAction from the request headers (or sets it to "" like the wsdl states)

提交回复
热议问题