Mortgage Calculator | Internet Advertising | Electricity Suppliers | Music Festival | Credit Card Consolidation
SOAP and PHP [Archive] - ZGeek

PDA

View Full Version : SOAP and PHP


Pirate
21-09-2005, 01:13 PM
I jsut landed a new task to encorperate this search site (the NADsearch lol)http://search.fcsonline.com.au/FCSSearchWS/FCSSearch.asmx

Into the companies intranet. But I've never used XML so Im a big lost on what the process is for converting it onto a usable site. Anyone able to stear me in the right direction?

dwarfthrower
21-09-2005, 01:47 PM
There are two ways of going about it... either use XSLT (eXtensible Stylesheet Language Transforms) or you can use Javascript and the XHTTP object.

A lot depends on whether you want it incorporated server side or client side.

Web services can either be consumed on the client side (with a bit of Javascript trickery) or client side (using whatever development platform your server supports)

This stuff is my bread & butter so feel free to give me a yell.

Movius
21-09-2005, 08:08 PM
ah. Memories of my university honours project. Theoretically I am good at this stuff, so I can offer some form of advice.

Pirate
22-09-2005, 11:18 AM
Thanks guys, I've managed to get a stock quote example working but still stuck.
I've got to build this on a PHP site, and it has to connect to vbulletin. I know how to do that, but I can't get the NAD search to work. From what I understand, i have to write a script to take the forum translate it and then send it. I then have to have another script to translate it back?

Sorry if I sound lame, just outta my depth here :P

dwarfthrower
22-09-2005, 04:19 PM
From what I understand, i have to write a script to take the forum translate it and then send it. I then have to have another script to translate it back?

Yeah, that's pretty much the guts of it.

Basically web services are just an interface to some functionality sitting somewhere on the web. The idea being that the server/os/appserver implementation shouldn't matter, so you can write a PHP app that calls web services from a .NET or J2EE app and vice versa without having to alter your code to sit with those platforms.

To do that you'll need to write (or find) some code that will generate and fire a SOAP (http://en.wikipedia.org/wiki/SOAP) request and parse the result for you.

I have some (IE specific) Javascript code that goes through the process if you want it. Or there is a PHP web services tutorial here (http://aspn.activestate.com/ASPN/WebServices/SWSAPI/phptut) if you need to do it on the back end.

Pirate
23-09-2005, 04:07 PM
Im going to try using nusoap to talk to this site http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?op=SendMessage

Im still new to PHP so thats my main problem. I think im swimming in the deep end :P

If i could find some example code of that does this, I'd be right but I don't think a lot of people are doing this.

Pirate
23-09-2005, 04:24 PM
If anyone can help.. the main thing thats got me stumped is how to send data to that server via soap and PHP. Every tutorial I find is about getting information from the web service and never the other way around.

I'll give a person 1000 rep to code me an example.. :D

stinky
23-09-2005, 05:59 PM
After quickly scanning through the docs and a few examples, it looks like you need to create a client object and then pass the data through to it as an big complicated associated array. or maybe you can construct the data into a string and send that.

something like this



$client = new soapclient('http://server.address/blah', true);

$data[message][BillingCode] = ;
$data[message][CustomerReference] = ;
$data[message][FutureDelivery] = ;
$data[message][Destinations][StoredLists][ListName] = ;
$data[message][Destinations][StoredLists][Reference] = ;
$data[message][Destinations][Recipient][Address] = ;
$data[message][Destinations][Recipient][AlternateAddresses ] = ;
$data[message][Destinations][Recipient][Reference] = ;
$data[message][ContentItems][SMSBody][0][FileName] = ;
$data[message][ContentItems][SMSBody][0][ContentLocation] = ;
$data[message][ContentItems][SMSBody][0][ContentType] = ;
$data[message][ContentItems][SMSBody][0][Content] = ;
etc

$result = $proxy->SendMessage($data);

stinky
26-09-2005, 12:59 PM
So did you manage to get this shit all sorted?

Pirate
26-09-2005, 01:16 PM
nah, I tried that method, but it didn't work. I should have mentioned im using nusoap.

I probably didn't do it correctly as my php skills are still on the lamer level.

I also tried grouping them into arrays and that didn't work either :P

Im going to try sending this as a line of input,

<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">
<soap:Body>
<SendMessage xmlns=\"http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl\">
<message>
<BillingCode>$billing</BillingCode>
<CustomerReference>$ref</CustomerReference>
<Destinations>
<Recipient>
<Address>$number</Address>
<Reference>1</Reference>
</Recipient>
</Destinations>
<ContentItems>
<SMSBody>
<FileName>Test.txt</FileName>
<ContentType>ASCII</ContentType>
<Content>$content</Content>
</SMSBody>
</ContentItems>
</message>
<userID>########</userID>
<password>#####password>
</SendMessage>
</soap:Body>
</soap:Envelope> Any suggestions would be appreciated :)

dwarfthrower
26-09-2005, 01:26 PM
Have a play with the online tools at mindreef to make sure your SOAP requests are valid for what the service is expecting:

http://www.mindreef.net/tide/scopeit/start.do?referer=xmethods&url=http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl

The other thing to do would be to just pick a very simple web service and play around with getting that right first.

I cut my SOAP teeth on this one:
http://www.webservicex.com/globalweather.asmx?WSDL

Or via mindreef:
http://www.mindreef.net/tide/scopeit/start.do?referer=xmethods&url=http://www.webservicex.com/globalweather.asmx?WSDL

Pirate
26-09-2005, 04:58 PM
Thanks man, I'll try that at home since my access here is blocked.

I've been working with two sets of code to try and get this working.

<?php

$bill_code = "1234";
$customer_ref = "refdetails";
$future_time = "";
$list_name = "";
$ref = "1";
$address_num = "0414235974";
$altaddress_num = "";
$file_name = "test.txt";
$content_location = "";
$content_type = "ASCII";
$content_message = "Go russ, go";
$message_ID = "";
$user = "";
$pass = "";

require_once('../lib/nusoap.php');

//$client = new soapclient('http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl', true);
$client = new soapclient('http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl');

$data[message][BillingCode] = $bill_code;
$data[message][CustomerReference] = $customer_ref;
$data[message][FutureDelivery] = $future_time;
$data[message][Destinations][StoredLists][ListName] = $list_name;
$data[message][Destinations][StoredLists][Reference] = $ref;
$data[message][Destinations][Recipient][Address] = $address_num;
$data[message][Destinations][Recipient][AlternateAddresses] = $altaddress_num;
$data[message][Destinations][Recipient][Reference] = $ref;
$data[message][ContentItems][SMSBody][0][FileName] = $file_name;
$data[message][ContentItems][SMSBody][0][ContentLocation] = $content_location;
$data[message][ContentItems][SMSBody][0][ContentType] = $content_type;
$data[message][ContentItems][SMSBody][0][Content] = $content_message;
$data[message][MessageID] = $message_ID;
$data[SendMessage][userID] = $user;
$data[SendMessage][password] = $pass;

echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';

?> and <?php

$bill_code = "1234";
$customer_ref = "refdetails";
$future_time = "";
$list_name = "";
$ref = "1";
$address_num = "0414235974";
$file_name = "test.txt";
$content_location = "";
$content_type = "ASCII";
$content_message = "Go russ, go";
$message_ID = "";

require_once('../lib/nusoap.php');

$client = new soapclient('http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl', true );

$SendMessage[1] = array(
'userID' => '',
'password' => '',
);

$message[2] = array(
'BillingCode' => $bill_code,
'CustomerReference' => $customer_ref,
'MessageID' => $message_ID,
);

$Destinations[1] = array(
'StoredList' => $listdetails,
'Recipient' => $recipientdetails,
);

$ContentItems[0] = array(
'SMSBody' => $smsbodydetails,
);

$listdetails[1] = array(
'ListName' => $list_name,
'Reference' => $ref,
);

$recipientdetails[1] = array(
'Address' => "$address_num",
'Reference' => "$ref",
);

$smsbodydetails[2] = array(
'FileName' => $file_name,
'ContentType' => $content_type,
'Content' => $content_message,
);

echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';

?> Both don't work. Now offering anyone 2000 rep to help me sort this out. After I get this sorted, i have another to build so this is my learning time :P

