|
Blogs
The previous blogs of this series focused on modeling and defining services using the Enterprise Services Builder which is part of the Enterprise Services Repository toolset. Starting with this blog we will show you in the following three blogs how the design time WSDL created during this process may be implemented using different technologies: JEE, .NET and ABAP. This blog will show you the detailed steps of how to implement the Read Sales Order service using JEE technology on SAP NetWeaver Composition Environment 7.1 EhP 1. The development toolset is provided within SAP NetWeaver Developer Studio. So continue on your PdES journey and have a look at the screencam:
The detailed storyboard is outlined in the following:
Steps in SAP NetWeaver Developer Studio:
Steps in SAP NetWeaver Administrator:
For more details on providing stateless web services see SAP Help Portal. Navigate to Providing, Discovering and Consuming Services -> Providing Web Services -> Providing Web Services in Java Applications -> Providing Stateless Web Services
Below you find the sample code used in the service implementation implementing the skeleton method readSalesOrder(...):
//Creating a sample Sales Order structure: SlsOrdByIDRespMsgSyncSlsOrd out_MDT_SlsOrd = new SlsOrdByIDRespMsgSyncSlsOrd(); XMLGregorianCalendar calendar = new XMLGregorianCalendarImpl(new GregorianCalendar()); List out_MDT_item= new ArrayList(); out_MDT.setSalesOrder(out_MDT_SlsOrd); //Create a log element reflecting successful processing: log.setBusinessDocumentProcessingResultCode("3"); List logItemList = new ArrayList(); NOSCLogItem logItem = new NOSCLogItem(); out_MDT.setLog(log); return out_MDT;
The correct usage of the Log data type for non-technical error reporting is described in the corresponding section in the SAP Global Data Type catalog in PDF format.
Ride in the tube of SOA and learn how to deliver your services based on SAP's modeling and definition methodology. Stay tuned for more information and move on in your PdES journey with the next blog on "Implementing Services in .NET". In the following the links to all other blogs from the PdES Architecture Series (Not all blogs are published yet):
Hans-Joachim Odlozinski is a senior solution architect at SAP's Global Co-Innovation Lab Network. Add to: del.icio.us | Digg | Reddit |