Hello again

I've updated "Proxy-Authorization" to just "Authorization"

Along with "expression"first update

It is working now

Thks!!
Best Regards

Em sex., 6 de mar. de 2020 às 12:11, Waqas Ali Razzaq <
waqasaliraz...@gmail.com> escreveu:

> Hi  Eric,
>
> I guess you have an issue with your *Proxy-Authorization *property. You
> have to use expression instead of value. Try below.
>
> <property name="Proxy-Authorization" scope="transport"
> type="STRING"  expression="fn:concat('Basic ', base64Encode('id:pwd'))"/>
>
> Thanks & Kind regards,
> *Waqas Ali Razzaq*
>
>
>
>
> On Fri, Mar 6, 2020 at 3:31 PM Érico <erico...@gmail.com> wrote:
>
>> Hello
>> Please, I need to access a SAP RFC through WSO2
>> The RFC is exposed on the path:
>> http://srv:8000/sap/bc/soap/wsdl?sap-client=500&amp;services=Z_name
>>
>> I have created a Proxy in WSO2 Enterprise Integrator (6.4.0) with the
>> following:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <proxy xmlns="http://ws.apache.org/ns/synapse";
>>        name="Proxy_SAP_RFC_Zsample"
>>        startOnLoad="true"
>>        statistics="disable"
>>        trace="disable"
>>        transports="http">
>>    <target>
>>       <inSequence>
>>          <property name="Proxy-Authorization"
>>                    scope="transport"
>>                    type="STRING"
>>                    value="fn:concat('Basic ', base64Encode('id:pwd'))"/>
>>          <property name="POST_TO_URI" scope="axis2" value="true"/>
>>          <send>
>>             <endpoint>
>>                <address uri="
>> http://srv:8000/sap/bc/soap/wsdl?sap-client=500&amp;services=Z_name"/>
>>                <property name="name" value="endpoint_urn_uuid_ZS_name"/>
>>             </endpoint>
>>          </send>
>>       </inSequence>
>>       <outSequence>
>>          <send/>
>>       </outSequence>
>>    </target>
>>    <description/>
>> </proxy>
>>
>> When I try to test the Proxy inside WSo2 I get :
>>
>> <TryitProxyError xmlns:h="http://wso2.org/ns/TryitProxy"; h:status="SOAP
>> envelope error">org.apache.axis2.AxisFault: Transport error: 401 Error:
>> Unauthorized</TryitProxyError>
>>
>> Best Regards
>> Érico
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to