Reply
how to submit xml
Old 06-12-2007, 11:38 PM how to submit xml
Skilled Talker

Posts: 70
Name: rex
is there a way to submit an xml document/file on real time without using pear or curl? can you pls an example on how to do this?

tnx
shotokan99 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-13-2007, 12:05 AM Re: how to submit xml
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Converting Video For YouTube
Posts: 2,339
Name: Keith Marshall
Location: West Hartford, CT
Using PHP SOAP extention (you need to have php compiled with this extention)

http://devzone.zend.com/node/view/id/689

http://www.w3schools.com/soap/default.asp
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 06-13-2007, 06:26 AM Re: how to submit xml
Skilled Talker

Posts: 70
Name: rex
previously i did it this way:



<?php
$xml='<?xml
.
.
.
<enddoc>';

$dest='https://mydestination.com';
require_once 'http/request.php';
$req = &new HTTP_Request($dest);
$req->setMethod(HTTP_REQUEST_METHOD_POST);
$req->addRawPostData($xml);
$req->sendRequest();

echo nl2br(htmlentities($xml));echo "<p> </p>";
echo nl2br(htmlentities($req->getResponseBody()));
?>
...the issue is our hosting co doesnt support pear. now is their
another workaround for this issue?
shotokan99 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how to submit xml
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 5.23318 seconds with 12 queries