[PHP] Soap Client Help

2009-04-18 Thread EPA WC
Hi All,

I am using the following code to build a SoapClient with some web service:


http://iaspub.epa.gov/webservices/StationService/index.html?WSDL",array('trace'
=> 1));
try {
 $sc = $client->getStationCount(43.1,43.5,-83.5,-83.1);
 print $sc;
} catch (SoapFault $exception) {
   echo $exception;
}

?>
//

But I got the following error:
///
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Unspecified encodingStyle in /var/www/myphp/wqxststest.php:5
Stack trace: #0 /var/www/myphp/wqxststest.php(5):
SoapClient->SoapClient('http://iaspub.e...', Array) #1 {main} thrown
in /var/www/myphp/wqxststest.php on line 5
///

Also when I tried same code (See below) with another service, it seems
working fine.
///
http://iaspub.epa.gov/webservices/WatershedSummaryService/index.html?WSDL",array('trace'
=> 1));
try {
 $client->getCharacteristicSummary($huc);
 print $client->__getLastResponse();
} catch (SoapFault $exception) {
   echo $exception;
}
///
?>

I tried to find what's causing this error on Google but no success.
Anyone know what's going on?

Your help is highly appreciated!

Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Retrieve pages from an ASP driven site

2012-05-02 Thread EPA WC
Hi List,

I am trying to write a crawler to go through web pages at
http://www.freebookspot.es/CompactDefault.aspx?Keyword=. But I am not
quite familiar with how asp uses _doPostBack function with the "next"
button below the book list to advance to the next page. I hope someone
who knows ASP well can help out here. I need to know how to retrieve
next page with PHP code.

Kind regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Retrieve pages from an ASP driven site

2012-05-03 Thread EPA WC
Thanks Lester.

On Thu, May 3, 2012 at 3:49 AM, Lester Caine  wrote:
> Terry Ally (Gmail) wrote:
>>
>> Here is how you would paginate in PHP.
>
>
> Terry - Tom is not trying to create this in PHP, but read existing ASP
> pages.
>
> Tom - I don't think that it's simply a matter of the ASP code here, but
> rather how they have constructed the set of information they are sending
> back. That is done in javascript, but the navigation buttons are simple form
> submit. BNext is submitted for 'next'.
>
> Interestingly, the sales side seems to be .php ;)
>
> --
> Lester Caine - G8HFL
> -
> Contact - http://lsces.co.uk/wiki/?page=contact
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk//
> Firebird - http://www.firebirdsql.org/index.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php