cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Sender - HTTP & HTTPS ports

Former Member
0 Kudos

Hi All,

I am working on SOAP to RFC Synchronous scenario on SAP PI 7.31 AEX.

I have shared SAP PI Webservice (and .wsdl file) with the 3rd party team who'll consume it in their Java Client Project.

In SAP PI webservice signature, there are 2 SOAP addresses/locations showing up (HTTP-50000 and HTTPS-50001).

When the 3rd party trying to consume SAP PI webservice, it shows by default endpoint as HTTPS-50001 and hence the SOAP request hits on HTTPS URL and gives error. 3rd party team has to manually add/change the endpoint as HTTP-50000 and then send the SOAP data and then it reaches SAP PI.

When I test it using SOAPUI tool, it runs perfectly by taking port/endpoint as HTTP-50000.

My question is -> For SOAP Adapter, port/endpoint has got set as HTTPS-50001 by default somewhere in PI-NWA or PI-Administration?

Thanks,

Amit Patil

Accepted Solutions (0)

Answers (2)

Answers (2)

tharaka_fernando
Contributor
0 Kudos

Hi Amit,

Azhar is correct ..Change the settings according to your requirement.

Thanks

Tharaka

Former Member
0 Kudos

Hi Tharaka,

Below are my current settings;

What should I change?

Thanks,

Amit Patil

RaghuVamseedhar
Active Contributor
0 Kudos

Amit,

When sender channel is HTTP, SOAP, XI and WS. SAP PI will expose web-service. We can get WSDL in sender agreement. This web-service can be consumed using http and https port.

In SOAPUI, there is drop down after http link, to select https. SOAPUI can post to both http and https.

In short, It is client (requester) choice to hit http or https port. I think, there is no configuration to be done in PI.

Former Member
0 Kudos

Hello,

Not sure how ur java application has been written but generally there is config file in java project where u can mention the PI endpoint URL which is called by default when the application is invoked.

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi Raghu,

In SOAPUI, it takes HTTP-50000 port/endpoint as a default port/endpoint to push the SOAP request and then SAP PI webservice works perfectly when I push data to HTTP-50000 port/endpoint.

But when I manually change the port/endpoint to HTTPS-50001 in SOAPUI and push data to HTTPS-50001 port/endpoint, it doesn't show anything. Even the SOAP request doesn't reach SAP PI.

What may be the reason for the same???

And in 3rd party's Java Application, when they try and consume SAP PI webservice, it takes HTTPS-50001 an a default port/endpoint. Hence they doesn't work. And then they manually change the port/endpoint to HTTP-50000 and then it works.

They are all also finding the work-around for this issue.

Can we remove the HTTPS-50001 port/endpoint from the SAP PI webservice in any way??? Will it work then???

Thanks,

Amit Patil

RaghuVamseedhar
Active Contributor
0 Kudos

Amit,

Why https in SOAPUI is not working?

Certificate needs to be used in SOAPUI. More info What is HTTPS? - YouTube

Can we remove https in PI web-service (WSDL)?

No.

Solution?

Client (3rd party Java requester) has to point to http OR use certificates and post on https.

Former Member
0 Kudos

Hi Raghu,

Private key certificates need to be imported to SOAPUI, while testing on HTTPS port/endpoint.

But from where(which path) would I get/download these certificates? And which certificates?

Thanks,

Amit Patil

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Amit,

If you are trying to connect to HTTPS you have 2 option :

1.With UserID/Passowrd : U need to provide userid and passowrd for external system to connect to your PI system through HTTPS . Before that in communication you need to chosse option HTTPS WITHOUT CLIENT AUTHENTICATION in your comm channel.

Get in touch with you security team to get userid/passowrd.

2.With Certificates : In this case you need to provide Certificates get in touch with Basis team they will genrate Private and Public key certificates and provide you which you need to share with third party . but in this case you need to choose HTTPS WITH CLIENT AUTHENTICATION in you comm channel.

azharshaikh
Active Contributor
0 Kudos

Hello Amit,

Please check if your Sender SOAP CC is using HTTP protocol.

Regards,
Azhar

Former Member
0 Kudos

Hi Azhar,

Below are my configs in SOAP sender adapter;

Adapter Type - SOAP

Transport Protocol - HTTP

Message Protocol - SOAP 1.1

HTTP Security/Level - HTTP

Thanks,

Amit Patil

azharshaikh
Active Contributor
0 Kudos

Hi Amit,

Seems some issue at their end/tool....Did you ask them to trigger using SOAP UI tool and check if same error persists.

Regards,
Azhar

Former Member
0 Kudos

Hi Azhar,

Using SOAPUI, I'm able test the PI webservice successfully which only takes HTTP-50000 port as an default end-point.

But when try and consume the PI webservice in their Java Code, it is taking HTTPS-50001 port an default end-point.

So is there place SAP PI(NWA or Administartion or somewhere else) where it is defaulted as HTTPS-50001 port as an end-point fpr PI webservice?

Thanks,

Amit Patil