Portal Home > Knowledgebase > Articles Database > Noob to PHP Curl XML


Noob to PHP Curl XML




Posted by SAHostKing, 02-07-2013, 02:33 AM
Hi Guys, I'm trying to post xml with https authentication using php, curl ,epp, username, password and port. XML is like this: exampledomain.co.za NewRegistrantID Any ideas how to send that through to a API and receive a response? A script would be appreciated.

Posted by bdowne01, 02-07-2013, 01:44 PM
You will probably need to provide more details. Typically APIs will use a standard methodology of communication (like SOAP, for instance) to wrap the XML in. For those situations PHP has built-in functions to handle creation of a message envelope which will encapsulate the XML and describe the data. Generally the process looks like: Generate the XML, encapsulate in appropriate message envelopeURLEncode the entire messageTransmit to destination APIHandle the return code from the API to determine whether the message transmission was sucessful. I'm not a programmer, but have been forced to deal with things like this from time to time. I'm sure someone with experience could elaborate further.

Posted by SAHostKing, 02-08-2013, 12:50 AM
It fine - I got it working with the help of a Python Developer who I think we will be hiring due to the fact our developers could not sort this out.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Help with domains (Views: 681)

Language: