由于客户公司业务需要调用第三方公司提供的Service,他们是用Java实现的。给到我们的是 类似这样的 一个service地址“https://www.abc.com/ecwebservice/WebServiceSOAP?wsdl”,本来以为在Visual Studio中添加WebService引用就可以了。
但是在添加引用后,直接在new Service对象的时候就报错了。。。
“Method aaa.methodeName can not be reflected.”
Visual Studio 调试的 InnerException 错误
“{"The XML element 'registerResponse' from namespace 'https://www.abc.com/ecwebservice/' references a method and a type. Change the method's message name using WebMethodAttribute or change the type's root element using the XmlRootAttribute."}”
本来以为是接口问题,但是接口提供公司提供的Apache JMeter测试用例导入到我的机器也是可以测试通过的。
不知道这种 https协议和WsdL格式的Java WebService在C#调用的时候有什么讲究?
期待各位的简介