Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 70
Name: rex
Trades: 0
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
 
 
Register now for full access!
Old 06-12-2007, 11:05 PM Re: how to submit xml
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
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, 05:26 AM Re: how to submit xml
Skilled Talker

Posts: 70
Name: rex
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 0.37817 seconds with 12 queries