Page 1 of 1

SOAP via CURL: How to add the method name?

Posted: Wed Jan 16, 2008 6:08 am
by guarriman
Hi.

I'm using CURL to access a SOAP webservice:

Code: Select all

 
$SOAPrequest = <<< End_Of_Quote
<?xml version="1.0" encoding="UTF-8"?>
<firstName>John</lastName>
<lastName>Smith</lastName>
 
End_Of_Quote;
 
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.domain.com/webservice.asp");
curl_setopt($ch, CURLOPT_POSTFIELDS, $SOAPrequest);
 
However, this webservice offers it by using a method called 'getUserData', but I've got no idea about how to insert it into my code.

I'd be extremely grateful if you could provide me any help. Thank you very much.