Forward SOAP request using YARP. #2216
-
Appreciate if some one can help me with this. I'm trying to forward a request to SOAP service web method and can't find any reference on how to do this. The SOAP service has username and password headers included. SOAP request looks like below Service Url (example): "https://wwww.sample.asmx" Need help in how to configure so the request can send to soap service test method. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
SOAP -> YARP -> SOAP? That should just work, YARP only looks at the outer HTTP. Or do you need to re-write the request body / SOAP message to add these fields? That's harder. https://microsoft.github.io/reverse-proxy/articles/transforms.html#request-body-transforms |
Beta Was this translation helpful? Give feedback.
SOAP is sent as HTTP to YARP, it doesn't require any special handling. To modify the body of the request (the SOAP message) see:
https://microsoft.github.io/reverse-proxy/articles/transforms.html#request-body-transforms shows how to buffer the request body and replace it. To modify it in the middle you could use an XML parser.