Recently replaced a legacy SOAP application with REST service (Rest service is hosted in apigee; SOAP service is not). Would like to create a SOAP proxy in apigee that takes the incoming SOAP call, converts it to REST, then converts the rest response to SOAP for the reply.
Example:
In coming SOAP request -
<LookupDetails> <MethodParameters> <request> <IdentificationNumber>12345678</IdentificationNumber> <RequestingUserName>USER</RequestingUserName> <RequestingUserPassword>PASSWORD</RequestingUserPassword> <RequestingUserClient>CLIENT</RequestingUserClient> <RequestingUserRole isNull="false"/> <APIKEY isNull="false"/> </request> </MethodParameters> </LookupDetails>
Need the proxy to validate the user name and password then convert request to REST and do a post to my existing REST API with the request body below.
<Search xmlns="http://schema.search.com"> <Fields> <string>DetailList</string> </Fields> <Id> <string>12345678</string> </Id> </Search>
I would appreciate any assistance you can provide.
Solved! Go to Solution.
Yes, this is a really common thing to do with Apigee Edge.
If you give me the REAL soap message, I can produce an example that does basically what you want, I think.
If you'd prefer to do it yourself, then here's what I suggest:
This is basically the reverse of the "SOAP-to-REST proxy" pattern, something that is done really commonly in Apigee Edge.