I have a question, how is the content from the php code given to the SOAP thing? is it just this? $client = new soapclient('http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl', true );

dwarfthrower
26-09-2005, 05:02 PM
Dunno mate... PHP is probably the one environment I have absolutely zero experience with. I've been looking for an excuse to build a dev PHP environment though, so I'll whip one up tonight and see what I can come up with.

Pirate
26-09-2005, 05:17 PM
Thanks mate, appreciate it. My main problem is im a damn noob when it comes to php hand coding. Probably comes down to a simple mistake I can't see :P

Pirate
26-09-2005, 05:27 PM
W00T!!! I had a break through.. I can get the server talking to my script now :)

<?php

$bill_code = "1234";
$customer_ref = "refdetails";
$future_time = "";
$list_name = "";
$ref = "1";
$address_num = "0414235974";
$file_name = "test.txt";
$content_location = "";
$content_type = "ASCII";
$content_message = "Go russ, go";http://www.vbulletin.org/forum/index.php?
vBulletin.org Forum - powered by vBulletin
$message_ID = "";

require_once('../lib/nusoap.php');

$client = new soapclient('http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl', true );

$result = $client->call('SendMessage', array(), 'http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl/SendMessage', 'SendMessage');

$SendMessage[1] = array(
'userID' => '',
'password' => '',
);

$message[2] = array(
'BillingCode' => $bill_code,
'CustomerReference' => $customer_ref,
'MessageID' => $message_ID,
);

$Destinations[1] = array(
'StoredList' => $listdetails,
'Recipient' => $recipientdetails,
);

$ContentItems[0] = array(
'SMSBody' => $smsbodydetails,
);

$listdetails[1] = array(
'ListName' => $list_name,
'Reference' => $ref,
);

$recipientdetails[1] = array(
'Address' => "$address_num",
'Reference' => "$ref",
);

$smsbodydetails[2] = array(
'FileName' => $file_name,
'ContentType' => $content_type,
'Content' => $content_message,
);

echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';

?>I've also attached an asp and pl script files that they use to access this service.

dwarfthrower
26-09-2005, 06:00 PM
Cool... quick qns... are you using Apache or IIS... or something else altogether as your http stack? I've just set up Apache and PHP, but I can run IIS if needs be.

Also... do the sample files supplied with the nusoap toolkit work for you... say the Stock Quote WSDL link off the samples page? Just to rule out any config issues.

dwarfthrower
26-09-2005, 09:44 PM
OK Tiger here's what we've got so far.

After getting Apache installed and taking a crash course in PHP programming I managed to get nusoap to send a relatively useful SOAP message to our friendly web service:

<?php
/*
* $Id: wsdlclient1.php,v 1.2 2004/03/15 23:06:17 snichol Exp $
*
* WSDL client sample.
*
* Service: WSDL
* Payload: document/literal
* Transport: http
* Authentication: none
*/
require_once('../lib/nusoap.php');
$proxyhost = isset($_POST['proxyhost']) ? $_POST['proxyhost'] : '';
$proxyport = isset($_POST['proxyport']) ? $_POST['proxyport'] : '';
$proxyusername = isset($_POST['proxyusername']) ? $_POST['proxyusername'] : '';
$proxypassword = isset($_POST['proxypassword']) ? $_POST['proxypassword'] : '';
$client = new soapclient('http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl', true,
$proxyhost, $proxyport, $proxyusername, $proxypassword);
$err = $client->getError();
if ($err) {
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}
// Doc/lit parameters get wrapped

$strListName = 'test list';
$strAddress = '0423847372';
$strReference = 'qwerty';

$strFileName = 'test.txt';
$strContentLocation = 'Embedded';
$strContentType = 'ASCII';
$strContent = 'I r smrt';

$strMessageID = '1234';

$param = array('message' =>
array('Destinations' =>
array('StoredList' =>
array('ListName' => $strListName,
'Reference' => $strReference
),
'Recipient' =>
array('Address' => $strAddress,
'Reference' => $strReference
)
),

'ContentItems' =>
array('SMSBody' =>
array('FileName' => $strFileName,
'ContentLocation' => $strContentLocation,
'ContentType' => $strContentType,
'Content' => $strContent
)
),

'MessageID' => $strMessageID
)
);


$result = $client->call('SendMessage', array('parameters' => $param), '', '', false, true);
// Check for a fault
if ($client->fault) {
echo '<h2>Fault</h2><pre>';
print_r($result);
echo '</pre>';
} else {
// Check for errors
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Error</h2><pre>' . $err . '</pre>';
} else {
// Display the result
echo '<h2>Result</h2><pre>';
print_r($result);
echo '</pre>';
}
}
echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';
?>

Which formulates the following SOAP message and sends it off:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SendMessage xmlns="http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl">
<message>
<Destinations>
<StoredList>
<ListName>test list</ListName>
<Reference>qwerty</Reference>
</StoredList>
<Recipient>
<Address>0423847372</Address>
<Reference>qwerty</Reference>
</Recipient>
</Destinations>
<ContentItems>
<SMSBody>
<FileName>test.txt</FileName>
<ContentLocation>Embedded</ContentLocation>
<ContentType>ASCII</ContentType>
<Content>I r smrt</Content>
</SMSBody>
</ContentItems>
<MessageID>1234</MessageID>
</message>
</SendMessage>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Which generates the following response from the server:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Failed schema validation</faultstring>
<faultactor>http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx</faultactor>
<detail>
<dm:failedValidation xmlns:dm="http://www.develop.com/web/services/">
The 'http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl:Content'
element has an invalid value according to its data type. An error occurred at , (1, 750).
</dm:failedValidation>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>


Which is cool... previous incarnations tripped up at much earlier elements. The problem with your code is basically that you are sending an empty array to the call function.

The problem with mine is that it's expecting the message content to be base64 encoded. So all I need is to dig up a base64 encoding routine for PHP and we should be able to put this one to bed.

dwarfthrower
26-09-2005, 10:02 PM
Have a crack at:
<?php
/*
* $Id: wsdlclient1.php,v 1.2 2004/03/15 23:06:17 snichol Exp $
*
* WSDL client sample.
*
* Service: WSDL
* Payload: document/literal
* Transport: http
* Authentication: none
*/
require_once('../lib/nusoap.php');
$proxyhost = isset($_POST['proxyhost']) ? $_POST['proxyhost'] : '';
$proxyport = isset($_POST['proxyport']) ? $_POST['proxyport'] : '';
$proxyusername = isset($_POST['proxyusername']) ? $_POST['proxyusername'] : '';
$proxypassword = isset($_POST['proxypassword']) ? $_POST['proxypassword'] : '';
$client = new soapclient('http://webservices.xpedite.com.au/XpediteMessaging/smsREACH/1-0-0/smsREACH.asmx?wsdl', true,
$proxyhost, $proxyport, $proxyusername, $proxypassword);
$err = $client->getError();
if ($err) {
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}
// Doc/lit parameters get wrapped



$strListName = 'test list';
$strAddress = '0423847372';
$strReference = 'qwerty';

$strFileName = 'test.txt';
$strContentLocation = 'Embedded';
$strContentType = 'ASCII';
$strContent = 'SSByIHNtcnQ=';

$strMessageID = '1234';

$strUserID = 'zgeek';
$strPassword = 'zgeek';

$param = array('message' =>
array('Destinations' =>
array('StoredList' =>
array('ListName' => $strListName,
'Reference' => $strReference
),
'Recipient' =>
array('Address' => $strAddress,
'Reference' => $strReference
)
),

'ContentItems' =>
array('SMSBody' =>
array('FileName' => $strFileName,
'ContentLocation' => $strContentLocation,
'ContentType' => $strContentType,
'Content' => $strContent
)
),

'MessageID' => $strMessageID
),
'userID' => $strUserID,
'password' => $strPassword
);


$result = $client->call('SendMessage', array('parameters' => $param), '', '', false, true);
// Check for a fault
if ($client->fault) {
echo '<h2>Fault</h2><pre>';
print_r($result);
echo '</pre>';
} else {
// Check for errors
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Error</h2><pre>' . $err . '</pre>';
} else {
// Display the result
echo '<h2>Result</h2><pre>';
print_r($result);
echo '</pre>';
}
}
echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';
?>

Using a valid username / password combo if you have one. (probably want to change the phone number too)

It compiles and sends a well formed message... problem is authentication. Won't let you play if you haven't got a legit username and password.

Pirate
28-09-2005, 09:57 AM
Thanks dude, you fucking rock. I really appreciate your help. This makes it all make sense now so I'll be able to build my other service now too!

2000 rep for you :)

dwarfthrower
28-09-2005, 10:04 AM
No sweat... I chucked my final version of the code up on the web if you want to see it in action / download the source:

http://home.exetel.com.au/gbuckley/nusoap/samples/testSoap.html

Pirate
28-09-2005, 10:14 AM
Cheers dude, I owe you a leg humping :)

Pirate
29-09-2005, 02:59 PM
new question...

My script returns a result like so Array
(
[NADSearchResult] => Array
(
[NAD] => Array
(
[NADItem] => Array
(
[0] => Array
(
[PIN] => 57565343
[HIN] => 20839384
[GIVEN_NAME_1] =>
[GIVEN_NAME_2] => J
[GIVEN_NAME_3] =>
[SURNAME] =>
[AD1] =>
[FUN] =>
[TN1] => 6
[THN] =>
[THT] => RD
[LOC] =>
[STT] => NSW
[PCD] =>
[BG1] =>
[PDN] =>
[ALN] =>
[SOURCE] => PHONE
[SOURCEDATE] => 25/08/2005 12:00:00 AM
)

)

)

[Credit] => Array
(
[Total] => 90570
)

)

)
but I have no idea how I'm ment to translate this into a web page. Can anyone point me in the right direction?

dwarfthrower
29-09-2005, 03:27 PM
What sort of web page did you want to display it as... is it just like search results for the user to look at, or did you want to turn it into a form of sorts?

At any rate, referencing the members of the array shouldn't be too difficult.

Pirate
29-09-2005, 03:35 PM
I want it to display as the results from a search. From what I've been reading, i need to run the returned XML through nusoap again via the soap_parser to get the code back... im not to sure.

Pirate
29-09-2005, 03:45 PM
This is what I'm getting back (cut down version) Result

Response

HTTP/1.1 200 OK
Connection: close
Date: Thu, 29 Sep 2005 04:41:31 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 1503

<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <NADSearchResponse xmlns="http://202.125.163.83/FCSSearchWS/FCSSearch.asmx"> <NADSearchResult>
<NAD>
<NADItem>
<PIN>55353697</PIN>
<HIN>10371513</HIN>
<GIVEN_NAME_1>BOB</GIVEN_NAME_1>
<GIVEN_NAME_2 />
<GIVEN_NAME_3 />
<SURNAME>SMITH</SURNAME>
<AD1></AD1>
<FUN />
<TN1>26</TN1>
<THN>FINCH</THN>
<THT>ST</THT>
<LOC>BINGARA</LOC>
<STT>NSW</STT>
<PCD>2404</PCD>
<BG1 />
<PDN />
<ALN />
<SOURCE>PHONE</SOURCE>
<SOURCEDATE>27/10/1994 12:00:00 AM</SOURCEDATE>
</NADItem> </NAD> <Credit> <Total>91131</Total> </Credit> </NADSearchResult> </NADSearchResponse> </soap:Body> </soap:Envelope>

sagit
29-09-2005, 08:37 PM
at this rate, dwarf will be owed a crate of zgeek beer as well as several leghumpings

dwarfthrower
30-09-2005, 08:17 AM
Yep... same as what I've been getting. What it is, is the XML document that represents the SOAP response from the web service. To do anything useful with it, you will need to run it through an XML parser.

I had a look at a few XML parsers for PHP yesterday, and one I like is this one (http://au3.php.net/domxml) which is a DOM compliant parser.

I haven't had a lot of time to play with it - been moving offices - but I'll give it a spin over the weekend and see what flies.

Pirate
30-09-2005, 09:20 AM
I love you dude. :)
I'm gonna have a crack at it too and see how close I can get it to working :)

Pirate
30-09-2005, 10:16 AM
From what I've read.. i think nusoap can parse the xml back to php

http://dietrich.ganx4.com/index.php?category=NuSOAP

nfi how to do it though.