POST를 통해 XML을 전송하는 코드가 있습니다. 그러나이 코드는 PHP에 있으며 VB.NET에서 필요합니다.이 PHP 코드를 VB.NET 코드로 변환하는 데 도움이됩니다.
이 코드를 변환하는 데 도움이 필요합니까?
$XMLFile= (here i have created the xml file. XML is encoded ISO-8859)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"URL WHERE I SEND XML");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_POSTFIELDS,"XMLDATA=".$XMLFile);
$results=curl_exec ($ch);
curl_close ($ch);
$results=stripslashes($results);
$xmlreturned=new SimpleXMLElement($results);
if($xmlreturned->NotificationResultHeader->RRC==0){
if($xmlreturned->NotificationResultList->NotificationResult->NRC==0){
echo "OK. SUCCES";
그리고 나도이 PHP 코드를 변환하는 방법 :
$msg=htmlentities($msg);
$msg=urlencode($msg);