0

我正在使用 php curl 发送 xml 请求。在我的请求中,一些字段名称应该以大写字母开头(我提到这些字段名称应该是这样的)。但它仍然是小写的。我该怎么办?

4

1 回答 1

0
$soap_request  ="<?xml version=\"1.0\" encoding=\"UTF-8\"?> "
."<soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/>"
//. "<soapenv:Header /> "
.  "<soapenv:Body>"
."<air:AirFareRulesreq targetbranch=\"P107616\" Fareruletype=\"Long\" xmlns:air=\"http://www.travelport.com/schema/air_v16_0\" xmlns:com=\"http://www.travelport.com/schema/common_v13_0\" >" 
."<com:BillingPointOfSaleInfo OriginApplication=\"UAPI\">" ."</com:BillingPointOfSaleInfo>"
."<air:FareRuleKey FareInfoRef=$farere ProviderCode=\"1G\">$farerulekk"
."</air:FareRuleKey> " 
."</air:AirFareRuleReq>"
. "</soapenv:Body>"
."</soapenv:Envelope>"
."?>";
于 2012-11-22T11:15:55.530 回答