Guest User

Untitled

a guest
Aug 5th, 2015
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. @WebServiceProvider()
  2. public class SOAPConverterService implements Provider<Source> {
  3. @Resource
  4. WebServiceContext wsContext;
  5. @Override
  6. public Source invoke(Source source) {
  7. try {
  8.  
  9. DOMResult dom=ServiceUtility.transformDom(source);//want to replace here with STAX
  10.  
  11.  
  12. // remain logic goes here
  13. }catch(ServiceNotFoundException e){
  14. throw new RuntimeException(e.getMessage());
  15. }
  16. }
Add Comment
Please, Sign In to add comment