18,356
社区成员
发帖
与我相关
我的任务
分享
public class SayHello {
public String hello(String name){
return "Hello "+name;
}
public void in(String name){
System.out.println(name + "come");
Log4j.getLogger().info(name + "come");
}
}
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:8080/DemoLanZhou/services/WSTest1" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/DemoLanZhou/services/WSTest1" xmlns:intf="http://localhost:8080/DemoLanZhou/services/WSTest1" 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">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:message name="inRequest">
<wsdl:part name="name" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="helloResponse">
<wsdl:part name="helloReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="helloRequest">
<wsdl:part name="name" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="inResponse">
</wsdl:message>
<wsdl:portType name="SayHello">
<wsdl:operation name="hello" parameterOrder="name">
<wsdl:input message="impl:helloRequest" name="helloRequest"/>
<wsdl:output message="impl:helloResponse" name="helloResponse"/>
</wsdl:operation>
<wsdl:operation name="in" parameterOrder="name">
<wsdl:input message="impl:inRequest" name="inRequest"/>
<wsdl:output message="impl:inResponse" name="inResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WSTest1SoapBinding" type="impl:SayHello">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="hello">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="helloRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tp.lz.trimps.org" use="encoded"/>
</wsdl:input>
<wsdl:output name="helloResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/DemoLanZhou/services/WSTest1" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="in">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="inRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tp.lz.trimps.org" use="encoded"/>
</wsdl:input>
<wsdl:output name="inResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/DemoLanZhou/services/WSTest1" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SayHelloService">
<wsdl:port binding="impl:WSTest1SoapBinding" name="WSTest1">
<wsdlsoap:address location="http://localhost:8080/DemoLanZhou/services/WSTest1"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
<service name="WSTest1" provider="java:RPC">
<parameter name="className" value="lz.tp.SayHello"/>
<parameter name="allowedMethods" value="*"/>
<requestFlow>
<!-- 认证方式 -->
<handler name="authen" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
</requestFlow>
</service>