Problem in Add Entry Sale Sub Form by Web Services

Hello Friends,

My Task is near to complete. I have saved customer details for sales order by Web Services.

But Remaining is save Item details for Sales Order.

form details:

Type ID Name
2 46 Sales Order Subform

with working this

Error 1:

Status must be equal to ‘Open’ in Sales Header: Document Type=Order, No.=6004. Current value is ‘Released’.

Error 2:

Field Document No. is readonly!

Any One Can tell me by Which Fields I can Save Items Details for Sales Order

thanks