Sure... any thing you can do to help is appreciated... if it were a bug, 
do you think that us building our own PHP could help determine what's 
happening?

Thx.ERR

Sriram Natarajan wrote:
> Hi
> I looked into this for some time. Looks like a possible bug to me.  I 
> will need to investigate this further and get back to you probably by 
> tomorrow. Hope this is okay.
>
> - sriram
>
> Eric Reid - Sun ISV Engineering wrote:
>> The attached PHP script should work, but doesn't seem to for me on 
>> OpenSolaris.
>>
>> On Ubuntu and other platforms (native LAMP stacks, not Webstack) this 
>> code 'does the right thing', accessing the website and getting the 
>> right SOAP info.
>>
>> On OSOL 2008.11 (PHP 5.2.6) I get:
>>> PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 
>>> 'http://ec2-67-202-29-233.compute-1.amazonaws.com:8080/fedora/services/access?wsdl'
>>>  
>>> in /export/home/ereid/getStream.php on line 32
>>> Error SOAP-ERROR: Parsing WSDL: Couldn't load from 
>>> 'http://ec2-67-202-29-233.compute-1.amazonaws.com:8080/fedora/services/access?wsdl'
>>>  
>>>
>>
>>
>> On OSOL 2009.06 (PHP 5.2.9) I see:
>>> PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 
>>> 'http://ec2-67-202-29-233.compute-1.amazonaws.com:8080/fedora/services/access?wsdl'
>>>  
>>> : Premature end of data in tag html line 3  in /root/getStream.php 
>>> on line 32
>>> Error SOAP-ERROR: Parsing WSDL: Couldn't load from 
>>> 'http://ec2-67-202-29-233.compute-1.amazonaws.com:8080/fedora/services/access?wsdl'
>>>  
>>> : Premature end of data in tag html line 3
>>
>> I'm not yet tried Solaris 10 Webstack.
>>
>> Any idea whether OpenSolaris's PHP SOAP is incomplete, needs to be 
>> configured, or might be buggy?
>>
>> Thx/ERR
>>
>>
>> ------------------------------------------------------------------------
>>
>> 'fedoraAdmin', 'password' => 'fedoraAdmin' )); } catch (exception $e) 
>> { echo 'Error '. $e->getMessage(); return null; } } function 
>> getStream($pid, $dsid, $showError = 1) { $content = null; $client = 
>> null; try { 
>> $url='http://ec2-67-202-29-233.compute-1.amazonaws.com:8080/fedora/services/access?WSDL';
>>  
>> //anonymous user. We will need an entry in the fedora users.xml file 
>> //with the appropriate entry for a username of anonymous password of 
>> anonymous try { $client = new SoapClient($url, array ( 'login' => 
>> 'fedoraAdmin', 'password' => 'fedoraAdmin' )); } catch (exception $e) 
>> { echo 'Error '. $e->getMessage(); return null; } $params = array ( 
>> 'pid' => "$pid", 'dsID' => "$dsid", 'asOfDateTime' => "" ); if 
>> (!isset ($client)) { $content = 'Error connection to Fedora using 
>> Soap Client!'; return $content; } $object = $client->__soapCall( 
>> 'getDatastreamDissemination', array ('parameters' => $params) ); } 
>> catch (Exception $e) { $content .=('Error getting Datastream for $pid 
>> and $dsid
>> '); return $content; } $content = $object->dissemination->stream; 
>> $content = trim($content); return $content; } echo 
>> getStream('demo:SmileyKeychain', 'DC'); ?>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>>
>>
>> webstack-discuss mailing list
>> webstack-discuss at opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/webstack-discuss
>>   


-- 


        

   Eric Reid

   Staff Engineer, Software
   Sun Microsystems, Inc.

         
 

  Phone: +1 269.629.7238
  Cell:     +1 269.569.1042
  Fax:     +1 650.352.4428
  Blog:    http://blogs.sun.com/err
  AIM:     ereidsan
  Skype:    erreid
        


Reply via email to