高分求救wsdl2java 如何生成服务器端代码?
求救。别人给了我一个.wsdl文件,通过该文件让我写服务器端的代码。如何通过wsdl2java 生成服务器端代码?以及实现哪个一个接口。小弟用的是windows系统。。
------解决方案--------------------wsdl文件为如下。
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="http://esmp.enterprise.com/service/ASPSubNotifactionService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://esmp.enterprise.com/service/ASPSubNotifactionService" xmlns:intf="http://esmp.enterprise.com/service/ASPSubNotifactionService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="urn:ASPSubNotifactionService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://esmp.enterprise.com/service/ASPSubNotifactionService" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<complexType name="ASPSubNotificationRequest">
<sequence>
<element name="aspID" type="soapenc:string" />
<element name="transactionID" type="soapenc:string" />
<element name="subscriptionID" nillable="true" type="soapenc:string" />
<element name="sentTime" type="soapenc:string" />
<element name="resultCode" type="xsd:int" />
<element name="resultMessage" nillable="true" type="soapenc:string" />
</sequence>
</complexType>
<complexType name="ASPProvisionResultNotificationResponse">
<sequence>
<element name="aspID" type="soapenc:string" />
<element name="sentTime" type="soapenc:string" />
<element name="transactionID" type="soapenc:string" />
<element name="subscriptionID" nillable="true" type="soapenc:string" />
<element name="resultCode" type="xsd:int" />
<element name="resultMessage" nillable="true" type="soapenc:string" />
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="ASPSubNotificationRequestResponse">
<wsdl:part name="ASPSubNotificationRequestReturn" type="tns1:ASPProvisionResultNotificationResponse" />
</wsdl:message>
<wsdl:message name="ASPSubNotificationRequestRequest">
<wsdl:part name="requestType" type="tns1:ASPSubNotificationRequest" />
</wsdl:message>
<wsdl:portType name="ASPSubNotificationRequestService">
<wsdl:operation name="ASPSubNotificationRequest" parameterOrder="requestType">
<wsdl:input message="impl:ASPSubNotificationRequestRequest" name="ASPSubNotificationRequestRequest" />
<wsdl:output message="impl:ASPSubNotificationRequestResponse" name="ASPSubNotificationRequestResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ASPSubNotifactionServiceSoapBinding" type="impl:ASPSubNotificationRequestService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="ASPSubNotificationRequest">