Wsdl Eclipse WTP Axis 2 Web服务向导未创建部署配置
我正在eclipse中使用WSDL文件以自顶向下的模式创建Axis2 Web服务 我遵循new->other->WebServices->webservice的标准步骤,选择自上而下的JavaBean服务选项,Axis2作为运行时,Tomcat7作为我的服务器运行时,等等。然后,eclipse成功地创建了java类文件和配置文件,在WEB-INF/services/文件夹中排除了我的服务定义 请参阅随附的屏幕截图: 通过检查使用旧版本eclipse和其他WSDL创建的其他WEB服务,我看到eclipse将其放在/WEB-INF/services/文件夹中,该文件夹包含类和配置文件,我认为这是Axis2运行时识别该服务的原因,但在我的例子中,当我将web应用程序部署到应用程序服务器时,axis运行时不会显示列出的web服务 这是一个eclipse/axis2错误,还是我在尝试创建自顶向下的web服务时做错了什么 这是我的WSDL文件(出于隐私原因更改了一些名称):Wsdl Eclipse WTP Axis 2 Web服务向导未创建部署配置,wsdl,axis2,eclipse-wtp,Wsdl,Axis2,Eclipse Wtp,我正在eclipse中使用WSDL文件以自顶向下的模式创建Axis2 Web服务 我遵循new->other->WebServices->webservice的标准步骤,选择自上而下的JavaBean服务选项,Axis2作为运行时,Tomcat7作为我的服务器运行时,等等。然后,eclipse成功地创建了java类文件和配置文件,在WEB-INF/services/文件夹中排除了我的服务定义 请参阅随附的屏幕截图: 通过检查使用旧版本eclipse和其他WSDL创建的其他WEB服务,我看到ec
我正在使用:
- 适用于64位Windows的Eclipse Mars(4.5.1)
- 轴2-1.6.3运行时
- ApacheTomcat 7.0.12
<?xml version='1.0' encoding='UTF-8'?>
<definitions name="FooWS" targetNamespace="http://foo.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://pagoelectronico.bcr.gob.sv" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<xs:schema targetNamespace="http://foo.com" version="1.0" xmlns:tns="http://foo.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="sendFoo" type="tns:sendFoo"/>
<xs:element name="sendFooResponse" type="tns:sendFooResponse"/>
<xs:complexType name="sendFoo">
<xs:sequence>
<xs:element minOccurs="0" name="foo" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="sendFooResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</types>
<message name="sendFoo">
<part element="tns:sendFoo" name="parameters"/>
</message>
<message name="sendFooResponse">
<part element="tns:sendFooResponse" name="parameters"/>
</message>
<portType name="FooEndPoint">
<operation name="sendFoo">
<input message="tns:sendFoo"/>
<output message="tns:sendFooResponse"/>
</operation>
</portType>
<binding name="FooWSPortBinding" type="tns:FooEndPoint">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="sendFoo">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="FooWS">
<port binding="tns:FooWSPortBinding" name="FooWSPort">
<soap:address location="http://192.168.11.112:7010/wsPElectronico/FooWS"/>
</port>
</service>
</definitions>