Last active
December 12, 2015 10:48
-
-
Save ricston-git/4761393 to your computer and use it in GitHub Desktop.
jaxws-service without an implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebService | |
public interface AppendDateService { | |
String appendDate(@WebParam(name="arg") String arg); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebService(endpointInterface = "com.ricston.sample.AppendDateService", | |
serviceName = "AppendDateService") | |
public class AppendDateServiceImpl implements AppendDateService { | |
public String appendDate(String arg) { | |
return arg + " " + (new Date()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="appender"> | |
<http:inbound-endpoint exchange-pattern="request-response" | |
address="http://localhost:9090/services" /> | |
<cxf:jaxws-service serviceClass="com.ricston.sample.AppendDateService" /> | |
<logger level="ERROR" | |
message="#[groovy:message.getInvocationProperty('method')]" /> | |
<logger level="ERROR" | |
message="#[groovy:message.getInvocationProperty('method').class.name]" /> | |
<message-properties-transformer scope="invocation"> | |
<delete-message-property key="method" /> | |
</message-properties-transformer> | |
<component class="com.ricston.sample.NotAServiceImpl" /> | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="appender"> | |
<http:inbound-endpoint exchange-pattern="request-response" | |
address="http://localhost:9090/services" /> | |
<cxf:jaxws-service serviceClass="com.ricston.sample.AppendDateService" /> | |
<component | |
class="com.ricston.sample.NotAServiceImpl" /> | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String appendCurrentDate(String arg) { | |
return arg + " " + (new Date()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<message-properties-transformer scope="invocation"> | |
<add-message-property key="method" | |
value="#[groovy:def m = ((new java.lang.Class[1]) as java.lang.Class[]); m[0] = java.lang.String.class; (com.ricston.sample.NotAServiceImpl.class).getMethod('appendCurrentDate', m)]" /> | |
</message-properties-transformer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment