Announcement Announcement Module
Collapse
No announcement yet.
StockQuote Service - How to retrieve the WSDL? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • StockQuote Service - How to retrieve the WSDL?

    My StockQuote Service works. Here is the output from starting the service:
    [INFO] [jar:jar {execution: default-jar}]
    [INFO] [install:install {execution: default-install}]
    [INFO] Installing C:\Spring\spring-ws-1.5.8\samples\stockquote\target\stockquote-1.5.8.jar to C:\Java\.m2\repository\org\springframework\ws\
    stockquote\1.5.8\stockquote-1.5.8.jar
    [INFO] Preparing exec:java
    [INFO] No goals needed for project - skipping
    [INFO] [exec:java {execution: default-cli}]
    Oct 20, 2009 9:06:35 AM org.springframework.context.support.AbstractApplic ationContext prepareRefresh
    INFO: Refreshing org.springframework.context.support.ClassPathXmlAp plicationContext@130998: display name [org.springframework.context.suppor
    t.ClassPathXmlApplicationContext@130998]; startup date [Tue Oct 20 09:06:35 EDT 2009]; root of context hierarchy
    Oct 20, 2009 9:06:35 AM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
    Oct 20, 2009 9:06:35 AM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from class path resource [ws/applicationContext-ws.xml]
    Oct 20, 2009 9:06:35 AM org.springframework.context.support.AbstractApplic ationContext obtainFreshBeanFactory
    INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlAp plicationContext@130998]: org.springframework.
    beans.factory.support.DefaultListableBeanFactory@1 8346a3
    Oct 20, 2009 9:06:35 AM org.springframework.context.support.AbstractApplic ationContext$BeanPostProcessorChecker postProcessAfterInitializati
    on
    INFO: Bean 'org.springframework.ws.transport.http.HttpUrlConn ectionMessageSender#107f742' is not eligible for getting processed by all BeanP
    ostProcessors (for example: not eligible for auto-proxying)
    Oct 20, 2009 9:06:35 AM org.springframework.context.support.AbstractApplic ationContext$BeanPostProcessorChecker postProcessAfterInitializati
    on
    INFO: Bean 'org.springframework.ws.soap.server.endpoint.inter ceptor.SoapEnvelopeLoggingInterceptor#1fa490e' is not eligible for getting proc
    essed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    Oct 20, 2009 9:06:35 AM org.springframework.ws.soap.addressing.server.Abst ractAddressingEndpointMapping afterPropertiesSet
    INFO: Supporting [WS-Addressing August 2004, WS-Addressing 1.0]
    Oct 20, 2009 9:06:35 AM org.springframework.beans.factory.support.DefaultL istableBeanFactory preInstantiateSingletons
    INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@18346a3: defining beans [messageF
    actory,messageReceiver,endpointMapping,marshaller, wsdlDefinition,org.springframework.ws.samples.stoc kquote.ws.StockService#0,httpServer,soap
    Handler,wsdlHandler]; root of factory hierarchy
    Oct 20, 2009 9:06:35 AM org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory afterPropertiesSet
    INFO: Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
    Oct 20, 2009 9:06:35 AM org.springframework.oxm.jaxb.Jaxb2Marshaller createJaxbContextFromContextPath
    INFO: Creating JAXBContext with context path [org.springframework.ws.samples.stockquote.schema]
    Oct 20, 2009 9:06:35 AM org.springframework.remoting.support.SimpleHttpSer verFactoryBean afterPropertiesSet
    INFO: Starting HttpServer at address 0.0.0.0/0.0.0.0:8080

    Press [Enter] to shut down...

    And here is the client output:

    C:\Spring\spring-ws-1.5.8\samples\stockquote\client\spring-ws>ant run
    Buildfile: build.xml

    init:

    build:

    quotes:
    [java] 2009-10-20 09:36:16,326 INFO [org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory] - Creating SAAJ 1.3 MessageFactory with S
    OAP 1.1 Protocol
    [java] 2009-10-20 09:36:16,326 DEBUG [org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory] - Using MessageFactory class [com.sun.xm
    l.internal.messaging.saaj.soap.ver1_1.SOAPMessageF actory1_1Impl]
    [java] 2009-10-20 09:36:16,373 DEBUG [org.springframework.ws.client.core.WebServiceTempl ate] - Opening [org.springframework.ws.transpor
    t.http.HttpUrlConnection@90cb03] to [http://localhost:8080/StockService]
    [java] 2009-10-20 09:36:16,467 DEBUG [org.springframework.ws.client.MessageTracing.sent] - Sent request [SaajSoapMessage {http://www.sp
    ringframework.org/spring-ws/samples/stockquote}StockQuoteRequest]
    [java] 2009-10-20 09:36:16,592 DEBUG [org.springframework.ws.client.MessageTracing.recei ved] - Received response [SaajSoapMessage {http
    ://www.springframework.org/spring-ws/samples/stockquote}StockQuoteResponse] for request [SaajSoapMessage {http://www.springframework.org/spr
    ing-ws/samples/stockquote}StockQuoteRequest]
    [java] <?xml version="1.0" encoding="UTF-8"?><ns2:StockQuoteResponse xmlns:ns2="http://www.springframework.org/spring-ws/samples/stockq
    uote"><ns2:StockQuote><ns2:Symbol>FABRIKAM</ns2:Symbol><ns2:Last>120.0</ns2:Last><ns2ate>2009-10-20T09:36:16.560-04:00</ns2ate><ns2:Chan
    ge>5.5</ns2:Change><ns2:Name>Fabrikam, Inc.</ns2:Name></ns2:StockQuote><ns2:StockQuote><ns2:Symbol>CONTOSO </ns2:Symbol><ns2:Last>50.07</ns2:
    Last><ns2ate>2009-10-20T09:36:16.560-04:00</ns2ate><ns2:Change>1.15</ns2:Change><ns2:Name>Contoso Corp.</ns2:Name></ns2:StockQuote></ns2
    :StockQuoteResponse>

    run:

    BUILD SUCCESSFUL

    I cannot retrieve the WSDL however when I type in:

    http://localhost:8080/StockService/wsdl

    I get a HTTP 405 Resource not allowed:

    The page cannot be displayed error:

    Is there something that I am doing wrong?

    Thanks for your help in advance.

    Bharat
Working...
X