Question
capgemini
FR
Last activity: 30 May 2022 11:14 EDT
Soap envelope in Connect-Restt
Hi,
SOAP connectors do not support OAuth 2.0 authentication. To configure OAuth 2.0 authentication for your SOAP connector, "send your SOAP envelope over a REST connector."
who can explain how to "send SOAP envelope over a REST connector." ?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 30 May 2022 11:14 EDT
Pegasystems Inc.
GB
@AchrefM7 your question has been discussed with our SME's and I can provide you with the below information:
As the documentation Configuring the connection for a Connect SOAP rule highlights, the combination of OAuth2.0 with SOAP connector is not available OOTB.
I have split your forum post into two distinct questions:
- how to "send SOAP envelope over a REST connector."
>> Answer: For this there is no OOTB configuration. Suggestion for instruction “SOAP envelope over REST connect” to use oauth2,
- Create Connect-REST pointing to SOAP/HTTP endpoint of the external SOAP service, write custom logic to create SOAP envelope (soap xml) and use pyInvokeRestConnector activity , set the soap xml as http POST body and trigger the activity.
- Additionally if user wants above REST call to be secured by oauth2, then add a OAuth2.0 authentication profile to Connect-REST configuration.
- Question can we add oauth 2.0 to SOAP service?
>>Answer: No OOTB configuration for this, but a similar strategy to above can be used
@AchrefM7 your question has been discussed with our SME's and I can provide you with the below information:
As the documentation Configuring the connection for a Connect SOAP rule highlights, the combination of OAuth2.0 with SOAP connector is not available OOTB.
I have split your forum post into two distinct questions:
- how to "send SOAP envelope over a REST connector."
>> Answer: For this there is no OOTB configuration. Suggestion for instruction “SOAP envelope over REST connect” to use oauth2,
- Create Connect-REST pointing to SOAP/HTTP endpoint of the external SOAP service, write custom logic to create SOAP envelope (soap xml) and use pyInvokeRestConnector activity , set the soap xml as http POST body and trigger the activity.
- Additionally if user wants above REST call to be secured by oauth2, then add a OAuth2.0 authentication profile to Connect-REST configuration.
- Question can we add oauth 2.0 to SOAP service?
>>Answer: No OOTB configuration for this, but a similar strategy to above can be used
- Create Connect-SOAP pointing to SOAP/HTTP endpoint of the external SOAP service, write custom logic to get oauth2 access token (more like implement & manage oauth2 by yourself) and use pyInvokeAxis2 activity, set the access token as http-header ‘authorization bearer <access token>’ and trigger the activity.
If you were using Pega 8.6.3, 8.6.4, or 8.7.1 versions, then you would be able to use an OAuth2 auth profile with a SOAP connector.
If that’s not an option, we have attached a doc which outlines the basic config steps for making SOAP calls over REST.
See attached.
We will be sure to update the documentation to further clarify this in future.
Pegasystems Inc.
GB
@AchrefM7 can you tell us where you saw that statement?
Could you take a look at these documents?
Configuring the request for a Service SOAP rule
Configuring the response for a SOAP connector
REST and SOAP integration services
There are some other forum questions about this:
Issue with SOAP Request Envelope
Other users on the forum will hopefully be able to provide you with further examples.
-
Achref Mabrouk
capgemini
FR
@MarijeSchillern thanks for your response
the statement appear in this Link Below :
Configuring the connection for a Connect SOAP rule | Pega
I want to know if i can add oauth 2.0 to SOAP service
Updated: 27 May 2022 7:16 EDT
Pegasystems Inc.
GB
OAuth (grants & access token) and SOAP(WS-Security) have different ways of defining security. While there is nothing like OAuth for SOAP as a standard, OAuth tokens can used with any REST compliant call.
Is it not similar to the previous documents and this post Connect Soap with OAuth2.0 and this post Connect Soap with OAuth2.0 in Pega 8.2 Version
What is the exact customization you are trying achieve ?
Does the article embedded within the original documentation not answer the question?
Creating a REST integration by using the Create REST integration wizard
I have requested that an SME takes a look at your post and see if they can help you further.
Accepted Solution
Updated: 30 May 2022 11:14 EDT
Pegasystems Inc.
GB
@AchrefM7 your question has been discussed with our SME's and I can provide you with the below information:
As the documentation Configuring the connection for a Connect SOAP rule highlights, the combination of OAuth2.0 with SOAP connector is not available OOTB.
I have split your forum post into two distinct questions:
- how to "send SOAP envelope over a REST connector."
>> Answer: For this there is no OOTB configuration. Suggestion for instruction “SOAP envelope over REST connect” to use oauth2,
- Create Connect-REST pointing to SOAP/HTTP endpoint of the external SOAP service, write custom logic to create SOAP envelope (soap xml) and use pyInvokeRestConnector activity , set the soap xml as http POST body and trigger the activity.
- Additionally if user wants above REST call to be secured by oauth2, then add a OAuth2.0 authentication profile to Connect-REST configuration.
- Question can we add oauth 2.0 to SOAP service?
>>Answer: No OOTB configuration for this, but a similar strategy to above can be used
@AchrefM7 your question has been discussed with our SME's and I can provide you with the below information:
As the documentation Configuring the connection for a Connect SOAP rule highlights, the combination of OAuth2.0 with SOAP connector is not available OOTB.
I have split your forum post into two distinct questions:
- how to "send SOAP envelope over a REST connector."
>> Answer: For this there is no OOTB configuration. Suggestion for instruction “SOAP envelope over REST connect” to use oauth2,
- Create Connect-REST pointing to SOAP/HTTP endpoint of the external SOAP service, write custom logic to create SOAP envelope (soap xml) and use pyInvokeRestConnector activity , set the soap xml as http POST body and trigger the activity.
- Additionally if user wants above REST call to be secured by oauth2, then add a OAuth2.0 authentication profile to Connect-REST configuration.
- Question can we add oauth 2.0 to SOAP service?
>>Answer: No OOTB configuration for this, but a similar strategy to above can be used
- Create Connect-SOAP pointing to SOAP/HTTP endpoint of the external SOAP service, write custom logic to get oauth2 access token (more like implement & manage oauth2 by yourself) and use pyInvokeAxis2 activity, set the access token as http-header ‘authorization bearer <access token>’ and trigger the activity.
If you were using Pega 8.6.3, 8.6.4, or 8.7.1 versions, then you would be able to use an OAuth2 auth profile with a SOAP connector.
If that’s not an option, we have attached a doc which outlines the basic config steps for making SOAP calls over REST.
See attached.
We will be sure to update the documentation to further clarify this in future.
-
Krishna Chaitanya Abburi
capgemini
FR
@MarijeSchillern thanks for your response again .
can you please resend the file that contain the basic config steps for making SOAP calls over REST. i can't download it . thnx in advance
Updated: 30 May 2022 11:14 EDT
Pegasystems Inc.
GB
@AchrefM7 attached again. Your browser should be set to allow automatic download