Skip to content

Instantly share code, notes, and snippets.

@madushadhanushka
Created December 17, 2020 08:23
Show Gist options
  • Save madushadhanushka/3519aba32158c66ca72652ac114cd5d0 to your computer and use it in GitHub Desktop.
Save madushadhanushka/3519aba32158c66ca72652ac114cd5d0 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?><proxy xmlns="http://ws.apache.org/ns/synapse" name="NTLMProxy" transports="http https" startOnLoad="true">
<description/>
<target>
<inSequence>
<NTLM username="wso2" password="wso2" host="localhost" domain="DESKTOP-XXXXX" ntlmVersion="v2"/>
<call blocking="true" initAxis2ClientOptions="false">
<endpoint>
<address uri="http://localhost/WcfService1/Service1.svc/test"/>
</endpoint>
</call>
<log level="full"/>
<respond/>
</inSequence>
</target>
</proxy>
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse" name="NTLMProxy" transports="http https" startOnLoad="true">
<description/>
<target>
<inSequence>
<NTLM username="wso2" password="wso2" host="localhost" domain="DESKTOP-XXXXX" ntlmVersion="v2"/>
<header name="Action" value="http://tempuri.org/IService1/ResponseFromNTLMservice" />
<call blocking="true" initAxis2ClientOptions="false">
<endpoint>
<address uri="http://localhost/WcfService1/Service1.svc/test"/>
</endpoint>
</call>
<log level="full"/>
<respond/>
</inSequence>
</target>
</proxy>
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse" name="NTLMProxy" transports="http https" startOnLoad="true">
<description/>
<target>
<inSequence>
<NTLM username="wso2" password="wso2" host="localhost" domain="DESKTOP-XXXXX" ntlmVersion="v2"/>
<call blocking="true" initAxis2ClientOptions="false">
<endpoint>
<address uri="http://localhost/Service1.svc/hello/kl"/>
</endpoint>
</call>
<log level="full"/>
<respond/>
</inSequence>
</target>
</proxy>
<?xml version="1.0" encoding="UTF-8"?><proxy xmlns="http://ws.apache.org/ns/synapse" name="NTLMProxy" transports="http https" startOnLoad="true">
<description/>
<target>
<inSequence>
<NTLM username="wso2" password="wso2" host="localhost" domain="DESKTOP-XXXXX" ntlmVersion="v2"/>
<callout serviceURL="http://localhost/WcfService1/Service1.svc/test" action="http://tempuri.org/IService1/ResponseFromNTLMservice"
initAxis2ClientOptions="false">
<source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s12="http://www.w3.org/2003/05/soap-envelope" xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
<target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s12="http://www.w3.org/2003/05/soap-envelope" xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
</callout>
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
<respond/>
</inSequence>
</target>
</proxy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment