Web Service Basic Authentication

1
I have imported a web service provided by a sap pi system, this web service requires basic authentication. When I enter the username and password in the authentication section of the HTTP tab, the call still returns a http 401 unauthorized error. I want to try using the Request Header tab and enter the authentication information there, but all the options are disabled on that tab. When testing with soapUI the web service works when I set the authorisation type to preemptively. What option should I use in Mendix and why is the Request Header tab disabled? I have enclosed the wsdl. <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="mi_CustomerQuery_OS" targetNamespace="http://avebe.com/mendix/contractmanagement" xmlns:p1="http://avebe.com/mendix/contractmanagement" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><wsdl:types><xsd:schema targetNamespace="http://avebe.com/mendix/contractmanagement" xmlns="http://avebe.com/mendix/contractmanagement" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:element name="mt_CustomerQuery_Request" type="dt_CustomerQuery_Request" /><xsd:element name="mt_CustomerQuery_Response" type="dt_CustomerQuery_Response" /><xsd:complexType name="dt_CustomerQuery_Request"><xsd:sequence><xsd:element name="Customer" maxOccurs="unbounded"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">743c52702cd611e2bb79b66e654b13e0</xsd:appinfo></xsd:annotation><xsd:complexType><xsd:sequence><xsd:element name="CustomerId" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">743ceeb02cd611e29d01b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="SalesOrganization" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">743ceeb12cd611e2cd31b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="DistributionChannel" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">743ceeb22cd611e28ffcb66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Division" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">743ceeb32cd611e2bc36b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element></xsd:sequence></xsd:complexType></xsd:element><xsd:element name="LanguageCode" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">2e630bd02cd711e28f64b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="LogLevel" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">90a66630349211e2badbc6983b366ae5</xsd:appinfo></xsd:annotation></xsd:element></xsd:sequence></xsd:complexType><xsd:complexType name="dt_log"><xsd:sequence><xsd:element name="Message" minOccurs="0"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">08e460402e4211e29a8ff6125b385b54</xsd:appinfo></xsd:annotation><xsd:complexType><xsd:sequence><xsd:element name="Text" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">08e487502e4211e28c95f6125b385b54</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Details" minOccurs="0" maxOccurs="unbounded" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">08e487512e4211e2bb53f6125b385b54</xsd:appinfo></xsd:annotation><xsd:complexType><xsd:sequence><xsd:element name="Severity" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">08e487522e4211e2c452f6125b385b54</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Text" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">08e487532e4211e288bef6125b385b54</xsd:appinfo></xsd:annotation></xsd:element></xsd:sequence></xsd:complexType></xsd:element></xsd:sequence></xsd:complexType></xsd:element></xsd:sequence></xsd:complexType><xsd:complexType name="dt_CustomerQuery_Response"><xsd:sequence><xsd:element name="Customer" maxOccurs="unbounded"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">743c52702cd611e2bb79b66e654b13e0</xsd:appinfo></xsd:annotation><xsd:complexType><xsd:sequence><xsd:element name="CustomerId" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">743ceeb02cd611e29d01b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Name" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5b7d02cd811e2b777b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="GeneralData" minOccurs="0"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5b7d12cd811e2bc0fb66e654b13e0</xsd:appinfo></xsd:annotation><xsd:complexType><xsd:sequence><xsd:element name="Street" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5b7d22cd811e2c2e4b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="HouseNumber" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5b7d32cd811e29cffb66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="PostalCode" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee02cd811e2c4e6b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="City" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee12cd811e28294b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Country" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee22cd811e2a139b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element></xsd:sequence></xsd:complexType></xsd:element><xsd:element name="SalesAreaData" minOccurs="0"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee32cd811e29483b66e654b13e0</xsd:appinfo></xsd:annotation><xsd:complexType><xsd:sequence><xsd:element name="SalesOrganization" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee42cd811e28389b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="DistributionChannel" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee52cd811e2963fb66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="Division" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee62cd811e2b99cb66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="IncotermsCode" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee72cd811e2c03cb66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="IncotermsDescription" minOccurs="0"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee82cd811e2b35fb66e654b13e0</xsd:appinfo></xsd:annotation><xsd:complexType><xsd:simpleContent><xsd:extension base="xsd:string"><xsd:attribute name="LanguageCode" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">0de4c5602cdc11e28081b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:attribute></xsd:extension></xsd:simpleContent></xsd:complexType></xsd:element><xsd:element name="IncotermsAdditional" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5dee92cd811e28d15b66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="PaymenttermsCode" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5deea2cd811e2a98cb66e654b13e0</xsd:appinfo></xsd:annotation></xsd:element><xsd:element name="PaymenttermsDescription" minOccurs="0"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">34a5deeb2cd811e2a762b66e654b13e0</xsd:appinfo></xsd:annotation><xsd:complexType><xsd:simpleContent><xsd:extension base="xsd:string"><xsd:attribute name="LanguageCode" type="xsd:string"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">0de4c5612cdc11e2cf9cb66e654b13e0</xsd:appinfo></xsd:annotation></xsd:attribute></xsd:extension></xsd:simpleContent></xsd:complexType></xsd:element></xsd:sequence></xsd:complexType></xsd:element></xsd:sequence></xsd:complexType></xsd:element><xsd:element name="Log" type="dt_log" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:annotation><xsd:appinfo source="http://sap.com/xi/TextID">cad0d8a02e4211e2ab81f6125b385b54</xsd:appinfo></xsd:annotation></xsd:element></xsd:sequence></xsd:complexType></xsd:schema></wsdl:types><wsdl:message name="mt_CustomerQuery_Request"><wsdl:part name="mt_CustomerQuery_Request" element="p1:mt_CustomerQuery_Request" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" /></wsdl:message><wsdl:message name="mt_CustomerQuery_Response"><wsdl:part name="mt_CustomerQuery_Response" element="p1:mt_CustomerQuery_Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" /></wsdl:message><wsdl:portType name="mi_CustomerQuery_OS"><wsdl:operation name="mi_CustomerQuery_OS"><wsdl:input message="p1:mt_CustomerQuery_Request" /><wsdl:output message="p1:mt_CustomerQuery_Response" /></wsdl:operation></wsdl:portType><wsdl:binding name="mi_CustomerQuery_OSBinding" type="p1:mi_CustomerQuery_OS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /><wsdl:operation name="mi_CustomerQuery_OS"><soap:operation soapAction="http://sap.com/xi/WebService/soap1.1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /><wsdl:input><soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /></wsdl:input><wsdl:output><soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="mi_CustomerQuery_OSService"><wsdl:port name="mi_CustomerQuery_OSPort" binding="p1:mi_CustomerQuery_OSBinding" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><soap:address location="http://avb009.avebe-ba.local:50000/XISOAPAdapter/MessageServlet?channel=:bs_Mendix_ContractManagement:cc_CustomerQuery_SOAP_Sender" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" /></wsdl:port></wsdl:service></wsdl:definitions>
asked
2 answers
3

It is a bug a Mendix 4.0-4.22 and should be fixed in the next version.

You can use 3.3.1 and import in 4.0 when it works.

answered
0

Thanks for your answer. Do you know when the next release will be published and where can I download 3.3.1 ?

answered