Friday, June 6, 2008

Pragmatic approach to Java EE WebService.

  • Make sure all WebServices you expose confirms to WS-I Basic profile guidelines.
  • How do I make sure my WebService is WS-I Basic profile compliant?
  • Read "Basic Profile 1.1 Test Assertions".
  • Use a test tool like "WS-I Analyze WSDL" in Oracle JDeveloper to test your WSDL before publishing it.
  • Use only "document/literal wrapper" style for your WebServices.
  • Do not define your types inline in the WSDL, always define it externally and import it in the WSDL.
  • Faults are important part of your service definition so always define meaningful faults for every operation.
  • Do not define fault types inline in the WSDL, always define faults externally and import it in the WSDL.