NEComputer
asked on
How to send xml data using php?
So I have three variables
So I have the following values:
$item = "Some Item";
$price = "$1000.00";
$quantity = "25";
and I want to send the data to a company,
$receiver = "http://www.examplecompany.com/xml/order.asp;
the xml doc example they sent shows:
<methodCall>
<methodName>order</methodN ame>
<params>
<param>
<value>
<struct>
<member><name>username</na me><value> <string>TE ST</string ></value>< /member>
<member><name>password</na me><value> <string>TE STPASS</st ring></val ue></membe r>
<member><name>item</name>< value><str ing>Exampl e Item(place php var)</string></value></mem ber>
<member><name>price</name> <value><st ring>$500( php price var)</string></value></mem ber>
<member><name>quantity</na me><value> <string>25 (php quantity var)</string></value></mem ber>
</struct>
</value>
</param>
</medthodCall>
So I have the following values:
$item = "Some Item";
$price = "$1000.00";
$quantity = "25";
and I want to send the data to a company,
$receiver = "http://www.examplecompany.com/xml/order.asp;
the xml doc example they sent shows:
<methodCall>
<methodName>order</methodN
<params>
<param>
<value>
<struct>
<member><name>username</na
<member><name>password</na
<member><name>item</name><
<member><name>price</name>
<member><name>quantity</na
</struct>
</value>
</param>
</medthodCall>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER