2017-08-24 2 views
2

Meine Ressourcendatei ist korrekt. Aber wenn ich die api rufe. Ich bekomme 500 Fehler. Ich überprüfte die Abfrage in SQL Editor es funktioniert ordnungsgemäß.Formular speichern Einfügen Abfrage

<?xml version="1.0" encoding="UTF-8" ?> 
<Resource xmlns="http://xml.metamug.net/resource/1.0" v="1.0"> 
    <Request method="POST"> 
     <Desc>Store Billing Information</Desc> 
     <Update> 
      insert into billing(CARD_HOLDER_NAME,CARD_NUMBER,EXPIRATION_DATE,EXPIRY_YEAR,PAN_NUMBER, 
      SERVICE_TAX_NUMBER,GST_NUMBER) 
      values($card-holder-name,$card-number,$expiry-month,$expiry-year,$pan,$servicetax,$gst); 
     </Update> 
    </Request> 
</Resource> 

Antwort

1

Sonderzeichen mit Ausnahme von Punkt (.) Und Unterstrich (_) sind nicht erlaubt, während Variablen zu deklarieren.

Im Folgenden sind gültige Variablen

$test 
$this_isa.test_variable 
$thisisvalid1 
$sois.this1 

Im Folgenden sind nicht

$_notavariable 
$24 
$igot.8 
$yes.iam.sure 
$areyou._kiddingm 
$$ofcourseNot 
$thisisfun!!