Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Connector Development
Unanswered

Need Help in passing UsernameToken in custom Connector for SOAP based web service

(0) ShareShare
ReportReport
Posted on by 6

Hi All,

 

I have created a custom connector using postman collection for calling SOAP based web services hosted on-premise, the webservice requires the Usernametoken so I am passing this under body of the payload under <soapenv:Header> under below webservice security tag 

          <wsse:UsernameToken wsu:Id="UsernameToken-16" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
             <wsse:Username>***</wsse:Username>
             <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">***</wsse:Password>
     </wsse:UsernameToken>
      </wsse:Security>
</soapenv:Header>
 
The problem here is I need to pass the username and password openly in the body of the payload which is visible, I tried to use basic authentication instead of WSS then it shows the Username token is missing.
 
Could you please tell me how can I make it secure/encrypt so that password and username should not be visible. I am trying to write custom code in the connector but not able to get it correctly, any help will be appreciated
Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics