I see a problem, part of your URL is "func=viewpub", and that is the function for a view a single pid rather than a list. You can find a list of func paramiters
HERE. If you are outputting just a list you can drop the func arg all together.
Take Care,
Mike