01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package mx4j.tools.remote.soap;
10:
11: import mx4j.tools.remote.http.HTTPService;
12: import org.apache.axis.MessageContext;
13:
14: /**
15: * The server-side service (the WebService actually) where remote calls end up
16: * after being parsed by Axis.
17: * This is, in Axis jargon, the 'pivot' of the invocation chain.
18: * It is used in the Axis deployment descriptor, and as such must be a public class.
19: *
20: * @version $Revision: 1.3 $
21: */
22: public class SOAPService extends HTTPService {
23: protected String findRequestURL() {
24: MessageContext context = MessageContext.getCurrentContext();
25: return (String) context.getProperty(MessageContext.TRANS_URL);
26: }
27:
28: protected String getProtocol() {
29: return "soap";
30: }
31:
32: protected String findConnectionId() {
33: MessageContext context = MessageContext.getCurrentContext();
34: return (String) context
35: .getProperty(SOAPConstants.CONNECTION_ID_HEADER_NAME);
36: }
37: }
|