SOAP via CURL: How to add the method name?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
guarriman
Forum Commoner
Posts: 44
Joined: Thu Nov 03, 2005 4:11 am

SOAP via CURL: How to add the method name?

Post 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.
Post Reply