Professional Documents
Culture Documents
Fuente:
http://scn.sap.com/community/soa/blog/2013/09/23/usi
ng-service-group-in-calling-web-services-from-ejb
Lets proceed to create a new Service Group Configuration DC; in the example below we named
the Service Group ECC_SG.
3. Switch to Service Composer Perspective. Create a new Service Group under Connectivity
In NWA, go to SOA -> Application and Scenario Communication -> Application Communication
1. Log in to NWA Go to SOA > Application and Scenario Communication > Application Communication
2. Give the DC name for service group and search, it shows all the service group as below
3. Click on Edit button and choose create from provider system as shown below
4. It shows create screen as below, select required system name, system type to assign provider system
5. Once service group is configured with provider system it shows green status as below
1. Right click on working DC, Import > WSDL and Open Import wsdl dialogue from NWDS
6. In the New Service Reference dialogue choose existing service group that was already configured in the
previous step explained before.
7. After click on Finish button newly added service reference is appeared as below
@WebServiceRef
TestService objTestService;
9. Go to NWA and SOA > Application and Scenario Communication > Application Communication
10. Type DC that is used for web service, go to Provider Services and Assign SAP_DEFAULT_PROFILE as
shown below.
1. Go to NWA and SOA > Application and Scenario Communication > User Account Management
2. Click on New and create new user account
3. Click on Next and give connectivity type and metadata user/pass to invoke web service
4. Go to assignment tab and click on new and choose Test user that was created earlier in the previous step
6. Now newly created User account is showing provider system and service group as below
In the service group we define the provider system, which actually tells us the end point URL. By seeing
service group program can generate end point URL to invoke the web service. We are grouping all the related
web services as one entity and naming it as a group, so that it can be invoked with same credentials.
Using service group reduces the configuration and when ever transport happens, we dont really change the
end point url config every time. Service group tells us which system the service is present.
By configuring user account we can invoke all the web services in the provider system with the logon
credentials that was defined when creating the account.
408 Views Topics: service-oriented_architecture