cancel
Showing results for 
Search instead for 
Did you mean: 

soap and http

Former Member
0 Kudos

i want to know http and soap scenarios plz explain me in some steps of whole process.

dont post links please

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member537867
Active Contributor
0 Kudos

Hi,

1. Webservice is a remote application which is available in the Web.

2. XI communicates with Webservice by using SOAP adapter.

3. XI can send data to Webservice and can receive data from it.

For this web services WSDL file will be provided by the client or some times it will be created in XI.So totally we can say it depends on requirement.

WSDL describes a particular web service. Using a wsdl, we are requesting the broker to point the exact system, application, message interface. Once it is found, the SOAP channel is opened between the provider and the consumer. So the WSDL is a must to access webservices.

In XI, we have to define the Web service which we want to use for the Sender SOAP channel.

It is done by choosing Define Web Service from the tool menu of Integration Directory.

Steps to create the WSDL in the Integration Directory:

1. Go to Tools  DefineWebService….

2.A wizard will be open and click on continue

3.A new window will be opened

Specify the URL of the web service and click on continue

If SOAP adapter channel belongs to service with party the address is as follows.

http://<host>:<j2eeport>/XISOAPAdapter/MessageServlet?channel=<party>:<service>:<channel>;

If SOAP adapter channel belongs to service without party the address is as follows

http://<host>:<j2ee-port>/XISOAPAdapter/MessageServlet?channel=:<service>:<channel>;

4. Click on continue a new window will be open, give the message interface name (outbound) and continue.

5.Give service name, Interface name, Interface Namespace and click on continue

6.and click on finish to create the Web Service Document

7.A WSDL file will be created

8.you can also save the WSDL file created, to save the WSDL file click on the save button

9.A new pop up will be opened, specify the location where you want to save the WSDL file.

The WSDL file created in the Integration Directory can be provided to the web service developer to create the web service

There is no need to code any thing. Here, what you are doing is, just exposing the sender service,channel,Message Interface as a web service.

In XI, we need to map the incoming messages to the target message( to the actual web service from the provider) format and to maintain the technical and logical routing between the sender and receiver.

Regards,

Vinod.

former_member238007
Contributor
0 Kudos

Hi

SOAP Adapter...

The SOAP adapter enables you to exchange SOAP messages between remote clients or Web service servers and the Integration Server.

Example of using SOAP Adapter..

A remote client sends a SOAP message to the SOAP adapter on the Integration Server. The SOAP adapter converts the SOAP message to XI message protocol and transfers it to the Integration Server for further processing. Two receivers are determined:

u2022A remote Web services provider

u2022An SAP business system, which is able to receive XI message protocol directly

On the receiver side, the SOAP adapter converts the XI message protocol into a SOAP message and then sends the message to the remote Web services provider. The other receiver simply receives the XI message protocol message.

regards,

Kishore

former_member537867
Active Contributor
0 Kudos

Hi,

Following are steps for SOAP scenario:

WebService(SOAP) <> XI <> RFC (BAPI)

A WebService which is already defined, used to Create PO in R/3 System and get confirmation Number as Response back. It Totally Sync Scenario. Following bapi is used Z_BAPI_POrder_Insert

Procedure

In R/3

1.Create RFC Destination in R/3 to XI System of Type TCP/IP with ProgramID option

in I.R

2.Import RFC Z_BAPI_POrder_Insert

3.Import WSDL into External Definitions

4.Create Message Mappings (Two Required)

5.Create Interface Mapping (One)

6.Activate I.R

I.D >>

7.Create Scenario

8.Assign Business Systems

9.Create Sender Comm Channel

SOAP

Default Interface Namespace

Default Interface Name

10.Create Receiver Comm Channel

RFC

Application System

System Number

R/3 Login Details

11.Create Sender Agreement, Receiver Determination, Interface Determination and Receiver Agreement.

Following are the steps for Http to file scenario:

If you want to pass some content from your HTTP client into a File then ...

DESIGN.

1. Create DataTypes for source and Destinations. Create elements for all the text fields of your HTTP Client so that they can all be mapped into the destination file

2. Craate MessageTypes for the two datatypes.

3.Create Message Interfaces. the One for HTTP is the sender, Asynchronous ( as no response is expected) and one for File is receiver, asynchronous.

4. Do the mapping. It will be mostly a one to one mappingof the fields.

5.Create the Interface Mapping.

Configuration

1. Import your Business System under your Configuration Scenario.

2.Create 2 communication channels. One for Http as a sender and one for File as a receiver.

check these links for the confiuration part.

http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

3.Do the Receiver Agreement for file. HTTP doesnt need a sender agreement.

4.DO the Receiver Determination and Interface Determination.

Regards,

Vinod.

Former Member
0 Kudos

Hi,

who will design webservice and how to design webservice

Former Member
0 Kudos

it depends... someone from appilcation system team can do it..

for soap sender.. you can create a WSDL from ID--> Tools and give it to the application system team to consume it. they can then send soap msgs to XI if proper configs are done.

for receiver, you can be given WSDL url and can use it in XI...

Former Member
0 Kudos

>>dont post links please

one quick thot....y?

there are actually good weblogs/forum discussions that explain things in detail...and then u can ask your specific doubts... )

Former Member
0 Kudos

reason is i can search for the blogs but i need explanation in simple steps of any of the blogs if you can

Former Member
0 Kudos

see...in simple terms... if you want to exchange SOAP messages between any web services or remote clients you use SOAP adatpter you configure the adapter and routing rules in XI.

i would still suggest you go thru:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873...

it gives step by step solution.

however if you want to send a plain http response to a system or process an http request, you use HTTP adapter.

there can be various examples for such a requirement...like

hope it helps you!

former_member238007
Contributor
0 Kudos

Hi..

For HTTP Adapters see this

http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm

and for SOP Adapters see this links...

SOAP Scenarios

- Invoke Webservices using SAPXI

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken]

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-

a651295aeaa9

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-

a651295aeaa9

regarding HTTP* Errors

How to call web service..

http://help.sap.com/saphelp_nw04/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/content.htm

regards,

Kishore

Former Member
0 Kudos

HI,

RFC -> SOAP

You can also refer this document and its really good

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873...

-->HTTP

-->HTTP Errors

Also, check these