How to consume a SOAP web service in 0365/Sharepoint online.

%3CLINGO-SUB%20id%3D%22lingo-sub-377140%22%20slang%3D%22en-US%22%3EHow%20to%20consume%20a%20SOAP%20web%20service%20in%200365%2FSharepoint%20online.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377140%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20all!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20scoured%20the%20web%20for%20hours%20and%20today%20and%20cannot%20seem%20to%20find%20an%20appropriate%20answer%20to%20the%20problem%20I%20am%20trying%20to%20solve.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20eternal%20soap%20api%2Fweb%20service%20that%20I%20am%20trying%20to%20grab%20data%20from%20located%20at%3A%20%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fapi.com%2Fservice.svc%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fapi.com%2Fservice.svc%3C%2FA%3E%3C%2FSTRONG%3E%26nbsp%3Band%20I%20cannot%20for%20the%20life%20of%20me%20find%20help%20on%20how%20to%20set%20up%20a%20service%20or%20add%20in%20to%20consume%20that%20data.%20Everything%20I%20seem%20to%20find%20points%20me%20to%20client-side%20rest%20calls%20that%20won't%20work%20for%20this%20non-CORS%20api.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20an%200365%20developer%20account%2C%20visual%20studio%2C%20and%20am%20ready%20to%20build%20an%20add-in%20or%20whatever%20I%20need.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-377897%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20consume%20a%20SOAP%20web%20service%20in%200365%2FSharepoint%20online.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377897%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F303924%22%20target%3D%22_blank%22%3E%40westside47%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20how%20I'd%20probably%20tackle%20it...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStep%201%3A%20Build%20an%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Fquickstart-v1-dotnet-webapi%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20AD%20Secured%20Web%20API%3C%2FA%3E%26nbsp%3Bwrapper%20around%20the%20Soap%20Service%3C%2FP%3E%3CP%3E-%20Use%20.NET%20or%20Node%20to%20connect%20to%20the%20Soap%20Service%20using%20a%20Service%20Account%3C%2FP%3E%3CP%3E-%20Exposes%20your%20SOAP%20data%20via%20Restful%20API%20over%20HTTP%3C%2FP%3E%3CP%3E-%20Requires%20an%20Azure%20AD%20access%20token%3C%2FP%3E%3CP%3E-%20Supports%20Cross%20Origin%20Resource%20Sharing%20(CORS)%3C%2FP%3E%3CP%3E-%20Azure%20Functions%20are%20my%20goto%20for%20this%20scenario%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStep%202%3A%20Create%20an%20SPFx%20Customization%20that%20consumes%20your%20Azure%20AD%20Web%20API%3C%2FP%3E%3CP%3E-%20Follow%20the%20docs%20on%20how%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fuse-aadhttpclient%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Econnect%20to%20an%20Azure%20AD%20Secured%20API%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hey all!

 

I have scoured the web for hours and today and cannot seem to find an appropriate answer to the problem I am trying to solve. 

 

I have an eternal soap api/web service that I am trying to grab data from located at: https://api.com/service.svc and I cannot for the life of me find help on how to set up a service or add in to consume that data. Everything I seem to find points me to client-side rest calls that won't work for this non-CORS api.

I have an 0365 developer account, visual studio, and am ready to build an add-in or whatever I need.

1 Reply

@westside47 

Here's how I'd probably tackle it...

 

Step 1: Build an Azure AD Secured Web API wrapper around the Soap Service

- Use .NET or Node to connect to the Soap Service using a Service Account

- Exposes your SOAP data via Restful API over HTTP

- Requires an Azure AD access token

- Supports Cross Origin Resource Sharing (CORS)

- Azure Functions are my goto for this scenario

 

 

Step 2: Create an SPFx Customization that consumes your Azure AD Web API

- Follow the docs on how to connect to an Azure AD Secured API