Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/365.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在axis应用程序中禁用SOAP操作?_Java_Soap_Wsdl_Axis - Fatal编程技术网

Java 如何在axis应用程序中禁用SOAP操作?

Java 如何在axis应用程序中禁用SOAP操作?,java,soap,wsdl,axis,Java,Soap,Wsdl,Axis,请查找下面的html客户端,我正试图使用它访问axis soap应用程序 <head> <title>SOAP JavaScript Client Test</title> <script type="text/javascript"> function soap() { var xmlhttp = new XMLHttpRequest(); xmlhttp.open(

请查找下面的html客户端,我正试图使用它访问axis soap应用程序

<head>
    <title>SOAP JavaScript Client Test</title>
    <script type="text/javascript">
        function soap() {
            var xmlhttp = new XMLHttpRequest();
            xmlhttp.open('POST', 'http://localhost:9090/SMSSoapInterface/services/smsxmlpushservicewsSoap11', true);

            // build SOAP request
            var sr =
                '<?xml version="1.0" encoding="utf-8"?>' +
                '<soapenv:Envelope ' + 
                    'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
                    'xmlns:urn="urn:mm7pushinterface' +
                    'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">' +
                    '<soapenv:Body>' +
                            '<urn:SubmitReq>' +
                            '<urn:MM7Version>5.3.0</urn:MM7Version>' +
                            '<urn:SenderIdentification>' +
                            '<urn:VASPID>1234</urn:VASPID>'+
                            '<urn:VASID>12345</urn:VASID>'+
                            '<urn:CampaignName>SOAP Campaign</urn:CampaignName>'+
                            '<urn:CampaignDesc>test</urn:CampaignDesc>'+
                            '<urn:MsgCategory>1</urn:MsgCategory>'+
                            '<urn:SenderAddress>'+
                            '<urn:RFC2822Address >1244</urn:RFC2822Address>'+
                            '<urn:Number>919901251515</urn:Number>'+
                            '<urn:ShortCode >1234</urn:ShortCode>'+
                            '</urn:SenderAddress>'+
                            '</urn:SenderIdentification>'+
                            '<urn:Recipients>'+
                            '<urn:To>'+
                            '<urn:RFC2822Address >6789</urn:RFC2822Address>'+
                            '<urn:Number >919901251516</urn:Number>'+
                            '<urn:ShortCode >7896</urn:ShortCode>'+
                            '</urn:To>'+
                            '</urn:Recipients>'+
                            '</urn:Recipients>'+
                    '</soapenv:Body>' +
                '</soapenv:Envelope>';

            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4) {
                    if (xmlhttp.status == 200) {
                        alert('done. use firebug/console to see network response');
                    }
                }
            }
            // Send the POST request
            xmlhttp.setRequestHeader('Content-Type', 'text/xml');
            xmlhttp.setRequestHeader('SOAPAction', "");
            xmlhttp.setRequestHeader('Access-Control-Allow-Headers', 'Authorization');
            xmlhttp.setRequestHeader('Access-Control-Allow-Methods', 'POST');
            xmlhttp.setRequestHeader('Access-Control-Allow-Origin', '*');
            xmlhttp.setRequestHeader('username', 'ecpDemoUser');
            xmlhttp.setRequestHeader('password', 'ecpDemo');
            xmlhttp.setRequestHeader('SOAPAction', "");
            xmlhttp.send(sr);
            // send request
            // ...
        }
    </script>
</head>
<body>
    <form name="Demo" action="" method="post">
        <div>
            <input type="button" value="Soap" onclick="soap();" />
        </div>
    </form>
</body>
</html> <!-- typo -->
我的wsdl文件未定义任何soap操作:

<soap:operation soapAction=""/>

当soap操作头为空时,有人能告诉我如何在axis应用程序中禁用soap操作吗?请提供api

<soap:operation soapAction=""/>