I suppose one issue is that im not posting xml at all, Im posting querystring style data. I think I thought zend_rest_client would format that appropriatly for me into xml. whoops.
can sombody please tell me how to post an xml request to the api? And does ZF have a handy component to help me build the xml? Thanks very much for any help. will. ps // from saasu's documentation i should be posting something alongs the lines of: <?xml version=”1.0″ encoding=”utf-8″?> <tasks> <updateContact> <contact uid=”23985″ lastUpdatedUid=”AD3872E=”> <salutation>Mrs.</salutation> <givenName>Mary</givenName> <familyName>Smith</familyName> <organisationName>ACME Pty Ltd</organisationName> <organisataionAbn>11 111 111 111</organisationAbn> <contactID>223</contactID> <organisationWebsite>www.acme.com</organisationWebsite> <mobilePhone>0666 666 666</mobilePhone> <homePhone> 02 8888 8888</homePhone> <tags>Prospect, IT</tags> <postalAddress> <street>11/111 ABC Av</street> <city>Sydney</city> <state>NSW</state> </postalAddress> </otherAddress> <isActive>true</isActive> </contact> </updateContact> <insertInvoice emailToContact=”false”> <invoice uid=”0″> <transactionType>S</transactionType> <date>2005-09-30</date> <contactUid>23986</contactUid> <tags>Online Sales, XYZ</tags> <summary>Test POST sale</summary> <notes>From REST</notes> <requiresFollowUp>false</requiresFollowUp> <dueOrExpiryDate>2005-12-01</dueOrExpiryDate> <layout>S</layout> <status>I</status> <invoiceNumber><Auto Number></invoiceNumber> <purchaseOrderNumber>PO222</purchaseOrderNumber> <invoiceItems> <serviceInvoiceItem> <description>Design & Development of REST WS</description> <accountUid>24502</accountUid> <taxCode>G1</taxCode> <totalAmountInclTax>2132.51</totalAmountInclTax> </serviceInvoiceItem> <serviceInvoiceItem> <description>Subscription to XYZ</description> <accountUid>24504</accountUid> <taxCode>G1</taxCode> <totalAmountInclTax>11.22</totalAmountInclTax> </serviceInvoiceItem> </invoiceItems> <quickPayment> <datePaid>2005-09-30</datePaid> <dateCleared />0001-01-01</dateCleared> <bankedToAccountUid>24509</bankedToAccountUid> <amount>100</amount> <reference>CASH</reference> <summary>Quick payment from Westpac.</summary> </quickPayment> <isSent>false</isSent> </invoice> </insertInvoice> <insertInvoice emailToContact=”true”> <invoice uid=”0″> <transactionType>S</transactionType> <date>2005-10-06</date> <contactUid>23987</contactUid> <tags>Online Sales, ABC123</tags> <summary>Test Insert Item Sale</summary> <notes>From REST</notes> <requiresFollowUp>false</requiresFollowUp> <dueOrExpiryDate>2005-11-06</dueOrExpiryDate> <layout>I</layout> <status>I</status> <invoiceNumber><Auto Number></invoiceNumber> <purchaseOrderNumber>PO333</purchaseOrderNumber> <invoiceItems> <itemInvoiceItem> <quantity>2</quantity> <inventoryItemUid>4822</inventoryItemUid> <description>Seagate HDD – 300G</description> <taxCode>G1</taxCode> <unitPriceInclTax>120.75</unitPriceInclTax> </itemInvoiceItem> <itemInvoiceItem> <quantity>5.125</quantity> <inventoryItemUid>4821</inventoryItemUid> <description>Cat 5 Cable (in meter)</description> <taxCode>G1</taxCode> <unitPriceInclTax>2.555</unitPriceInclTax> </itemInvoiceItem> </invoiceItems> <quickPayment> <datePaid>0001-01-01</datePaid> <dateCleared>0001-01-01</dateCleared> <bankedToAccountUid>0</bankedToAccountUid> <amount>0</amount> </quickPayment> <isSent>false</isSent> </invoice> <createAsAdjustmentNote>false</createAsAdjustmentNote> <emailMessage> <from>t...@acme.com.au</from> <to>sm...@acme.com.au</to> <subject>Invoice</subject> <body>Thanks for shopping with us. Attached is a PDF invoice for your record.</body> </emailMessage> </insertInvoice> </tasks> -- View this message in context: http://n4.nabble.com/Zend-Rest-Client-posted-XML-tp1592951p1594202.html Sent from the Zend Framework mailing list archive at Nabble.com.