A couple of things that weren't immediately obvious with dojo filtering select.
The attribute order matters - I had value as the last attribute and it didn't work - moved it and it did.
When putting together the query attribute the format is query="{value1:data1,value2:data2}
Thursday, 4 December 2008
Tuesday, 14 October 2008
Geocoding with PHP and Google Maps
After changing hosting companies I was having problems with the message:
URL file-access is disabled in the server configuration
In the end the simple solution is to replace:
$xml = simplexml_load_file($request_url) or die("url not loading");
with
$ch = curl_init($request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$xml = simplexml_load_string($response);
URL file-access is disabled in the server configuration
In the end the simple solution is to replace:
$xml = simplexml_load_file($request_url) or die("url not loading");
with
$ch = curl_init($request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$xml = simplexml_load_string($response);
Tuesday, 7 October 2008
I'm not in Ireland...
I've been having problems with various web sites thinking that I'm in Ireland not in the UK - google and the BBC among others which is something of a nuisance especially when try to use the BBC iPlayer.
I tried renewing my DHCP binding to get a new IP address but that didn't work.
It turns out that I'm not the first person to have this problem on Virgin Media and the solution is to use their webcache. The webcache address is webcache.virginmedia.com and it uses port 8080.
So now I can use the iPlayer - of course the Virgin Media ebilling system still doesn't think I'm on their network but I'm less worried about that!
I tried renewing my DHCP binding to get a new IP address but that didn't work.
It turns out that I'm not the first person to have this problem on Virgin Media and the solution is to use their webcache. The webcache address is webcache.virginmedia.com and it uses port 8080.
So now I can use the iPlayer - of course the Virgin Media ebilling system still doesn't think I'm on their network but I'm less worried about that!
Tuesday, 30 September 2008
JAXB
I've been having problems with a JAXB based program which I'm making changes to - when marshalling the bean into the XML doc some of the elements were empty even though they were populated in the bean.
I thought I found the solution in this article http://java.sun.com/developer/technicalArticles/WebServices/jaxb/ which pointed me to use the javax.xml.bind.Validator class which showed that some of the data in the bean is invalid according to the schema however having fixed this it still wasn't working...
In the end I upgraded to JAXB 2 which sorted out the problem
I thought I found the solution in this article http://java.sun.com/developer/technicalArticles/WebServices/jaxb/ which pointed me to use the javax.xml.bind.Validator class which showed that some of the data in the bean is invalid according to the schema however having fixed this it still wasn't working...
In the end I upgraded to JAXB 2 which sorted out the problem
Friday, 12 September 2008
Axis SOAP Client problems
I've recently been attempting to connect to a Axis webservice using a PHP client and I've had problems where the Body has been returning empty - no fault just an empty body.
This can be solved by removing any line feeds from the request
This can be solved by removing any line feeds from the request
Subscribe to:
Posts (Atom)