首先看看一段简单的JAVA代码,我们用它作为WSDL的服务实现代码:
public class Test
{
public String echo(String u){
return "Hello " + u;
}
}
然后看看用它导出的WSDL:
http://businessEngine.hongsoft.com" xmlns="
http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="
http://xml.apache.org/xml-soap" xmlns:impl="
http://businessEngine.hongsoft.com-impl" xmlns:intf="
http://businessEngine.hongsoft.com" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
//我们没有自定义的类型
//返回的消息
//请求的消息
//一个portType可以看着一个类
//一个operation就是一个方法
//下面指定消息封装方式