soap php json request information array -
i having issues trying information need soap request. can guys me out?
i need send
<x:envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://ips.iplabs.de/types"> <x:header/> <x:body> <typ:soimportitem> <timportitem_1> <sessionid>10101010</sessionid> <wipeversion>?</wipeversion> <serviceitemid>bbba051</serviceitemid> <itemid>a4647</itemid> </timportitem_1> </typ:soimportitem> </x:body>
to url. cant find information how this. tried this
$timportitem = array( 'sessionid' => '10101010', 'wipeversion' => '1.2', 'serviceitemid' => '101010', 'itemid' => 'a4458' ); $client = new soapclient('url/wipe/service?wsdl'); try{ $response = $client->soimportitem($timportitem); print_r($response); }catch(soapfault $soapfault){ echo $soapfault->getmessage(); }
running code gives me 'fault occurred while processing.' error.
you're not sending data expected, that's all.
if don't know how structure data, use wsdl php generator such packagegenerator project. won't wonder how structure data send use adapted ide such phpstorm or eclipse pdt.
Comments
Post a Comment