但现在他们那边回复说:
As I see, your wsdl (described below) is not matching the WSDL requested and described by Sebastian Crocquesel (see wsdsl attached)
Please match the technical requirements?
我现在正在做 Web Service 的测试,我们的客户是在美国。
如果你用VS 2003或是VS2005 开发环境,只需要客户给定服务器地址和wsdl文件,然后“Add Web Reference”,输入URL, 就可以列出web services提供的方法, 并且可以在web services组件中调用。
他们在网上提供了一个.asmx的地址,我上去测试如有个SearchUser的函数,我输入并提交.但返回的却是:
<?xml version="1.0" encoding="utf-8" ?>
<Loreal_Reference_OUT_Error>
<SessionID />
<Message>The data at the root level is invalid. Line 1, position 1.</Message>
</Loreal_Reference_OUT_Error>
我向那边提出质疑,但那边的回复说:
You are not supposed to use this function “SearchUser”.
难到不在网页上提供XML的返回,而且我在.Net中Web引用此.asmx,在运行到
XmlNode xn;
Loreal.Localhost.CustomerWebService ws = new Loreal.Localhost.CustomerWebService();
xn=ws.SearchUser("allen"); //运行超时