似乎只能调xfire做的服务端。
以“
http://www.xmethods.net/interfaces/query.wsdl”这个接口为例,在c# sharpdevelop中正常调用,换用groovysoap以后,就报“org.codehaus.xfire.fault.XFireFault: this is a soap-encoded endpoint”的异常了。
using System;
using Hello.www.xmethods.net;
namespace Hello
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			XMethodsQuery query=new XMethodsQuery();
			IDNamePair[] result=query.getAllServiceNames();
			for(int i=0;i<result.Length;i++)
				Console.WriteLine(result[i].id+"\t"+result[i].name+"\n");
		}
	}
}