Jump to content

Recommended Posts

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) { [0]=> string(77) "ReversePhoneAppendResponse ReversePhoneAppend(ReversePhoneAppend $parameters)" } array(13) { [0]=> 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/119522-help-with-using-wsdl/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.