小编use*_*151的帖子

mssoapinit无法初始化WSDL

MSSOAP客户端无法初始化Hello示例项目的soap12接口.

var soap = new ActiveXObject('MSSOAP.SOAPClient30');
soap.mssoapinit('http://<server>/ServiceStack.Hello/soap12');
var retval = soap.Hello('test');
Run Code Online (Sandbox Code Playgroud)

返回以下错误:

WSDLPort: WSDLPort:The soap:binding subnode on the binding for port WSHttpBinding_ISyncReply is missing HRESULT=0x1: Incorrect function.
 - WSDLService:Processing service SyncReply found no port definitions HRESULT=0x80070057: The parameter is incorrect.
 - WSDLReader:Analyzing the WSDL file failed HRESULT=0x80070057: The parameter is incorrect.
 - Client:One of the parameters supplied is invalid. HRESULT=0x80070057: The parameter is incorrect.
Run Code Online (Sandbox Code Playgroud)

我使用ServiceStack版本3.95与IIS 6.0和.NET 4.0.30319.

这是WSDL:

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="Soap12" 
    targetNamespace="http://schemas.servicestack.net/types" 
    xmlns:svc="http://schemas.servicestack.net/types" 
    xmlns:tns="http://schemas.servicestack.net/types" 

    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" …
Run Code Online (Sandbox Code Playgroud)

soap servicestack

6
推荐指数
0
解决办法
2986
查看次数

标签 统计

servicestack ×1

soap ×1