mindwalker adlı üyeden alıntı: mesajı görüntüle
api isteği sonucunda ne cevap alıyorsun onu yazarsan bir çözüm bulabilirsin.
# Test 1: Portal username/password ile dene
AUTH1=$(echo -n "" | base64)
echo "Test 1 - Portal creds: adminuser"
curl -s -w "\nHTTP:%{http_code}" -X POST \
  -H "Content-Type: text/xml; charset=utf-8" \
  -H "SOAPAction: getPartialUserList" \
  -H "Authorization: Basic $AUTH1" \
  -d '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ein="http:/fitcons.com/eInvoice/"><soapenv:Header/><soapenv:Body><ein:getPartialUserListRequest><ein:vknTckn>1234567890</ein:vknTckn></ein:getPartialUserListRequest></soapenv:Body></soapenv:Envelope>' \
  "https://efaturawstest.fitbulut.com/ClientEInvoiceServices/ClientEInvoiceServicesPort.svc" 2>&1

echo ""
echo "---"

# Test 2: CompanyCode olmadan dene
AUTH2=$(echo -n "" | base64)
echo "Test 2 - WS creds without company code"
curl -s -w "\nHTTP:%{http_code}" -X POST \
  -H "Content-Type: text/xml; charset=utf-8" \
  -H "SOAPAction: getPartialUserList" \
  -H "Authorization: Basic $AUTH2" \
  -d '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ein="http:/fitcons.com/eInvoice/"><soapenv:Header/><soapenv:Body><ein:getPartialUserListRequest><ein:vknTckn>1234567890</ein:vknTckn></ein:getPartialUserListRequest></soapenv:Body></soapenv:Envelope>' \
  "https://efaturawstest.fitbulut.com/ClientEInvoiceServices/ClientEInvoiceServicesPort.svc" 2>&1

echo ""
echo "---"

# Test 3: Şifre olduğu gibi (escape yok)
AUTH3=$(printf '%s' '' | base64)
echo "Test 3 - Raw password with printf"
curl -s -w "\nHTTP:%{http_code}" -X POST \
  -H "Content-Type: text/xml; charset=utf-8" \
  -H "SOAPAction: getPartialUserList" \
  -H "Authorization: Basic $AUTH3" \
  -d '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ein="http:/fitcons.com/eInvoice/"><soapenv:Header/><soapenv:Body><ein:getPartialUserListRequest><ein:vknTckn>1234567890</ein:vknTckn></ein:getPartialUserListRequest></soapenv:Body></soapenv:Envelope>' \
  "https://efaturawstest.fitbulut.com/ClientEInvoiceServices/ClientEInvoiceServicesPort.svc" 2>&1