B- Second Method is via a service provider configuration:
1- Go to SOA -> Technical Configuration -> System Connections
2- From Provider System tab, click New
3- In the configuration wizard first step select SAP Process Integration, enter a system name, and description.
4- In the next step click Switch to Advanced Mode, select WSDL as the service source, enter the wsdl url, configure the security select SSO or no authentication for anonymous access or logon ticket access, or technical user for specifying user name and password for authentication. enter user name and password for downloading the wsdl, then click next.
5- complete the wizard with default, now you have the provider system created.
6- Go to Application Communication configuration, select the service group, and click edit, from the provider system drop down, select the created service provider, and click save
7- After few seconds, click the refresh button, the processing state should be Processed. If you get the state processed with warnings, that should still work, but you might click the show log error to see what is the warning. Your application now should be ready to consume the web service.