Your code is the following, and for completeness I have added the closing bracket:
oModel.read( sRead, null, null, true, function(oData, oResponse){ pdfurl = oResponse.requestUri; opdfurl.pdfurl = pdfurl; opdfmodel.setData(opdfurl); sap.ui.getCore().setModel(opdfmodel); // either of these this.getView().setModel(opdfmodel); // is redundant } // added this closing bracket myself, since I figured you set the opdfmodel in the success handler
If you debug the url received from the OData call, what do you get?