The endpoint reference (EPR) for the Operation not found is

前端 未结 14 888
生来不讨喜
生来不讨喜 2020-12-06 16:43

I have been struggling with the following error the last couple of days can you please help!

I generated my server and client code using the wsdl2java tool from a ws

14条回答
  •  广开言路
    2020-12-06 17:39

    Open WSDL file and find:

    
    

    Add to the requests header [request send to service]:

    'soapAction' : '[actionNameIsHere]'
    

    This work for me.

    For devs. using node-soap [ https://github.com/vpulim/node-soap ] - example:

    var soap = require('soap');
    var options = {
       ...your options...
       forceSoap12Headers: true
    }
    soap.createClient(
            wsdl, options,
                function(err, client) {
                    if(err) {
                        return callBack(err, result);
                    }
                    client.addHttpHeader('soapAction', '[actionNameIsHere]');
                    ...your code - request send...
                });
    

提交回复
热议问题