cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP and HTTP adapter

Former Member
0 Kudos

Hi,

I want to clear my basic queries on SOAP and HTTP adapters.

1. What is the difference between SOAP and HTTP adapters, and in which scenario do we choose what.

2. My scenario is HTTP(HTTPs without client authentication) to File scenario, in my sender HTTP url which port is to be considered, HTTP port or PI port?

    PI version is 7.0

3. Also in the url-query string do we have to replace special characters with escape characters?

   If yes why do we have to do this?

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Riya,


1. What is the difference between SOAP and HTTP adapters, and in which scenario do we choose what.

The main difference is that SOAP adapter has more tags to define parts of a XML. SOAP is a  message protocol that generally uses HTTP like transport protocol, in other way you can see it like evolutioned http. SOAP is a wide-used protocol, if you want to consume/expose WSDL you should use SOAP adapter. One nice analogy, HTTP is the truck which carry the package (SOAP), http itself has sense to be use when you dont want an extra tags and you want a simpler communication, however you want a nice package to assure and track better your things you would use a SOAP adapter.


2. My scenario is HTTP(HTTPs without client authentication) to File scenario, in my sender HTTP url which port is to be considered, HTTP port or PI port?

The PI port opened in the PI ICM for HTTP connections. Go to to ICM transaction in the abap side and there you go to the ports to find the http port opened.


3. Also in the url-query string do we have to replace special characters with escape characters?

   If yes why do we have to do this?

Because not all characters all allowed in a URL because they have a another meaning for http communication definition or because they weren´t stipulated when the URL definition was determinate. The question is that if you want avoid this you would define characters without this problem, in Spain for example we have the Ñ, in my name too , and i always try to omit  when i define a URL parameter.

Hope this helps.

Regards.

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Riya,


1. What is the difference between SOAP and HTTP adapters, and in which scenario do we choose what?

Just finished this diagram, it's been a while since I've last used PI 7.0. So if you find anything wrong, please do not hesitate to correct me

Some comments:

1. Under the message protocol, SOAP adapter uses a SOAP Envelope for its message while HTTP adapter just puts the message in the HTTP Body.

2. NA is not supported

3. SOAP Sender attachments are only retained when sent to the adapter engine, propose URL will not work with attachments

4. PI 7.0 can only manipulate attachments via adapter module

The greatest advantage of the SOAP adapter is in the use of adapter modules and it can also run in nosoap mode.


2. My scenario is HTTP(HTTPs without client authentication) to File scenario, in my sender HTTP url which port is to be considered, HTTP port or PI port?

The port that will be used can be found in SMICM -> Services (Shift + F1). Usually, it is in the form 5xx00 where xx is the instance number.


3. Also in the url-query string do we have to replace special characters with escape characters?

Answered by

Hope this helps,

Mark

Former Member
0 Kudos

Do we use the same port for http sender url which we use in soap url?

rhviana
Active Contributor
0 Kudos

Yes Riya.

You must use the same port configuration in SAP PI SLD.

Normally is 5$$00 - Java port.

Or you can send the message direct to integration engine via 80$$ port.

Integration engine will accept connection HTTP/HTTPS and SMTP.

Regards,