bdealer Posted August 13, 2008 Share Posted August 13, 2008 Hi, I need help on how to use a wsdl in php. I am using XAMP and php5. WSDL file to call a function in it I did ( rpa.wsdl is in the same directory as this file is located) $client = new SoapClient('rpa.wsdl', array('trace'=>1,'exceptions'=>true,'login'=>"username",'password'=>"password")); var_dump($client->__getFunctions()); var_dump($client->__getTypes()); This is the output I get array(1) { * => string(77) "ReversePhoneAppendResponse ReversePhoneAppend(ReversePhoneAppend $parameters)" } array(13) { * => string(53) "struct ReversePhoneAppend { RPA_Input RPA_Input_1; }" [1]=> string(94) "struct RPA_Input { ClientOESInformation clientOESInfo; Options options; InputPhone phone; }" [2]=> string(61) "struct ClientOESInformation { string clientOESOrderNumber; }" [3]=> string(284) "struct Options { string addressQuality; string clientType; boolean returnAllMatches; boolean returnBusinessData; boolean returnCanadianData; boolean returnConsumerData; boolean returnInactiveData; boolean returnNameOnlyMatches; boolean returnPPIData; boolean returnUSData; }" [4]=> string(60) "struct InputPhone { string areaCode; string phoneNumber; }" [5]=> string(57) "struct ReversePhoneAppendResponse { RPA_Output result; }" [6]=> string(366) "struct RPA_Output { string USCanadianIndicator; Address addressInfo; string areaCodeVerification; Business businessInfo; Consumer consumer1; Consumer consumer2; Consumer consumer3; string consumerBusinessIndicator; string matchLevelIndicator; string multiLineIndicator; string noMatchMessage; OutputPhone outputPhoneInfo; string overallMatchIndicator; }" [7]=> string(284) "struct Address { string AMSIIRecordType; string DPVCode; string city; string houseNumber; string state; string streetName; string streetPostDirectional; string streetPreDirectional; string streetSuffix; string unitDesignator; string unitNumber; string zip; string zip4; }" [8]=> string(97) "struct Business { string SIC8Codes; string businessGovernmentIndicator; string businessName; }" [9]=> string(206) "struct Consumer { string firstName; string gender; string generationalSuffix; string lastName; string mailSolicitationRestricted; string middleInitial; string professionalSuffix; string titleCode; }" [10]=> string(159) "struct OutputPhone { string areacode; string nxxPhoneType; string phoneInactiveFlag; string phoneNonPublishedFlag; string phoneNumber; string timeZone; }" [11]=> string(52) "struct InputValidationException { string message; }" [12]=> string(54) "struct SystemUnavailableException { string message; }" } I need to use ReversePhoneAppend function here and i do not know of how to call it and get the results back. I need to pass the areacode and phonenumber, but i am not sure of how to do it. Any help will be highly appreciated. thanks b Link to comment https://forums.phpfreaks.com/topic/119524-web-services-please-help/ Share on other sites More sharing options...
ignace Posted August 13, 2008 Share Posted August 13, 2008 double posting is not allowed you know, bumping however isn't i think may be another forum http://www.phpfreaks.com/forums/index.php/topic,211757.new.html#new Link to comment https://forums.phpfreaks.com/topic/119524-web-services-please-help/#findComment-615838 Share on other sites More sharing options...
Recommended Posts