|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Pear:soap
hi
when I am trying to send up a wsdl request using pear soapClient.php I get an error that means that he didnt recognize $sDomainArray any help will be vey appreciated since that cost me half a day already I believe that the problem is in define the type for the request Regards my code is this [php] require_once 'SOAP/Client.php'; $wsdl_url = "(*********)"; $api = new SOAP_WSDL($wsdl_url); /* echo ( $api->generateProxyCode() ); */ $client = $api->getProxy(); $user="251263"; $pass="password"; $sCLTRID= md5(uniqid(rand(),true)); $credential = array("Account" => $user, "Password" => $pass); $sDomainArray = array("1"=>"example.us","2"=>"example.biz");[/highlight] print_r($sDomainArray); $sHostArray=null; $sNSArray=null; $result = $client->checkAvailability($sCLTRID,$credential,$sDomainArr ay,NULL,NULL); echo $result; [php] and the soap request is [wsdl] POST /wswwdapi/wapi.asmx HTTP/1.1 Host: ********* Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "*********/webservices/CheckAvailability" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns <soap:Body> <CheckAvailability xmlns="*******/webservices/"> <sCLTRID>string</sCLTRID> <credential> <Account>string</Account> <Password>string</Password> </credential> <sDomainArray> <string>string</string> <string>string</string> </sDomainArray> <sHostArray> <string>string</string> <string>string</string> </sHostArray> <sNSArray> <string>string</string> <string>string</string> </sNSArray> </CheckAvailability> </soap:Body> </soap:Envelope> [wsdl] |
|
#2
|
|||
|
|||
|
wwdapi sDomainArray
I'm trying to impalement the same API and this same issue has me stomped, have you been able to find a solution?
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Pear:soap |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|