Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WSDL/SOAP issue

Status
Not open for further replies.

rjseals

Technical User
Nov 25, 2002
63
US
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
Code:
<?
$client = new SoapClient("[URL unfurl="true"]http://auort.dynamiccity.com:8080/DCWebServices/services/AddressLookupService?WSDL");[/URL]
$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!
 
should the end of the array() function have a loose comma? i'd delete it and see whether that makes a difference.

<?
$client = new SoapClient("$client->__soapCall("getAddressData",
array('address' => '1360 S 1600 W',
'apt' => '',
'city' =>'',
'state' =>'UT',
'zip' =>''[red],[/red]
));
?>
 
I think my problem is that the results are needing to be returned into an array.
 
Turns out it was an issue with the server itself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top