Can you please state what kind of problem did you encounter?
At this page you can find an example of sales order creation and update, which can be applied to purchase orders as well: blogs.msdn.com/.../handling-sales-orders-from-page-based-web-services-in-nav-2009sp1-and-rtm.aspx