Vineet Gupta
January 29, 2010 3 minute read
Manual Setup of Logical Port in SOAMANAGER
1342,126
Manual Setup of Logical Port
Process for consuming a web service is to generate a
consumer proxy, create a logical port and call the generated consumer proxy in
a program. Logical port is created using transaction SOAMANAGER. Logical port
can be created using the web service WSDL URL, or using a WSDL file, or by
Manual Configuration. Using the WSDL is the preferred approach, but if for some
reason you are having trouble, this blog documents the process of using manual
configuration options for creating a logical port.
Background
You are a SAP Developer and have been asked to consume a web
service that the .NET team in your organization has created. The .NET team
informs you that the URL for the web service is “https://intranet.abc.com/ws/ws.asmx”.
The web service doesn’t require a userid / password for access. You have
successfully generated a consumer proxy. You are familiar with transaction
SOAMANAGER and go through the steps to create a logical port. You get the error
HTTP: Error in interface for management of HTTP destinations”. You try to use
the URL using file access option and still no success. You decide to try the
Manual Configuration option.
This blog assumes familiarity with the SOAMANAGER
transaction. If not, please review SAP help and lots of other blogs on SDN. I
have added some of the them in the reference section below.
Solution – Creating a Logical Port using Manual Configuration
Please follow the basic steps listed here to start the
Execute transaction SOAMANAGER,
select tab “Application and Scenario Communication”.
Select link “Single Service Administration”.
Select your consumer proxy and click on apply selection.
Click on the button Create Logical port, input a technical name and description.
Select the Manual Configuration radio button and select Next
Overview
The logical port maintenance transaction has five tabs. For
manual configuration, you are required to configure fields in the three tabs
shown in Figure 1 below.
Messaging Tab
The only field that needs to be changed is Message ID
Protocol. Since the web service doesn’t require Userid / password, the field
should be set to “Suppress ID Transfer”.
Figure 1: Over view screen and Messaging tab settings
Transport Settings Tab
This tab is used to specify the location of the web service
and the transfer protocol (HTTP or HTTPS). The fields highlighted in Figure 2
below need to be configured.
Figure 2: Transport Settings
tab
Operation Specific Tab
This tab links the operations of the web service to its
action. To complete this task, you will need to look at the WSDL of the web
service. Search for <soap action..> tag.
Figure 3: Operation Specific tab settings
Open the WSDL and look for soapAction for each operation of
the operation. You will see operation names automatically populated on the
left. Select each operation and populate the SOAP Action field on the right
with the value from the WSDL.
Example WSDL
<wsdl:operation
name=”GetCityForecastByZIP“>
<soap:operation soapAction=”http://ws.cdyne.com/WeatherWS/GetCityForecastByZIP“ style=”document” />
So for the example WSDL above, operation “GetCityForecastByZIP”
should get the SOAP action value of “http://ws.cdyne.com/WeatherWS/GetCityForecastByZIP“
Once you have assigned SOAP action for all the operations
click Save to activate the Logical Port binding. You should be able to test
your consumer proxy now using the newly created port.
h2. Conclusion
Being able to configure a Logical port using manual configuration can help you keep making progress in your development effort, while the basis team resolves HTTP error in the URL based configuration process.
SOAMANAGER help: http://help.sap.com/saphelp_nw70/helpdata/EN/b0/787748cf3a4200bb1ba32a62aa8519/frameset.htm
Consuming web service in ABAP – See my earlier blog Consuming Webservices with tag in WSDL using ABAP on consuming web services with tag if you are having trouble with consumer proxy. Other links – Consuming Services with ABAP, http://help.sap.com/saphelp_nw70/helpdata/en/47/3a989cbcef2f35e10000000a1553f6/frameset.htm
XML to ABAP and ABAP to XML Transformation – http://help.sap.com/saphelp_nw70/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm
Other folks with HTTP error – [Error in Logical Port Creation | Error in Logical Port Creation]
Thanks to Todd Miller and Ali Mohammed in helping me find the right combination of settings to make this work.
FollowLikeRSS Feed
Configuring the web service in the SOA Manager of SAP
Check whether the web service is active and specify your SAP logon credentials.
Procedure
In the SAP GUI, enter the transaction code SE84 to open the Object Navigator window.
Expand Enterprise Services and then double-click Service Definitions.
The Repository Info System: Find Service Definition window opens.
ZXFT_DCC_BAPI
Click the Execute icon . Then, double-click ZXFT_DCC_BAPI.
The Display Service Definition window shows the details for your web service. Check whether your web service has the state “Active”.
Enter the transaction code SOAMANAGER and then log on to SAP NetWeaver to open the SOA Management window.
On the Service Administration page of the SOA Management window, click the Web Service Configuration link.
Search for the web service that you created.
For example, type ZXFT_DCC* in the Search Pattern field and then click Go.
The web service that you created is added to the Search Results table.
Click the entry and then click Apply Selection.
On the Overview page of the Details of Service Definition window, select the appropriate binding.
If the binding does not exist, create it.
On the Configurations page of the Details of Service Definition window, click the web service and then click Create.
In the SOA Management window that opens, complete the required information. Then, click Apply Settings.
On the Configurations page of the Configuration of Web Service window, click Edit.
On the Provider Security page of the Configuration of Web Service window, specify the following information:
Under Transport Guarantee Type, click None.
An HTTPS connection is not supported.
Under Authentication Settings, select the No Authentication check box.
Click Save.
Return to the Details of Service Definition window. On the Overview page, click the Open WSDL document for selected binding or service link.
Results
After you log on, the Web Services Description Language (WSDL) document opens. The following figure shows the example contents of the WSDL document:Figure 1. Example contents of the WSDL document
At the end of the document, you find the URL and the port of your web service. You must specify this information in the instance configuration.
Configuring for linking documents and folders directly to an SAP business object
Deploying the web service for the xft document connector