Jump to content
Welcome to our new Citrix community!

Facing Problem in Rewrite URL/Transform for SOAP Requests


Recommended Posts

Hello Team,

 

I am trying to create a URL transform for a SOAP request.

Whatever i am trying , i am getting HTTP 400 Bad request or HTTP 404 .

Request hitting the Vserver:

POST https://example.com/xyzyu-admin/DataIntegrationService/WebService/Web_Service_Interactive_Multiline

Accept: */*' 
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/xml
Host: example.com
Postman-Token: xymbasklnalskncllknlkn/lsnc/laknsc/lknsc
User-Agent: PostmanRuntime/7.15.0
accept-encoding: gzip, deflate
cache-control: no-cache
content-length: 746

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://www.information.com/dis/ws/">
    <soapenv:Header/>
    <soapenv:Body>
        <ws:mplt_AD_Interactive_Multiline_Operation>
            <ws:INPUT_Address_Validator_Inputs>
                <ws:AddressLine1>Optional</ws:AddressLine1>
                <ws:AddressLine2>Optional</ws:AddressLine2>
                <ws:AddressLine3>Optional</ws:AddressLine3>
            </ws:INPUT_Address_Validator_Inputs>
        </ws:mplt_AD_Interactive_Multiline_Operation>
    </soapenv:Body>
</soapenv:Envelope>
 

Transformed URL : POST  https://back-endserver dns:18095/DataIntegrationService/WebService/Web_Service_Interactive_Multiline

Accept: */*' 
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/xml
Host: back-endserver dns:18095
Postman-Token: xymbasklnalskncllknlkn/lsnc/laknsc/lknsc
User-Agent: PostmanRuntime/7.15.0
accept-encoding: gzip, deflate
cache-control: no-cache
content-length: 746

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://www.informatiion.com/dis/ws/">
    <soapenv:Header/>
    <soapenv:Body>
        <ws:mplt_AD_Interactive_Multiline_Operation>
            <ws:INPUT_Address_Validator_Inputs>
                <ws:AddressLine1>Optional</ws:AddressLine1>
                <ws:AddressLine2>Optional</ws:AddressLine2>
                <ws:AddressLine3>Optional</ws:AddressLine3>
            </ws:INPUT_Address_Validator_Inputs>
        </ws:mplt_AD_Interactive_Multiline_Operation>
    </soapenv:Body>
</soapenv:Envelope>

 

The headers we receive in the request along with SOAP request should go as it is on the backend except which should change to "back-endserverdns:8095" .

 

Do we need to tweak something else or some special configuration is there for SOAP requests on adc that we have to enable.

Also i do not see any http request from ADC SNIP to the back-end server so that we can identify what exact HTTP request we are sending on the back-end server and accordingly modify the rewrite/url transform.

Link to comment
Share on other sites

Hi Deepak,

 

I'm guessing you need to rewrite the host header so the backend actually accepts the traffic? You don't need to transform in that case, you can use a simple rewrite for this on the LB. There's actually an example config of this on the docs site at https://docs.citrix.com/en-us/citrix-adc/current-release/appexpert/rewrite/rewrite-action-policy-examples/example-12-rewrite-hostname-url-client.html (just disregard the url rewrite stuff and only do the host header rewrite).

 

Cheers,

G.

Link to comment
Share on other sites

Thanks @Gunther De Poortere.I have tried only host rewrite as well.

But here see the difference in the request to the back-end.

Incoming request https://example.com/xyzyu-admin/DataIntegrationService/WebService/Web_Service_Interactive_Multiline

Request going the back-end https://back-endserver dns:18095/DataIntegrationService/WebService/Web_Service_Interactive_Multiline

 

Simply host rewrite not working.Looks like the path also needs to be changed while sending it to back-end as we need to remove xyzyu-admin from th path while sending the request back to the server.

 

Also front end is ssl on 443 and back-end server is SSL on port 18095

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...