Spring Web Service - Unable to find WSDL -
Spring Web Service - Unable to find WSDL -
i have created spring web service , deployed in weblogic service . got below logs:
jun 19, 2014 9:21:29 pm org.springframework.web.context.contextloader initwebapplicationcontext info: root webapplicationcontext: initialization started jun 19, 2014 9:21:30 pm org.springframework.web.context.support.xmlwebapplicationcontext preparerefresh info: refreshing root webapplicationcontext: startup date [thu jun 19 21:21:30 ist 2014]; root of context hierarchy jun 19, 2014 9:21:31 pm org.springframework.beans.factory.support.defaultlistablebeanfactory preinstantiatesingletons info: pre-instantiating singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@3b14dd4: defining beans []; root of mill hierarchy jun 19, 2014 9:21:31 pm org.springframework.web.context.contextloader initwebapplicationcontext info: root webapplicationcontext: initialization completed in 2041 ms jun 19, 2014 9:21:32 pm org.springframework.ws.transport.http.messagedispatcherservlet initservletbean info: frameworkservlet 'test-ws': initialization started jun 19, 2014 9:21:32 pm org.springframework.web.context.support.xmlwebapplicationcontext preparerefresh info: refreshing webapplicationcontext namespace 'test-ws-servlet': startup date [thu jun 19 21:21:32 ist 2014]; parent: root webapplicationcontext jun 19, 2014 9:21:32 pm org.springframework.beans.factory.xml.xmlbeandefinitionreader loadbeandefinitions info: loading xml bean definitions servletcontext resource [/web-inf/test-ws-servlet.xml] jun 19, 2014 9:21:32 pm org.springframework.ws.soap.addressing.server.annotationactionendpointmapping afterpropertiesset info: supporting [ws-addressing august 2004, ws-addressing 1.0] jun 19, 2014 9:21:32 pm org.springframework.beans.factory.support.defaultlistablebeanfactory preinstantiatesingletons info: pre-instantiating singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@213f529: defining beans [org.springframework.ws.server.endpoint.mapping.payloadrootannotationmethodendpointmapping#0,org.springframework.ws.soap.server.endpoint.mapping.soapactionannotationmethodendpointmapping#0,org.springframework.ws.soap.addressing.server.annotationactionendpointmapping#0,org.springframework.ws.server.endpoint.adapter.method.dom.dompayloadmethodprocessor#0,org.springframework.ws.server.endpoint.adapter.method.sourcepayloadmethodprocessor#0,org.springframework.ws.server.endpoint.adapter.method.jaxb.xmlrootelementpayloadmethodprocessor#0,org.springframework.ws.server.endpoint.adapter.method.jaxb.jaxbelementpayloadmethodprocessor#0,org.springframework.ws.server.endpoint.adapter.defaultmethodendpointadapter#0,org.springframework.ws.soap.server.endpoint.soapfaultannotationexceptionresolver#0,org.springframework.ws.soap.server.endpoint.simplesoapexceptionresolver#0,getcptskudetailswebservice,getskudetailswebservice,org.springframework.context.annotation.internalconfigurationannotationprocessor,org.springframework.context.annotation.internalautowiredannotationprocessor,org.springframework.context.annotation.internalrequiredannotationprocessor,org.springframework.context.annotation.internalcommonannotationprocessor,skudetails,skudetailsschema,org.springframework.context.annotation.configurationclasspostprocessor.importawareprocessor]; parent: org.springframework.beans.factory.support.defaultlistablebeanfactory@3b14dd4 jun 19, 2014 9:21:33 pm org.springframework.ws.soap.saaj.saajsoapmessagefactory afterpropertiesset info: creating saaj 1.3 messagefactory soap 1.1 protocol jun 19, 2014 9:21:33 pm org.springframework.ws.transport.http.messagedispatcherservlet initservletbean info: frameworkservlet 'test-ws': initialization completed in 1167 ms but when seek nail url cant able find wsdl saying 404 .
please find web.xml
<servlet> <servlet-name>test-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> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>test-ws</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>test-ws</servlet-name> <url-pattern>*.wsdl</url-pattern> </servlet-mapping> <context-param> <param-name>contextconfiglocation</param-name> <param-value></param-value> </context-param> <listener> <listener-class> org.springframework.web.context.contextloaderlistener </listener-class> </listener> please find test-ws-servlet.xml file
<bean id="testdetails" class="org.springframework.ws.wsdl.wsdl11.defaultwsdl11definition"> <property name="schema" ref="testdetailsschema" /> <property name="porttypename" value="gettestserviceporttype" /> <property name="locationuri" value="/testdetailsservice/" /> </bean> <bean id="testdetailsschema" class="org.springframework.xml.xsd.simplexsdschema"> <property name="xsd" value="/schemas/testdetails.xsd" /> </bean> url used :
http://localhost:7001/<projectname>/<locationuri>/<beanid>.wsdl please help me in case. can understand logs wsdl has been generated, if understanding wrong please help in that. please help me in finding wsdl. url using access wsdl right ?
should work this
http://localhost:7001/<projectname>/<locationuri>.wsdl beanid redundant, because 1 locationuri presumes 1 webservice, 1 wsdl.
see here: http://docs.spring.io/spring-ws/docs/current/reference/html/tutorial.html#tutorial-publishing-wsdl
spring spring-mvc soap spring-batch spring-ws
Comments
Post a Comment