SOAP parameters sending attachment php -


i'm sending files via soap php. files received inconsistent data. code

    $clientsoap = new soapclient($urlwsdl, $opts);     $param = array (          "companydata" => array(             "company" => array(                 "operationcode"                 => $operationcode,                 "companyinformation"=> array(                                     "theid"     => $id                 )             ),             "dataelement" => array(                 "dataelement"=> array(                     "deinf"=> array(                         "name"                  => "dename" ,                            "type"                  => "1",                         "attachmentvalue"=> array(                             "filename"      => $filename,                             'filebase64'    => $filecontent                                          )                     )                        )             )         )     );      $res = $clientsoap->importdata($param); 

i'm triyng define contenttype in filebase64 var changing

'filebase64' => $filecontent

by this

'filebase64 xm:contenttype="vnd.openxmlformats-officedocument.spreadsheetml.sheet"' => $filecontent

and error

unexpected error - javax.transaction.rollbackexception: arjuna016053: not commit transaction.

tried soapui, , works using xm:contenttype="vnd.openxmlformats-officedocument.spreadsheetml.sheet"

i understand produced inconsistence in defining content type. ideas?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -