Re: Responding to an XML data post
| From: | tamouse mailing lists | Date: | Thu, 27 Sep 2012 19:51:34 +0000 |
| Subject: | Re: Responding to an XML data post | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319287@lists.php.net to get a copy of this message | ||
On Thu, Sep 27, 2012 at 1:00 PM, Daniel Brown <danbrown@php.net> wrote:
> On Thu, Sep 27, 2012 at 1:48 PM, Bastien Koert <phpster@gmail.com> wrote:
>> Hi All,
>>
>> I am stuck in something where a 3rd party app pushes an XML post to my
>> site. They need me to respond to that push with a synchronous XML post
>> back confirming that the data was received / had issues etc. Those
>> XMLs are defined, but I am not sure how to push that XML back. A
>> simple
>>
>> echo $xml;
>>
>> is not making back to their system. Not sure how I can post back to their site
>
> If it's an actual postback, they should've given you an API
> endpoint for you to do a cURL post back to their side. If not, and
> they're just expecting an XML response, it could be that your XML is
> improperly formatted.
>
> --
> </Daniel P. Brown>
> Network Infrastructure Manager
> http://www.php.net/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Also, make sure you've set the right content type header.