Back Forum Reply New

Cannot find mapping

I have tried to enter mapping paths for a SoapActionEndpointMapping and I can't figure out what the corrct path will be. When I use the defaultEndpoint everything works fine. When I remove it - no mapping is found.

How can I figure out the correct path name for my mappings?

Thanks,

Steve

It depends on the SOAP Actions you have defined in the soapperations in your WSDL.

Arjen,

When debug is on I see the following log messages. Before digging into anything else, I would like to know if there is a way to have the incoming request printed so that I can get an idea of what the mapper is trying to map to. Is there a way to have that printed in the logs? I recall a post where someone mentionaed that was possible.

Thanks,

Steve

2006-08-29 10:06:53 PM DEBUG org..ws.MessageDispatcher (Line - 206) Message: MessageDispatcher with name 'messageDispatcher' received request [org..ws.soap.saaj.SaajSoapMessage@a  1d92a]
2006-08-29 10:06:53 PM DEBUG org..ws.MessageDispatcher (Line - 313) Message: Testing endpoint mapping [org..ws.soap.SoapActionEndpointMapp  ing@1efb0be]
2006-08-29 10:06:53 PM WARN org..ws.MessageDispatcher (Line - 255) Message: No endpoint mapping found for [org..ws.soap.saaj.SaajSoapMessage@a  1d92a]

You can use an interceptor (PayloadLoggingInterceptor or SoapEnvelopeLoggingInterceptor) for this. However, the message is only logged when an endpoint is actually found; if no endpoint is found nothing is logged. Also, the logged message does not contain the SOAP Action header, since that is a from header.

I think i'll add some code to the SoapActionEndpointMapping to facilitate the debugging of cases like these.

For now, I think the easiest solution would be to use a debugger to find out the SOAP Action Header.

You might also go back to the default mapping, and then in your code print out the request information.
... Rich
¥
Back Forum Reply New