Expose and access static XSD schema in Spring WS 2 -
i can't reach xsd schema. here configuration:
web.xml
<servlet> <servlet-name>spring-ws</servlet-name> <servlet-class>org.springframework.ws.transport.http.messagedispatcherservlet</servlet-class> <init-param> <param-name>transformwsdllocations</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>spring-ws</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
spring-ws-servlet.xml
<sws:annotation-driven/> <context:component-scan base-package="example.ws.endpoint"/> <sws:dynamic-wsdl id="boo" porttypename="booresource" locationuri="/services/"> <sws:xsd location="classpath:example/ws/schema/boo.xsd"/> </sws:dynamic-wsdl>
wsdl accessible on [http://localhost:port/spring-ws-server-0.1-snapshot/services/boo.wsdl], how can expose xsd , url?
i'm afraid not possible, @ least not automatically wsdls exposed. spring ws doesn't intend make xsds available static , generated wsdls. of course, can make xsds available through simple servlet or through mvc (if you're using mvc well).
Comments
Post a Comment