Jump to content

Issue with wsdl soap request


RJS

Recommended Posts

I am running php5 with the soap extension enabled and working.

 

I am trying to do a simple address lookup but am getting stuck.

 

Function getAddressData takes 5 items.

address

apt

city

state

zip

 

It returns 6

street address

apt number

city

state

zip code

status

 

This is my code

<?
$client = new SoapClient("http://auort.dynamiccity.com:8080/DCWebServices/services/AddressLookupService?WSDL");
$client->__soapCall("getAddressData",
                    array('address' => '1360 S 1600 W',
                          'apt' => '',
                          'city' =>'',
                          'state' =>'UT',
                          'zip' =>'',
                          ));
?>

I get the following error.

 

Fatal error: Uncaught SoapFault exception: [soap:Client] Not enough message parts were received for the operation. in C:\Program Files\Apache Group\Apache\htdocs\info.php:11 Stack trace: #0 C:\Program Files\Apache Group\Apache\htdocs\info.php(11): SoapClient->__soapCall('getAddressData', Array) #1 {main} thrown in C:\Program Files\Apache Group\Apache\htdocs\info.php on line 11

 

Any ideas?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/70293-issue-with-wsdl-soap-request/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.