Converting an Uno sketch for Due

Read these arduino tutorials to convert Softwareserial commands into Serial commands:

And look at example sketches in: Menu>File>Examples>Communication>SerialEvent and SerialCallResponse

BTW: edit your post and post your code between post tags </>