Hi Khan,
I'm not able to debug your complete solution via SCN.
Please check the inbuild documentation (Help -> Online Help) about the usage of the B1 object atom or how to use the B1 Outbound call.
There are also additional B1i trainings available in the partner edge, please open following section: "Additional Training for SAP Business One -> SAP Business One Additional Training - Integration -> Integration Framework of SAP Business One" or check the link below:
Here you can find an overview and some examples of concrete integration scenarios involving SAP Business One.
If these information are not detailed enough, please contact your local product expert to organize a classroom or online training in your region.
Best regards
Bastian