-
Ray.
Here's the log, after I included the class you sent:
2007-10-29 11:36:20,286 DEBUG [org.springframework.ws.transport.http.MessageDisp
atcherServlet] - Initializing servlet 'caob-shared'
2007-10-29 11:36:20,444 INFO [org.springframework.ws.transport.http.MessageDispa
tcherServlet] - FrameworkServlet 'caob-shared': initialization started
2007-10-29 11:36:20,460 DEBUG [org.springframework.ws.transport.http.MessageDisp
atcherServlet] - Servlet with name 'caob-shared' will try to create custom WebAp
plicationContext context of class 'org.springframework.web.context.support.XmlWe
bApplicationContext', using parent context [null]
2007-10-29 11:36:21,076 INFO [com.bofa.caob.ws.DebugPayloadRootAnnotationMethodE
ndpointMapping] - Potential Endpoint: [class com.bofa.caob.service.Documentation
ServiceImpl]
2007-10-29 11:36:21,108 INFO [com.bofa.caob.ws.DebugPayloadRootAnnotationMethodE
ndpointMapping] - Potential Endpoint: [class com.bofa.caob.ws.DocumentationServi
ceEndpoint]
2007-10-29 11:36:21,139 INFO [com.bofa.caob.ws.DebugPayloadRootAnnotationMethodE
ndpointMapping] - Registering methods for endpoint: [com.bofa.caob.ws.Documentat
ionServiceEndpoint@adae91]
2007-10-29 11:36:21,139 INFO [com.bofa.caob.ws.DebugPayloadRootAnnotationMethodE
ndpointMapping] - Potential Endpoint: [class com.bofa.caob.ws.DocumentationServi
ceEndpoint]
2007-10-29 11:36:21,187 INFO [com.bofa.caob.ws.DebugPayloadRootAnnotationMethodE
ndpointMapping] - Potential Endpoint: [class org.springframework.oxm.jaxb.Jaxb2M
arshaller]
2007-10-29 11:36:21,218 INFO [org.springframework.oxm.jaxb.Jaxb2Marshaller] - Cr
eating JAXBContext with context path [com.bofa.jaxb.caob.documentation.ws.jaxb]
2007-10-29 11:36:22,293 INFO [com.bofa.caob.ws.DebugPayloadRootAnnotationMethodE
ndpointMapping] - Potential Endpoint: [class org.springframework.ws.server.endpo
int.adapter.MarshallingMethodEndpointAdapter]
2007-10-29 11:36:22,309 INFO [com.bofa.caob.ws.DebugPayloadRootAnnotationMethodE
ndpointMapping] - Potential Endpoint: [class org.springframework.ws.wsdl.wsdl11.
SimpleWsdl11Definition]
2007-10-29 11:36:22,324 DEBUG [org.springframework.ws.transport.http.MessageDisp
atcherServlet] - Published WebApplicationContext of servlet 'caob-shared' as Ser
vletContext attribute with name [org.springframework.web.servlet.FrameworkServle
t.CONTEXT.caob-shared]
2007-10-29 11:36:22,388 INFO [org.springframework.ws.soap.saaj.SaajSoapMessageFa
ctory] - Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
2007-10-29 11:36:22,388 DEBUG [org.springframework.ws.transport.http.MessageDisp
atcherServlet] - No WebServiceMessageFactory found in servlet 'caob-shared': usi
ng default
2007-10-29 11:36:22,451 DEBUG [org.springframework.ws.soap.server.SoapMessageDis
patcher] - No EndpointExceptionResolvers found, using defaults
2007-10-29 11:36:22,451 DEBUG [org.springframework.ws.transport.http.MessageDisp
atcherServlet] - No MessageDispatcher found in servlet 'caob-shared': using defa
ult
2007-10-29 11:36:22,451 INFO [org.springframework.ws.transport.http.MessageDispa
tcherServlet] - FrameworkServlet 'caob-shared': initialization completed in 2007
ms
2007-10-29 11:36:22,451 DEBUG [org.springframework.ws.transport.http.MessageDisp
atcherServlet] - Servlet 'caob-shared' configured successfully
2007-10-29 11:36:22,530 DEBUG [org.springframework.ws.transport.http.MessageDisp
atcherServlet] - Successfully completed request
Thanks
Sunil
-
Ok, now we're getting somewhere.
It found endpoint by it's @Endpoint annotation. We know that because it said...
Registering methods for endpoint: [com.bofa.caob.ws.Documentat
ionServiceEndpoint@adae91]
Notice how we don't see any message that says "Lookup key for method [blah]: [blah]"? That means either it didn't see your PayloadMapping annotation or something else might be wrong...
Can you change the method getLookupKeyForMethod to this:
Code:
protected String getLookupKeyForMethod(Method method) {
log.info("Looking up key for method: [" + method + "]");
String key = super.getLookupKeyForMethod(method);
log.debug("Lookup key for method [" + method + "] is [" + key + "]");
return key;
}
And run it again please?
I'm interested to see if we see a "Looking up key for method" message at all. If we see the message, Spring-WS saw your endpoint. If not, then something else is wrong...
-
Ray.
It works now. I found the problem, the webservice method was not declared public.
It was:
GetDocumentListResponse getDocumentList(GetDocumentListRequest request) {
Changed it to:
public GetDocumentListResponse getDocumentList(GetDocumentListRequest request) {
Thanks
Sunil
-
haha yeah that'd do it ;)
-
i had a similar problem.. thanks for the help!
-
Useful discussion.. was able to narrow down my issue ...I had my payload method as protected which gave me 404 Not Found..
Thanks to all