code: public String toWMSURL(int x, int y, int zoom, int tileSize)
      {
          String format = "image/jpeg";
          String styles = "";
          String srs = "EPSG:4326";
          int ts = tileSize;
          int circumference = widthOfWorldInPixels(zoom, tileSize);
          double radius = circumference / (2 * Math.PI);
          double ulx = MercatorUtils.xToLong(x * ts, radius);
          double uly = MercatorUtils.yToLat(y * ts, radius);
          double lrx = MercatorUtils.xToLong((x + 1) * ts, radius);
          double lry = MercatorUtils.yToLat((y + 1) * ts, radius);
          String bbox = ulx + "," + uly + "," + lrx + "," + lry;
          String url = getBaseUrl() + "version=1.1.1&request=" + "GetMap&Layers=" + layer + "&format=" + format
                  + "&BBOX=" + bbox + "&width=" + ts + "&height=" + ts + "&SRS=" + srs + "&Styles=" + styles +
                  // "&transparent=TRUE"+
                  "";
          return url;
      }
docs: Convertes to a WMS URL
  @param x the x coordinate
  @param y the y coordinate
  @param zoom the zomm factor
  @param tileSize the tile size
  @return a URL request string