Forum Moderators: coopster

Message Too Old, No Replies

SOAP via CURL: How to add the method name?

No idea about how to insert this parameter

         

guarriman

12:04 pm on Jan 16, 2008 (gmt 0)

10+ Year Member



Hi.

I'm using CURL to access a SOAP webservice:
--------
$SOAPrequest = <<< End_Of_Quote
<?xml version="1.0" encoding="UTF-8"?>
<firstName>John</firstName>
<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.

eelixduppy

8:13 pm on Jan 20, 2008 (gmt 0)



Did you find the solution to your problem yet? Also, maybe php's SOAP functions [php.net] will be better suited for what you are trying to do.