SOAP Action WSDL

后端 未结 8 1183
再見小時候
再見小時候 2020-12-30 02:18

I\'m trying to implement a client for National Rail Enquiries\' SOAP Service (http://www.livedepartureboards.co.uk/ldbws/).

I stick the WSDL (http://realtime.nationa

8条回答
  •  梦毁少年i
    2020-12-30 02:50

    When soapAction is missing in the SOAP 1.2 request (and many clients do not set it, even when it is specified in WSDL), some app servers (eg. jboss) infer the "actual" soapAction from {xsd:import namespace}+{wsdl:operation name}. So, to make the inferred "actual" soapAction match the expected soapAction, you can set the expected soapAction to {xsd:import namespace}+{wsdl:operation name} in your WS definition (@WebMethod(action=...) for Java EE)

    Eg. for a typical Java EE case, this helps (not the Stewart's case, National Rail WS has 'soapAction' set):

    @WebMethod(action = "http://packagename.of.your.webservice.class.com/methodName")

    If you cannot change the server, you will have to force client to fill soapAction.

提交回复
热议问题