我尝试运行代码,但它似乎无法运行。如何使代码工作?
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:sws="http://www.springframework.org/schema/web-services"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/web-services
http://www.springframework.org/schema/web-services/web-services-2.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
<context:component-scan base-package="com.soft.service"/>
<bean id="soapMessageFactory"
class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
<property name="soapVersion">
<util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_12"/>
</property>
</bean>
<sws:annotation-driven/>
<sws:dynamic-wsdl id="myrequest"
portTypeName = "myrequestPort"
locationUri = "/ws/"
targetNamespace = "http://soft.com/namespace"
createSoap11Binding="false"
createSoap12Binding="true">
<sws:xsd location = "/WEB-INF/schema.xsd"/>
</sws:dynamic-wsdl>
</beans>
答案 0 :(得分:0)
根据我的评论。
@Echo Off
SetLocal EnableDelayedExpansion
Set /P "Choice= What do you want me to do?: "
If /I "%Choice%"=="shutdown" (
Set /P "Span= In how many minutes shall I shut down the computer?: "
Set /A Span *=60
ShutDown -S -T !Span!
) Else (If
)