PHP SOAP: Problems parsing WSDL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
TNielsen
Forum Newbie
Posts: 1
Joined: Wed Nov 04, 2009 11:13 am

PHP SOAP: Problems parsing WSDL

Post by TNielsen »

Hi all

I have really been scratching my head on this. Can anybody help me out here?

I am to consume a webservice:
WDSL: http://services.conzoom.eu/addit/AddItService.svc?wsdl

The webservice utilizes WS-security, and I rely on the WSSoapClient class to handle this aspect for me ( http://www.phpclasses.org/browse/package/3640.html )

I had everything setup and working for several weeks. Then apparantly something was changed at the WS end and I can no longer connect. Although the folks behind the service says that nothing changed.

My problem is that I get a WSDL-parser error:


SOAP-ERROR: Parsing WSDL: <message> 'AddItService_GetValues_InputMessage' already defined in (my file)


My code looks like this:

Code: Select all

ini_set("soap.wsdl_cache_enabled", "0"); 
    include_once('WSSoapClient.class.php'); 
      $url = "http://services.conzoom.eu/addit/AddItService.svc?wsdl"; 
       
    $client = new SoapClient($url,array(                                                ** ERROR refers to this line ** 
        'soap_version' => SOAP_1_2, 
        "trace"      => 1,  
        "exceptions" => 0, 
    "cache_wsdl" => "WSDL_CACHE_NONE")); 
    $client->__setUsernameToken(USERNAME,PASSWORD); 
    $params = array('input'=>array(array('Type'=>'StreetAndHouseno','Value'=>$address),array('Type'=>'PostcodeAndDistrict','Value'=>$zip)),'variables'=>array(410,411)); 
 
    $result=$client->__soapCall('GetValues',array($params)); 
 
 
    print "<pre>\n";  
    print "Request: \n".htmlspecialchars($client->__getLastRequest()) ."\n";  
    print "Response: \n".htmlspecialchars($client->__getLastResponse())."\n";  
    print "</pre>";  
Can anyone spot any obvious mistakes or have any ideas as to what might be wrong here. I'm getting nuts, as it was extremely easy to set up in the first place, and now I have spent hours and hours to fix this thing.

Any help would be much appreciated

Best regards, Thomas
Post Reply